Lines Matching defs:block

40   HBasicBlock* block = new (allocator) HBasicBlock(graph);
41 graph->AddBlock(block);
43 block->AddInstruction(got);
44 return block;
48 HBasicBlock* block = createGotoBlock(graph, allocator);
49 graph->SetEntryBlock(block);
50 return block;
54 HBasicBlock* block = new (allocator) HBasicBlock(graph);
55 graph->AddBlock(block);
57 block->AddInstruction(return_instr);
58 return block;
62 HBasicBlock* block = new (allocator) HBasicBlock(graph);
63 graph->AddBlock(block);
65 block->AddInstruction(exit_instr);
66 return block;
70 // Test that the successors of an if block stay consistent after a SimplifyCFG.
71 // This test sets the false block to be the return block.
94 // Ensure we still have the same if true block.
101 // Ensure the new block branches to the join block.
105 // Test that the successors of an if block stay consistent after a SimplifyCFG.
106 // This test sets the true block to be the return block.
129 // Ensure we still have the same if true block.
136 // Ensure the new block branches to the join block.
140 // Test that the successors of an if block stay consistent after a SimplifyCFG.
141 // This test sets the true block to be the loop header.
162 // Ensure we still have the same if false block.
170 // Ensure the new block is the back edge.
175 // Test that the successors of an if block stay consistent after a SimplifyCFG.
176 // This test sets the false block to be the loop header.
197 // Ensure we still have the same if true block.
205 // Ensure the new block is the back edge.
210 // Test that the successors of an if block stay consistent after a SimplifyCFG.
211 // This test sets the true block to be a loop header with multiple pre headers.
237 // Ensure we still have the same if false block.
243 // Ensure the new block is the successor of the true block.
249 // Test that the successors of an if block stay consistent after a SimplifyCFG.
250 // This test sets the false block to be a loop header with multiple pre headers.
275 // Ensure we still have the same if true block.
281 // Ensure the new block is the successor of the false block.
292 HBasicBlock* block = createGotoBlock(graph, &allocator);
293 HInstruction* got = block->GetLastInstruction();
296 // Test at the beginning of the block.
298 block->InsertInstructionBefore(first_instruction, got);
301 ASSERT_EQ(first_instruction->GetBlock(), block);
302 ASSERT_EQ(block->GetFirstInstruction(), first_instruction);
303 ASSERT_EQ(block->GetLastInstruction(), got);
309 // Test in the middle of the block.
311 block->InsertInstructionBefore(second_instruction, got);
314 ASSERT_EQ(second_instruction->GetBlock(), block);
315 ASSERT_EQ(block->GetFirstInstruction(), first_instruction);
316 ASSERT_EQ(block->GetLastInstruction(), got);