Index: src/compiler/bytecode-graph-builder.cc |
diff --git a/src/compiler/bytecode-graph-builder.cc b/src/compiler/bytecode-graph-builder.cc |
index 033b4d22f03a16f4230367a118ed71c9f4a49ca3..af7b4c15b77be21e4fc9b26aeca00bd55597750f 100644 |
--- a/src/compiler/bytecode-graph-builder.cc |
+++ b/src/compiler/bytecode-graph-builder.cc |
@@ -1331,6 +1331,17 @@ void BytecodeGraphBuilder::VisitCallRuntimeForPair() { |
Environment::kAttachFrameState); |
} |
+void BytecodeGraphBuilder::VisitNewWithSpread() { |
+ PrepareEagerCheckpoint(); |
+ interpreter::Register first_arg = bytecode_iterator().GetRegisterOperand(0); |
+ size_t arg_count = bytecode_iterator().GetRegisterCountOperand(1); |
+ |
+ const Operator* call = |
+ javascript()->CallRuntime(Runtime::kNewWithSpread, arg_count); |
+ Node* value = ProcessCallRuntimeArguments(call, first_arg, arg_count); |
+ environment()->BindAccumulator(value, Environment::kAttachFrameState); |
+} |
+ |
void BytecodeGraphBuilder::VisitInvokeIntrinsic() { |
PrepareEagerCheckpoint(); |
Runtime::FunctionId functionId = bytecode_iterator().GetIntrinsicIdOperand(0); |