Index: src/compiler/bytecode-graph-builder.cc |
diff --git a/src/compiler/bytecode-graph-builder.cc b/src/compiler/bytecode-graph-builder.cc |
index d1ec5274a0fc2fb324c556ed0849126e53befa09..454540fadc1dd8e5028eb29569b11eabb161954d 100644 |
--- a/src/compiler/bytecode-graph-builder.cc |
+++ b/src/compiler/bytecode-graph-builder.cc |
@@ -1337,9 +1337,9 @@ void BytecodeGraphBuilder::VisitNewWithSpread() { |
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); |
+ const Operator* op = |
+ javascript()->CallConstructWithSpread(static_cast<int>(arg_count)); |
+ Node* value = ProcessCallRuntimeArguments(op, first_arg, arg_count); |
environment()->BindAccumulator(value, Environment::kAttachFrameState); |
} |