Index: src/interpreter/control-flow-builders.cc |
diff --git a/src/interpreter/control-flow-builders.cc b/src/interpreter/control-flow-builders.cc |
index 41d1ad82d9c9a704fea57596950daffc90e6981e..81041e6a3d29eb6ccebb75a03ad7f28676a4d181 100644 |
--- a/src/interpreter/control-flow-builders.cc |
+++ b/src/interpreter/control-flow-builders.cc |
@@ -22,12 +22,14 @@ void BreakableControlFlowBuilder::EmitJump(BytecodeLabels* sites) { |
builder()->Jump(sites->New()); |
} |
-void BreakableControlFlowBuilder::EmitJumpIfTrue(BytecodeLabels* sites) { |
- builder()->JumpIfTrue(sites->New()); |
+void BreakableControlFlowBuilder::EmitJumpIfTrue( |
+ BytecodeArrayBuilder::ToBooleanMode mode, BytecodeLabels* sites) { |
+ builder()->JumpIfTrue(mode, sites->New()); |
} |
-void BreakableControlFlowBuilder::EmitJumpIfFalse(BytecodeLabels* sites) { |
- builder()->JumpIfFalse(sites->New()); |
+void BreakableControlFlowBuilder::EmitJumpIfFalse( |
+ BytecodeArrayBuilder::ToBooleanMode mode, BytecodeLabels* sites) { |
+ builder()->JumpIfFalse(mode, sites->New()); |
} |
void BreakableControlFlowBuilder::EmitJumpIfUndefined(BytecodeLabels* sites) { |
@@ -38,7 +40,6 @@ void BreakableControlFlowBuilder::EmitJumpIfNull(BytecodeLabels* sites) { |
builder()->JumpIfNull(sites->New()); |
} |
- |
void BlockBuilder::EndBlock() { |
builder()->Bind(&block_end_); |
BindBreakTarget(); |