Index: src/compiler/bytecode-graph-builder.cc |
diff --git a/src/compiler/bytecode-graph-builder.cc b/src/compiler/bytecode-graph-builder.cc |
index cb3bc2fadaeb9a17a3a36afa9fd1b1358b9553d7..44e9d6414984239021a860f32254e540b4de5328 100644 |
--- a/src/compiler/bytecode-graph-builder.cc |
+++ b/src/compiler/bytecode-graph-builder.cc |
@@ -1521,6 +1521,20 @@ void BytecodeGraphBuilder::VisitJumpIfUndefinedConstantWide() { |
BuildJumpIfEqual(jsgraph()->UndefinedConstant()); |
} |
+void BytecodeGraphBuilder::VisitJumpIfHole() { |
+ BuildJumpIfEqual(jsgraph()->TheHoleConstant()); |
+} |
+ |
+void BytecodeGraphBuilder::VisitJumpIfNotHole() { |
+ Node* accumulator = environment()->LookupAccumulator(); |
+ Node* condition = NewNode(javascript()->StrictEqual(), accumulator, |
+ jsgraph()->TheHoleConstant()); |
+ Node* node = |
+ NewNode(common()->Select(MachineRepresentation::kTagged), condition, |
+ jsgraph()->FalseConstant(), jsgraph()->TrueConstant()); |
+ BuildConditionalJump(node); |
+} |
+ |
void BytecodeGraphBuilder::VisitReturn() { |
Node* control = |
NewNode(common()->Return(), environment()->LookupAccumulator()); |