| Index: runtime/vm/intermediate_language.cc
|
| diff --git a/runtime/vm/intermediate_language.cc b/runtime/vm/intermediate_language.cc
|
| index b04179de7da4a494fa7b8627eefeb348141ce156..d57c3b4a1cdd381a7d0c8757fc5d8a5bab32d879 100644
|
| --- a/runtime/vm/intermediate_language.cc
|
| +++ b/runtime/vm/intermediate_language.cc
|
| @@ -1306,6 +1306,16 @@ static Condition NegateCondition(Condition condition) {
|
| }
|
|
|
|
|
| +void ControlInstruction::EmitBranchOnValue(FlowGraphCompiler* compiler,
|
| + bool value) {
|
| + if (value && compiler->IsNextBlock(false_successor())) {
|
| + __ jmp(compiler->GetBlockLabel(true_successor()));
|
| + } else if (!value && compiler->IsNextBlock(true_successor())) {
|
| + __ jmp(compiler->GetBlockLabel(false_successor()));
|
| + }
|
| +}
|
| +
|
| +
|
| void ControlInstruction::EmitBranchOnCondition(FlowGraphCompiler* compiler,
|
| Condition true_condition) {
|
| if (compiler->IsNextBlock(false_successor())) {
|
|
|