Index: src/interpreter/bytecode-array-builder.cc |
diff --git a/src/interpreter/bytecode-array-builder.cc b/src/interpreter/bytecode-array-builder.cc |
index 357ea0b4de2bda41ef546aced0896bb96bf94a3c..119cdbf5a26405c0ceee01d54180d921af9e3ad8 100644 |
--- a/src/interpreter/bytecode-array-builder.cc |
+++ b/src/interpreter/bytecode-array-builder.cc |
@@ -807,6 +807,8 @@ Bytecode BytecodeArrayBuilder::GetJumpWithToBoolean(Bytecode jump_bytecode) { |
case Bytecode::kJump: |
case Bytecode::kJumpIfNull: |
case Bytecode::kJumpIfUndefined: |
+ case Bytecode::kJumpIfHole: |
+ case Bytecode::kJumpIfNotHole: |
return jump_bytecode; |
case Bytecode::kJumpIfTrue: |
return Bytecode::kJumpIfToBooleanTrue; |
@@ -972,6 +974,15 @@ BytecodeArrayBuilder& BytecodeArrayBuilder::StackCheck() { |
return *this; |
} |
+BytecodeArrayBuilder& BytecodeArrayBuilder::JumpIfHole(BytecodeLabel* label) { |
+ return OutputJump(Bytecode::kJumpIfHole, label); |
+} |
+ |
+BytecodeArrayBuilder& BytecodeArrayBuilder::JumpIfNotHole( |
+ BytecodeLabel* label) { |
+ return OutputJump(Bytecode::kJumpIfNotHole, label); |
+} |
+ |
BytecodeArrayBuilder& BytecodeArrayBuilder::Throw() { |
Output(Bytecode::kThrow); |
exit_seen_in_block_ = true; |