Lines Matching refs:allocator

187 static void Run(const InternalCodeAllocator& allocator,
194 CommonCompilerTest::MakeExecutable(allocator.GetMemory(), allocator.GetSize());
195 fptr f = reinterpret_cast<fptr>(allocator.GetMemory());
225 InternalCodeAllocator allocator;
226 codegen->Compile(&allocator);
227 Run(allocator, *codegen, has_result, expected);
633 ArenaAllocator allocator(&pool);
635 HGraph* graph = CreateGraph(&allocator);
637 HBasicBlock* entry = new (&allocator) HBasicBlock(graph);
640 entry->AddInstruction(new (&allocator) HGoto());
642 HBasicBlock* first_block = new (&allocator) HBasicBlock(graph);
647 HEqual* equal = new (&allocator) HEqual(constant0, constant0);
649 first_block->AddInstruction(new (&allocator) HIf(equal));
651 HBasicBlock* then_block = new (&allocator) HBasicBlock(graph);
652 HBasicBlock* else_block = new (&allocator) HBasicBlock(graph);
653 HBasicBlock* exit_block = new (&allocator) HBasicBlock(graph);
664 exit_block->AddInstruction(new (&allocator) HExit());
665 then_block->AddInstruction(new (&allocator) HReturn(constant0));
666 else_block->AddInstruction(new (&allocator) HReturn(constant1));
696 ArenaAllocator allocator(&pool);
697 HGraph* graph = CreateGraph(&allocator);
699 HBasicBlock* entry_block = new (&allocator) HBasicBlock(graph);
702 entry_block->AddInstruction(new (&allocator) HGoto());
703 HBasicBlock* code_block = new (&allocator) HBasicBlock(graph);
705 HBasicBlock* exit_block = new (&allocator) HBasicBlock(graph);
707 exit_block->AddInstruction(new (&allocator) HExit());
744 ArenaAllocator allocator(&pool);
745 HGraph* graph = CreateGraph(&allocator);
747 HBasicBlock* entry_block = new (&allocator) HBasicBlock(graph);
750 entry_block->AddInstruction(new (&allocator) HGoto());
752 HBasicBlock* if_block = new (&allocator) HBasicBlock(graph);
754 HBasicBlock* if_true_block = new (&allocator) HBasicBlock(graph);
756 HBasicBlock* if_false_block = new (&allocator) HBasicBlock(graph);
758 HBasicBlock* exit_block = new (&allocator) HBasicBlock(graph);
760 exit_block->AddInstruction(new (&allocator) HExit());
825 ArenaAllocator allocator(&pool);
826 HGraph* graph = CreateGraph(&allocator);
828 HBasicBlock* entry_block = new (&allocator) HBasicBlock(graph);
831 entry_block->AddInstruction(new (&allocator) HGoto());
833 HBasicBlock* block = new (&allocator) HBasicBlock(graph);
836 HBasicBlock* exit_block = new (&allocator) HBasicBlock(graph);
839 exit_block->AddInstruction(new (&allocator) HExit());
861 comparison = new (&allocator) HEqual(op1, op2);
865 comparison = new (&allocator) HNotEqual(op1, op2);
869 comparison = new (&allocator) HLessThan(op1, op2);
873 comparison = new (&allocator) HLessThanOrEqual(op1, op2);
877 comparison = new (&allocator) HGreaterThan(op1, op2);
881 comparison = new (&allocator) HGreaterThanOrEqual(op1, op2);
885 comparison = new (&allocator) HBelow(op1, op2);
889 comparison = new (&allocator) HBelowOrEqual(op1, op2);
893 comparison = new (&allocator) HAbove(op1, op2);
897 comparison = new (&allocator) HAboveOrEqual(op1, op2);
902 block->AddInstruction(new (&allocator) HReturn(comparison));