Lines Matching refs:if_block
29 HBasicBlock* if_block = new (allocator) HBasicBlock(graph);
30 graph->AddBlock(if_block);
33 if_block->AddInstruction(equal);
35 if_block->AddInstruction(instr);
36 return if_block;
78 HBasicBlock* if_block = createIfBlock(graph, &allocator);
83 entry_block->AddSuccessor(if_block);
84 if_block->AddSuccessor(if_true);
86 if_block->AddSuccessor(return_block);
89 ASSERT_EQ(if_block->GetLastInstruction()->AsIf()->IfTrueSuccessor(), if_true);
90 ASSERT_EQ(if_block->GetLastInstruction()->AsIf()->IfFalseSuccessor(), return_block);
95 ASSERT_EQ(if_block->GetLastInstruction()->AsIf()->IfTrueSuccessor(), if_true);
98 HBasicBlock* false_block = if_block->GetLastInstruction()->AsIf()->IfFalseSuccessor();
113 HBasicBlock* if_block = createIfBlock(graph, &allocator);
118 entry_block->AddSuccessor(if_block);
119 if_block->AddSuccessor(return_block);
121 if_block->AddSuccessor(if_false);
124 ASSERT_EQ(if_block->GetLastInstruction()->AsIf()->IfTrueSuccessor(), return_block);
125 ASSERT_EQ(if_block->GetLastInstruction()->AsIf()->IfFalseSuccessor(), if_false);
130 ASSERT_EQ(if_block->GetLastInstruction()->AsIf()->IfFalseSuccessor(), if_false);
133 HBasicBlock* true_block = if_block->GetLastInstruction()->AsIf()->IfTrueSuccessor();
148 HBasicBlock* if_block = createIfBlock(graph, &allocator);
152 entry_block->AddSuccessor(if_block);
153 if_block->AddSuccessor(if_block);
154 if_block->AddSuccessor(return_block);
157 ASSERT_EQ(if_block->GetLastInstruction()->AsIf()->IfTrueSuccessor(), if_block);
158 ASSERT_EQ(if_block->GetLastInstruction()->AsIf()->IfFalseSuccessor(), return_block);
163 ASSERT_EQ(if_block->GetLastInstruction()->AsIf()->IfFalseSuccessor(), return_block);
166 ASSERT_EQ(if_block->GetPredecessors().Size(), 2u);
167 ASSERT_EQ(if_block->GetPredecessors().Get(0), entry_block);
168 ASSERT_NE(if_block->GetPredecessors().Get(1), if_block);
171 ASSERT_EQ(if_block->GetPredecessors().Get(1),
172 if_block->GetLastInstruction()->AsIf()->IfTrueSuccessor());
183 HBasicBlock* if_block = createIfBlock(graph, &allocator);
187 entry_block->AddSuccessor(if_block);
188 if_block->AddSuccessor(return_block);
189 if_block->AddSuccessor(if_block);
192 ASSERT_EQ(if_block->GetLastInstruction()->AsIf()->IfTrueSuccessor(), return_block);
193 ASSERT_EQ(if_block->GetLastInstruction()->AsIf()->IfFalseSuccessor(), if_block);
198 ASSERT_EQ(if_block->GetLastInstruction()->AsIf()->IfTrueSuccessor(), return_block);
201 ASSERT_EQ(if_block->GetPredecessors().Size(), 2u);
202 ASSERT_EQ(if_block->GetPredecessors().Get(0), entry_block);
203 ASSERT_NE(if_block->GetPredecessors().Get(1), if_block);
206 ASSERT_EQ(if_block->GetPredecessors().Get(1),
207 if_block->GetLastInstruction()->AsIf()->IfFalseSuccessor());
219 HBasicBlock* if_block = createIfBlock(graph, &allocator);
224 first_if_block->AddSuccessor(if_block);
227 if_block->AddSuccessor(loop_block);
228 if_block->AddSuccessor(return_block);
231 ASSERT_EQ(if_block->GetLastInstruction()->AsIf()->IfTrueSuccessor(), loop_block);
232 ASSERT_EQ(if_block->GetLastInstruction()->AsIf()->IfFalseSuccessor(), return_block);
236 HIf* if_instr = if_block->GetLastInstruction()->AsIf();
258 HBasicBlock* if_block = createIfBlock(graph, &allocator);
263 first_if_block->AddSuccessor(if_block);
266 if_block->AddSuccessor(return_block);
267 if_block->AddSuccessor(loop_block);
269 ASSERT_EQ(if_block->GetLastInstruction()->AsIf()->IfTrueSuccessor(), return_block);
270 ASSERT_EQ(if_block->GetLastInstruction()->AsIf()->IfFalseSuccessor(), loop_block);
274 HIf* if_instr = if_block->GetLastInstruction()->AsIf();