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

Unified Diff: src/compiler/js-generic-lowering.cc

Issue 2729143002: [compiler] Simplify paramerters for spread call. (Closed)
Patch Set: Address nits. Created 3 years, 10 months 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 | « src/compiler/js-call-reducer.cc ('k') | src/compiler/js-operator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/js-generic-lowering.cc
diff --git a/src/compiler/js-generic-lowering.cc b/src/compiler/js-generic-lowering.cc
index 79a3377462883504f9df2589df1b61ea031f48a8..a7eabc78cfc78340ce07ed46eaac89b7f19a2719 100644
--- a/src/compiler/js-generic-lowering.cc
+++ b/src/compiler/js-generic-lowering.cc
@@ -528,8 +528,7 @@ void JSGenericLowering::LowerJSConstruct(Node* node) {
}
void JSGenericLowering::LowerJSConstructWithSpread(Node* node) {
- ConstructWithSpreadParameters const& p =
- ConstructWithSpreadParametersOf(node->op());
+ SpreadWithArityParameters const& p = SpreadWithArityParametersOf(node->op());
int const arg_count = static_cast<int>(p.arity() - 2);
CallDescriptor::Flags flags = FrameStateFlagForCall(node);
Callable callable = CodeFactory::ConstructWithSpread(isolate());
@@ -582,7 +581,7 @@ void JSGenericLowering::LowerJSCall(Node* node) {
}
void JSGenericLowering::LowerJSCallWithSpread(Node* node) {
- CallWithSpreadParameters const& p = CallWithSpreadParametersOf(node->op());
+ SpreadWithArityParameters const& p = SpreadWithArityParametersOf(node->op());
int const arg_count = static_cast<int>(p.arity() - 2);
Callable callable = CodeFactory::CallWithSpread(isolate());
CallDescriptor::Flags flags = FrameStateFlagForCall(node);
« no previous file with comments | « src/compiler/js-call-reducer.cc ('k') | src/compiler/js-operator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698