Index: src/compiler/bytecode-graph-builder.cc |
diff --git a/src/compiler/bytecode-graph-builder.cc b/src/compiler/bytecode-graph-builder.cc |
index 357837db35f9a4fadab2033d63090e8e34755ad7..d1ec5274a0fc2fb324c556ed0849126e53befa09 100644 |
--- a/src/compiler/bytecode-graph-builder.cc |
+++ b/src/compiler/bytecode-graph-builder.cc |
@@ -1715,6 +1715,12 @@ void BytecodeGraphBuilder::VisitJumpIfNotHoleConstant() { |
BuildJumpIfNotHole(); |
} |
+void BytecodeGraphBuilder::VisitJumpIfJSReceiver() { BuildJumpIfJSReceiver(); } |
+ |
+void BytecodeGraphBuilder::VisitJumpIfJSReceiverConstant() { |
+ BuildJumpIfJSReceiver(); |
+} |
+ |
void BytecodeGraphBuilder::VisitJumpIfNull() { |
BuildJumpIfEqual(jsgraph()->NullConstant()); |
} |
@@ -2026,6 +2032,12 @@ void BytecodeGraphBuilder::BuildJumpIfNotHole() { |
BuildJumpIfNot(condition); |
} |
+void BytecodeGraphBuilder::BuildJumpIfJSReceiver() { |
+ Node* accumulator = environment()->LookupAccumulator(); |
+ Node* condition = NewNode(simplified()->ObjectIsReceiver(), accumulator); |
+ BuildJumpIf(condition); |
+} |
+ |
Node** BytecodeGraphBuilder::EnsureInputBufferSize(int size) { |
if (size > input_buffer_size_) { |
size = size + kInputBufferSizeIncrement + input_buffer_size_; |