Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Unified Diff: src/compiler/bytecode-graph-builder.cc

Issue 2561103003: [Turbofan] Add CallConstructWithSpread JSOperator. (Closed)
Patch Set: Add line spaces back that auto-format zapped Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/compiler/js-generic-lowering.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « no previous file | src/compiler/js-generic-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698