| Index: src/compiler/bytecode-graph-builder.cc
|
| diff --git a/src/compiler/bytecode-graph-builder.cc b/src/compiler/bytecode-graph-builder.cc
|
| index 0ea14b21820489a10fd0b1a5ddf55f6f6d88cc69..6ed9b15b8ea9856efcb3aeac390d768a251255de 100644
|
| --- a/src/compiler/bytecode-graph-builder.cc
|
| +++ b/src/compiler/bytecode-graph-builder.cc
|
| @@ -1510,6 +1510,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::VisitStackCheck() {
|
| FrameStateBeforeAndAfter states(this);
|
| Node* node = NewNode(javascript()->StackCheck());
|
|
|