Index: src/interpreter/bytecode-array-builder.cc |
diff --git a/src/interpreter/bytecode-array-builder.cc b/src/interpreter/bytecode-array-builder.cc |
index d99d0db7569ac74830dd27f75dbf1fbefac15fbe..32842e77c8464d7f899c81c84b1ce0b6b6089419 100644 |
--- a/src/interpreter/bytecode-array-builder.cc |
+++ b/src/interpreter/bytecode-array-builder.cc |
@@ -446,6 +446,10 @@ Bytecode BytecodeArrayBuilder::GetJumpWithConstantOperand( |
return Bytecode::kJumpIfTrueConstant; |
case Bytecode::kJumpIfFalse: |
return Bytecode::kJumpIfFalseConstant; |
+ case Bytecode::kJumpIfToBooleanTrue: |
+ return Bytecode::kJumpIfToBooleanTrueConstant; |
+ case Bytecode::kJumpIfToBooleanFalse: |
+ return Bytecode::kJumpIfToBooleanFalseConstant; |
default: |
UNREACHABLE(); |
return Bytecode::kJumpConstant; |
@@ -534,6 +538,18 @@ BytecodeArrayBuilder& BytecodeArrayBuilder::JumpIfFalse(BytecodeLabel* label) { |
} |
+BytecodeArrayBuilder& BytecodeArrayBuilder::JumpIfToBooleanTrue( |
+ BytecodeLabel* label) { |
+ return OutputJump(Bytecode::kJumpIfToBooleanTrue, label); |
+} |
+ |
+ |
+BytecodeArrayBuilder& BytecodeArrayBuilder::JumpIfToBooleanFalse( |
+ BytecodeLabel* label) { |
+ return OutputJump(Bytecode::kJumpIfToBooleanFalse, label); |
+} |
+ |
+ |
BytecodeArrayBuilder& BytecodeArrayBuilder::Return() { |
Output(Bytecode::kReturn); |
return_seen_in_block_ = true; |