| Index: src/compiler/bytecode-graph-builder.cc
|
| diff --git a/src/compiler/bytecode-graph-builder.cc b/src/compiler/bytecode-graph-builder.cc
|
| index c89117c5cd283da8e7efe772bc03725fd35e636c..bafc0e7a9da446f4b42575a5e068cdc6dd1d92f4 100644
|
| --- a/src/compiler/bytecode-graph-builder.cc
|
| +++ b/src/compiler/bytecode-graph-builder.cc
|
| @@ -2072,25 +2072,11 @@
|
| }
|
|
|
| void BytecodeGraphBuilder::BuildJumpIfFalse() {
|
| - NewBranch(environment()->LookupAccumulator());
|
| - Environment* if_true_environment = environment()->Copy();
|
| - environment()->BindAccumulator(jsgraph()->FalseConstant());
|
| - NewIfFalse();
|
| - MergeIntoSuccessorEnvironment(bytecode_iterator().GetJumpTargetOffset());
|
| - if_true_environment->BindAccumulator(jsgraph()->TrueConstant());
|
| - set_environment(if_true_environment);
|
| - NewIfTrue();
|
| + BuildJumpIfNot(environment()->LookupAccumulator());
|
| }
|
|
|
| void BytecodeGraphBuilder::BuildJumpIfTrue() {
|
| - NewBranch(environment()->LookupAccumulator());
|
| - Environment* if_false_environment = environment()->Copy();
|
| - environment()->BindAccumulator(jsgraph()->TrueConstant());
|
| - NewIfTrue();
|
| - MergeIntoSuccessorEnvironment(bytecode_iterator().GetJumpTargetOffset());
|
| - if_false_environment->BindAccumulator(jsgraph()->FalseConstant());
|
| - set_environment(if_false_environment);
|
| - NewIfFalse();
|
| + BuildJumpIf(environment()->LookupAccumulator());
|
| }
|
|
|
| void BytecodeGraphBuilder::BuildJumpIfToBooleanTrue() {
|
|
|