Lines Matching refs:allocator

28 static HBasicBlock* createIfBlock(HGraph* graph, ArenaAllocator* allocator) {  in createIfBlock()  argument
29 HBasicBlock* if_block = new (allocator) HBasicBlock(graph); in createIfBlock()
31 HInstruction* instr = new (allocator) HIntConstant(4); in createIfBlock()
33 HInstruction* equal = new (allocator) HEqual(instr, instr); in createIfBlock()
35 instr = new (allocator) HIf(equal); in createIfBlock()
40 static HBasicBlock* createGotoBlock(HGraph* graph, ArenaAllocator* allocator) { in createGotoBlock() argument
41 HBasicBlock* block = new (allocator) HBasicBlock(graph); in createGotoBlock()
43 HInstruction* got = new (allocator) HGoto(); in createGotoBlock()
48 static HBasicBlock* createReturnBlock(HGraph* graph, ArenaAllocator* allocator) { in createReturnBlock() argument
49 HBasicBlock* block = new (allocator) HBasicBlock(graph); in createReturnBlock()
51 HInstruction* return_instr = new (allocator) HReturnVoid(); in createReturnBlock()
56 static HBasicBlock* createExitBlock(HGraph* graph, ArenaAllocator* allocator) { in createExitBlock() argument
57 HBasicBlock* block = new (allocator) HBasicBlock(graph); in createExitBlock()
59 HInstruction* exit_instr = new (allocator) HExit(); in createExitBlock()
69 ArenaAllocator allocator(&pool); in TEST() local
71 HGraph* graph = new (&allocator) HGraph(&allocator); in TEST()
72 HBasicBlock* entry_block = createGotoBlock(graph, &allocator); in TEST()
73 HBasicBlock* if_block = createIfBlock(graph, &allocator); in TEST()
74 HBasicBlock* if_true = createGotoBlock(graph, &allocator); in TEST()
75 HBasicBlock* return_block = createReturnBlock(graph, &allocator); in TEST()
76 HBasicBlock* exit_block = createExitBlock(graph, &allocator); in TEST()
104 ArenaAllocator allocator(&pool); in TEST() local
106 HGraph* graph = new (&allocator) HGraph(&allocator); in TEST()
107 HBasicBlock* entry_block = createGotoBlock(graph, &allocator); in TEST()
108 HBasicBlock* if_block = createIfBlock(graph, &allocator); in TEST()
109 HBasicBlock* if_false = createGotoBlock(graph, &allocator); in TEST()
110 HBasicBlock* return_block = createReturnBlock(graph, &allocator); in TEST()
111 HBasicBlock* exit_block = createExitBlock(graph, &allocator); in TEST()
139 ArenaAllocator allocator(&pool); in TEST() local
141 HGraph* graph = new (&allocator) HGraph(&allocator); in TEST()
142 HBasicBlock* entry_block = createGotoBlock(graph, &allocator); in TEST()
143 HBasicBlock* if_block = createIfBlock(graph, &allocator); in TEST()
144 HBasicBlock* return_block = createReturnBlock(graph, &allocator); in TEST()
145 HBasicBlock* exit_block = createExitBlock(graph, &allocator); in TEST()
175 ArenaAllocator allocator(&pool); in TEST() local
177 HGraph* graph = new (&allocator) HGraph(&allocator); in TEST()
178 HBasicBlock* entry_block = createGotoBlock(graph, &allocator); in TEST()
179 HBasicBlock* if_block = createIfBlock(graph, &allocator); in TEST()
180 HBasicBlock* return_block = createReturnBlock(graph, &allocator); in TEST()
181 HBasicBlock* exit_block = createExitBlock(graph, &allocator); in TEST()
211 ArenaAllocator allocator(&pool); in TEST() local
213 HGraph* graph = new (&allocator) HGraph(&allocator); in TEST()
214 HBasicBlock* entry_block = createGotoBlock(graph, &allocator); in TEST()
215 HBasicBlock* first_if_block = createIfBlock(graph, &allocator); in TEST()
216 HBasicBlock* if_block = createIfBlock(graph, &allocator); in TEST()
217 HBasicBlock* loop_block = createGotoBlock(graph, &allocator); in TEST()
218 HBasicBlock* return_block = createReturnBlock(graph, &allocator); in TEST()
251 ArenaAllocator allocator(&pool); in TEST() local
253 HGraph* graph = new (&allocator) HGraph(&allocator); in TEST()
254 HBasicBlock* entry_block = createGotoBlock(graph, &allocator); in TEST()
255 HBasicBlock* first_if_block = createIfBlock(graph, &allocator); in TEST()
256 HBasicBlock* if_block = createIfBlock(graph, &allocator); in TEST()
257 HBasicBlock* loop_block = createGotoBlock(graph, &allocator); in TEST()
258 HBasicBlock* return_block = createReturnBlock(graph, &allocator); in TEST()
288 ArenaAllocator allocator(&pool); in TEST() local
290 HGraph* graph = new (&allocator) HGraph(&allocator); in TEST()
291 HBasicBlock* block = createGotoBlock(graph, &allocator); in TEST()
296 HInstruction* first_instruction = new (&allocator) HIntConstant(4); in TEST()
309 HInstruction* second_instruction = new (&allocator) HIntConstant(4); in TEST()