Home | History | Annotate | Download | only in optimizing

Lines Matching refs:allocator_

36   BoundsCheckEliminationTest()  : pool_(), allocator_(&pool_) {
37 graph_ = CreateGraph(&allocator_);
60 ArenaAllocator allocator_;
69 HBasicBlock* entry = new (&allocator_) HBasicBlock(graph_);
72 HInstruction* parameter1 = new (&allocator_)
74 HInstruction* parameter2 = new (&allocator_)
82 HBasicBlock* block1 = new (&allocator_) HBasicBlock(graph_);
84 HInstruction* cmp = new (&allocator_) HGreaterThanOrEqual(parameter2, constant_0);
85 HIf* if_inst = new (&allocator_) HIf(cmp);
90 HBasicBlock* block2 = new (&allocator_) HBasicBlock(graph_);
92 HNullCheck* null_check = new (&allocator_) HNullCheck(parameter1, 0);
93 HArrayLength* array_length = new (&allocator_) HArrayLength(null_check, 0);
94 HBoundsCheck* bounds_check2 = new (&allocator_)
96 HArraySet* array_set = new (&allocator_) HArraySet(
103 HBasicBlock* block3 = new (&allocator_) HBasicBlock(graph_);
105 null_check = new (&allocator_) HNullCheck(parameter1, 0);
106 array_length = new (&allocator_) HArrayLength(null_check, 0);
107 cmp = new (&allocator_) HLessThan(parameter2, array_length);
108 if_inst = new (&allocator_) HIf(cmp);
114 HBasicBlock* block4 = new (&allocator_) HBasicBlock(graph_);
116 null_check = new (&allocator_) HNullCheck(parameter1, 0);
117 array_length = new (&allocator_) HArrayLength(null_check, 0);
118 HBoundsCheck* bounds_check4 = new (&allocator_)
120 array_set = new (&allocator_) HArraySet(
127 HBasicBlock* block5 = new (&allocator_) HBasicBlock(graph_);
129 null_check = new (&allocator_) HNullCheck(parameter1, 0);
130 array_length = new (&allocator_) HArrayLength(null_check, 0);
131 HBoundsCheck* bounds_check5 = new (&allocator_)
133 array_set = new (&allocator_) HArraySet(
140 HBasicBlock* exit = new (&allocator_) HBasicBlock(graph_);
145 exit->AddInstruction(new (&allocator_) HExit());
166 HBasicBlock* entry = new (&allocator_) HBasicBlock(graph_);
169 HInstruction* parameter1 = new (&allocator_)
171 HInstruction* parameter2 = new (&allocator_)
180 HBasicBlock* block1 = new (&allocator_) HBasicBlock(graph_);
182 HInstruction* cmp = new (&allocator_) HLessThanOrEqual(parameter2, constant_0);
183 HIf* if_inst = new (&allocator_) HIf(cmp);
188 HBasicBlock* block2 = new (&allocator_) HBasicBlock(graph_);
190 HInstruction* add = new (&allocator_) HAdd(Primitive::kPrimInt, parameter2, constant_max_int);
191 HNullCheck* null_check = new (&allocator_) HNullCheck(parameter1, 0);
192 HArrayLength* array_length = new (&allocator_) HArrayLength(null_check, 0);
193 HInstruction* cmp2 = new (&allocator_) HGreaterThanOrEqual(add, array_length);
194 if_inst = new (&allocator_) HIf(cmp2);
201 HBasicBlock* block3 = new (&allocator_) HBasicBlock(graph_);
203 HBoundsCheck* bounds_check = new (&allocator_)
205 HArraySet* array_set = new (&allocator_) HArraySet(
210 HBasicBlock* exit = new (&allocator_) HBasicBlock(graph_);
212 exit->AddInstruction(new (&allocator_) HExit());
230 HBasicBlock* entry = new (&allocator_) HBasicBlock(graph_);
233 HInstruction* parameter1 = new (&allocator_)
235 HInstruction* parameter2 = new (&allocator_)
244 HBasicBlock* block1 = new (&allocator_) HBasicBlock(graph_);
246 HNullCheck* null_check = new (&allocator_) HNullCheck(parameter1, 0);
247 HArrayLength* array_length = new (&allocator_) HArrayLength(null_check, 0);
248 HInstruction* cmp = new (&allocator_) HGreaterThanOrEqual(parameter2, array_length);
249 HIf* if_inst = new (&allocator_) HIf(cmp);
256 HBasicBlock* block2 = new (&allocator_) HBasicBlock(graph_);
258 HInstruction* sub1 = new (&allocator_) HSub(Primitive::kPrimInt, parameter2, constant_max_int);
259 HInstruction* sub2 = new (&allocator_) HSub(Primitive::kPrimInt, sub1, constant_max_int);
260 HInstruction* cmp2 = new (&allocator_) HLessThanOrEqual(sub2, constant_0);
261 if_inst = new (&allocator_) HIf(cmp2);
267 HBasicBlock* block3 = new (&allocator_) HBasicBlock(graph_);
269 HBoundsCheck* bounds_check = new (&allocator_)
271 HArraySet* array_set = new (&allocator_) HArraySet(
276 HBasicBlock* exit = new (&allocator_) HBasicBlock(graph_);
278 exit->AddInstruction(new (&allocator_) HExit());
294 HBasicBlock* entry = new (&allocator_) HBasicBlock(graph_);
297 HInstruction* parameter = new (&allocator_) HParameterValue(
306 HBasicBlock* block = new (&allocator_) HBasicBlock(graph_);
310 HNullCheck* null_check = new (&allocator_) HNullCheck(parameter, 0);
311 HArrayLength* array_length = new (&allocator_) HArrayLength(null_check, 0);
312 HBoundsCheck* bounds_check6 = new (&allocator_)
314 HInstruction* array_set = new (&allocator_) HArraySet(
321 null_check = new (&allocator_) HNullCheck(parameter, 0);
322 array_length = new (&allocator_) HArrayLength(null_check, 0);
323 HBoundsCheck* bounds_check5 = new (&allocator_)
325 array_set = new (&allocator_) HArraySet(
332 null_check = new (&allocator_) HNullCheck(parameter, 0);
333 array_length = new (&allocator_) HArrayLength(null_check, 0);
334 HBoundsCheck* bounds_check4 = new (&allocator_)
336 array_set = new (&allocator_) HArraySet(
343 block->AddInstruction(new (&allocator_) HGoto());
345 HBasicBlock* exit = new (&allocator_) HBasicBlock(graph_);
348 exit->AddInstruction(new (&allocator_) HExit());
431 HInstruction* bounds_check = BuildSSAGraph1(graph_, &allocator_, 0, 1);
438 HInstruction* bounds_check = BuildSSAGraph1(graph_, &allocator_, 1, 1);
445 HInstruction* bounds_check = BuildSSAGraph1(graph_, &allocator_, -1, 1);
452 HInstruction* bounds_check = BuildSSAGraph1(graph_, &allocator_, 0, 1, kCondGT);
460 HInstruction* bounds_check = BuildSSAGraph1(graph_, &allocator_, 0, 2);
467 HInstruction* bounds_check = BuildSSAGraph1(graph_, &allocator_, 1, 2);
548 HInstruction* bounds_check = BuildSSAGraph2(graph_, &allocator_, 0);
555 HInstruction* bounds_check = BuildSSAGraph2(graph_, &allocator_, 1);
562 HInstruction* bounds_check = BuildSSAGraph2(graph_, &allocator_, -1);
569 HInstruction* bounds_check = BuildSSAGraph2(graph_, &allocator_, 0, -1, kCondLT);
576 HInstruction* bounds_check = BuildSSAGraph2(graph_, &allocator_, 0, -2);
655 HInstruction* bounds_check = BuildSSAGraph3(graph_, &allocator_, 0, 1, kCondGE);
663 HInstruction* bounds_check = BuildSSAGraph3(graph_, &allocator_, 1, 1, kCondGE);
671 HInstruction* bounds_check = BuildSSAGraph3(graph_, &allocator_, 0, 1, kCondGT);
679 HInstruction* bounds_check = BuildSSAGraph3(graph_, &allocator_, 1, 8, kCondGE);
761 HInstruction* bounds_check = BuildSSAGraph4(graph_, &allocator_, 0);
768 HInstruction* bounds_check = BuildSSAGraph4(graph_, &allocator_, 1);
775 HInstruction* bounds_check = BuildSSAGraph4(graph_, &allocator_, 0, kCondGT);
792 HBasicBlock* entry = new (&allocator_) HBasicBlock(graph_);
795 HInstruction* parameter = new (&allocator_) HParameterValue(
803 HBasicBlock* block = new (&allocator_) HBasicBlock(graph_);
806 block->AddInstruction(new (&allocator_) HGoto());
808 HBasicBlock* exit = new (&allocator_) HBasicBlock(graph_);
810 exit->AddInstruction(new (&allocator_) HExit());
812 HBasicBlock* outer_header = new (&allocator_) HBasicBlock(graph_);
814 HPhi* phi_i = new (&allocator_) HPhi(&allocator_, 0, 0, Primitive::kPrimInt);
815 HNullCheck* null_check = new (&allocator_) HNullCheck(parameter, 0);
816 HArrayLength* array_length = new (&allocator_) HArrayLength(null_check, 0);
817 HAdd* add = new (&allocator_
818 HInstruction* cmp = new (&allocator_) HGreaterThanOrEqual(phi_i, add);
819 HIf* if_inst = new (&allocator_) HIf(cmp);
828 HBasicBlock* inner_header = new (&allocator_) HBasicBlock(graph_);
830 HPhi* phi_j = new (&allocator_) HPhi(&allocator_, 0, 0, Primitive::kPrimInt);
831 null_check = new (&allocator_) HNullCheck(parameter, 0);
832 array_length = new (&allocator_) HArrayLength(null_check, 0);
833 HSub* sub = new (&allocator_) HSub(Primitive::kPrimInt, array_length, phi_i);
834 add = new (&allocator_) HAdd(Primitive::kPrimInt, sub, constant_minus_1);
835 cmp = new (&allocator_) HGreaterThanOrEqual(phi_j, add);
836 if_inst = new (&allocator_) HIf(cmp);
846 HBasicBlock* inner_body_compare = new (&allocator_) HBasicBlock(graph_);
848 null_check = new (&allocator_) HNullCheck(parameter, 0);
849 array_length = new (&allocator_) HArrayLength(null_check, 0);
850 HBoundsCheck* bounds_check1 = new (&allocator_) HBoundsCheck(phi_j, array_length, 0);
851 HArrayGet* array_get_j = new (&allocator_)
857 HInstruction* j_plus_1 = new (&allocator_) HAdd(Primitive::kPrimInt, phi_j, constant_1);
858 null_check = new (&allocator_) HNullCheck(parameter, 0);
859 array_length = new (&allocator_) HArrayLength(null_check, 0);
860 HBoundsCheck* bounds_check2 = new (&allocator_) HBoundsCheck(j_plus_1, array_length, 0);
861 HArrayGet* array_get_j_plus_1 = new (&allocator_)
863 cmp = new (&allocator_) HGreaterThanOrEqual(array_get_j, array_get_j_plus_1);
864 if_inst = new (&allocator_) HIf(cmp);
873 HBasicBlock* inner_body_swap = new (&allocator_) HBasicBlock(graph_);
875 j_plus_1 = new (&allocator_) HAdd(Primitive::kPrimInt, phi_j, constant_1);
877 null_check = new (&allocator_) HNullCheck(parameter, 0);
878 array_length = new (&allocator_) HArrayLength(null_check, 0);
879 HInstruction* bounds_check3 = new (&allocator_) HBoundsCheck(j_plus_1, array_length, 0);
880 array_get_j_plus_1 = new (&allocator_)
888 null_check = new (&allocator_) HNullCheck(parameter, 0);
889 array_length = new (&allocator_) HArrayLength(null_check, 0);
890 HInstruction* bounds_check4 = new (&allocator_) HBoundsCheck(phi_j, array_length, 0);
891 array_get_j = new (&allocator_)
897 null_check = new (&allocator_) HNullCheck(parameter, 0);
898 array_length = new (&allocator_) HArrayLength(null_check, 0);
899 HInstruction* bounds_check5 = new (&allocator_) HBoundsCheck(j_plus_1, array_length, 0);
900 HArraySet* array_set_j_plus_1 = new (&allocator_)
907 null_check = new (&allocator_) HNullCheck(parameter, 0);
908 array_length = new (&allocator_) HArrayLength(null_check, 0);
909 HInstruction* bounds_check6 = new (&allocator_) HBoundsCheck(phi_j, array_length, 0);
910 HArraySet* array_set_j = new (&allocator_)
916 inner_body_swap->AddInstruction(new (&allocator_) HGoto());
918 HBasicBlock* inner_body_add = new (&allocator_) HBasicBlock(graph_);
920 add = new (&allocator_) HAdd(Primitive::kPrimInt, phi_j, constant_1);
922 inner_body_add->AddInstruction(new (&allocator_) HGoto());
925 HBasicBlock* outer_body_add = new (&allocator_) HBasicBlock(graph_);
927 add = new (&allocator_) HAdd(Primitive::kPrimInt, phi_i, constant_1);
929 outer_body_add->AddInstruction(new (&allocator_) HGoto());