Home | History | Annotate | Download | only in optimizing

Lines Matching refs:allocator

359                                     ArenaAllocator* allocator,
363 HBasicBlock* entry = new (allocator) HBasicBlock(graph);
366 HInstruction* parameter = new (allocator) HParameterValue(
374 HBasicBlock* block = new (allocator) HBasicBlock(graph);
377 block->AddInstruction(new (allocator) HGoto());
379 HBasicBlock* loop_header = new (allocator) HBasicBlock(graph);
380 HBasicBlock* loop_body = new (allocator) HBasicBlock(graph);
381 HBasicBlock* exit = new (allocator) HBasicBlock(graph);
391 HPhi* phi = new (allocator) HPhi(allocator, 0, 0, Primitive::kPrimInt);
392 HInstruction* null_check = new (allocator) HNullCheck(parameter, 0);
393 HInstruction* array_length = new (allocator) HArrayLength(null_check, 0);
396 cmp = new (allocator) HGreaterThanOrEqual(phi, array_length);
399 cmp = new (allocator) HGreaterThan(phi, array_length);
401 HInstruction* if_inst = new (allocator) HIf(cmp);
409 null_check = new (allocator) HNullCheck(parameter, 0);
410 array_length = new (allocator) HArrayLength(null_check, 0);
411 HInstruction* bounds_check = new (allocator) HBoundsCheck(phi, array_length, 0);
412 HInstruction* array_set = new (allocator) HArraySet(
415 HInstruction* add = new (allocator) HAdd(Primitive::kPrimInt, phi, constant_increment);
421 loop_body->AddInstruction(new (allocator) HGoto());
424 exit->AddInstruction(new (allocator) HExit());
474 ArenaAllocator* allocator,
478 HBasicBlock* entry = new (allocator) HBasicBlock(graph);
481 HInstruction* parameter = new (allocator) HParameterValue(
490 HBasicBlock* block = new (allocator) HBasicBlock(graph);
493 HInstruction* null_check = new (allocator) HNullCheck(parameter, 0);
494 HInstruction* array_length = new (allocator) HArrayLength(null_check, 0);
497 block->AddInstruction(new (allocator) HGoto());
499 HBasicBlock* loop_header = new (allocator) HBasicBlock(graph);
500 HBasicBlock* loop_body = new (allocator) HBasicBlock(graph);
501 HBasicBlock* exit = new (allocator) HBasicBlock(graph);
511 HPhi* phi = new (allocator) HPhi(allocator, 0, 0, Primitive::kPrimInt);
514 cmp = new (allocator) HLessThanOrEqual(phi, constant_initial);
517 cmp = new (allocator) HLessThan(phi, constant_initial);
519 HInstruction* if_inst = new (allocator) HIf(cmp);
525 HInstruction* add = new (allocator) HAdd(Primitive::kPrimInt, phi, constant_minus_1);
526 null_check = new (allocator) HNullCheck(parameter, 0);
527 array_length = new (allocator) HArrayLength(null_check, 0);
528 HInstruction* bounds_check = new (allocator) HBoundsCheck(add, array_length, 0);
529 HInstruction* array_set = new (allocator) HArraySet(
531 HInstruction* add_phi = new (allocator) HAdd(Primitive::kPrimInt, phi, constant_increment);
538 loop_body->AddInstruction(new (allocator) HGoto());
541 exit->AddInstruction(new (allocator) HExit());
584 ArenaAllocator* allocator,
588 HBasicBlock* entry = new (allocator) HBasicBlock(graph);
596 HBasicBlock* block = new (allocator) HBasicBlock(graph);
599 HInstruction* new_array = new (allocator) HNewArray(
607 block->AddInstruction(new (allocator) HGoto());
609 HBasicBlock* loop_header = new (allocator) HBasicBlock(graph);
610 HBasicBlock* loop_body = new (allocator) HBasicBlock(graph);
611 HBasicBlock* exit = new (allocator) HBasicBlock(graph);
621 HPhi* phi = new (allocator) HPhi(allocator, 0, 0, Primitive::kPrimInt);
624 cmp = new (allocator) HGreaterThanOrEqual(phi, constant_10);
627 cmp = new (allocator) HGreaterThan(phi, constant_10);
629 HInstruction* if_inst = new (allocator) HIf(cmp);
635 HNullCheck* null_check = new (allocator) HNullCheck(new_array, 0);
636 HArrayLength* array_length = new (allocator) HArrayLength(null_check, 0);
637 HInstruction* bounds_check = new (allocator) HBoundsCheck(phi, array_length, 0);
638 HInstruction* array_set = new (allocator) HArraySet(
640 HInstruction* add = new (allocator) HAdd(Primitive::kPrimInt, phi, constant_increment);
646 loop_body->AddInstruction(new (allocator) HGoto());
649 exit->AddInstruction(new (allocator) HExit());
688 ArenaAllocator* allocator,
691 HBasicBlock* entry = new (allocator) HBasicBlock(graph);
694 HInstruction* parameter = new (allocator) HParameterValue(
703 HBasicBlock* block = new (allocator) HBasicBlock(graph);
706 block->AddInstruction(new (allocator) HGoto());
708 HBasicBlock* loop_header = new (allocator) HBasicBlock(graph);
709 HBasicBlock* loop_body = new (allocator) HBasicBlock(graph);
710 HBasicBlock* exit = new (allocator) HBasicBlock(graph);
720 HPhi* phi = new (allocator) HPhi(allocator, 0, 0, Primitive::kPrimInt);
721 HInstruction* null_check = new (allocator) HNullCheck(parameter, 0);
722 HInstruction* array_length = new (allocator) HArrayLength(null_check, 0);
725 cmp = new (allocator) HGreaterThanOrEqual(phi, array_length);
727 cmp = new (allocator) HGreaterThan(phi, array_length);
729 HInstruction* if_inst = new (allocator) HIf(cmp);
737 null_check = new (allocator) HNullCheck(parameter, 0);
738 array_length = new (allocator) HArrayLength(null_check, 0);
739 HInstruction* sub = new (allocator) HSub(Primitive::kPrimInt, array_length, phi);
740 HInstruction* add_minus_1 = new (allocator)
742 HInstruction* bounds_check = new (allocator) HBoundsCheck(add_minus_1, array_length, 0);
743 HInstruction* array_set = new (allocator) HArraySet(
745 HInstruction* add = new (allocator) HAdd(Primitive::kPrimInt, phi, constant_1);
753 loop_body->AddInstruction(new (allocator) HGoto());
756 exit->AddInstruction(new (allocator) HExit());