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

Unified Diff: src/compiler/js-call-reducer.cc

Issue 2856103002: [turbofan] Introduce dedicated CallFrequency class. (Closed)
Patch Set: Address offline feedback from jarin@. Created 3 years, 8 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/bytecode-graph-builder.cc ('k') | src/compiler/js-inlining.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/js-call-reducer.cc
diff --git a/src/compiler/js-call-reducer.cc b/src/compiler/js-call-reducer.cc
index edb3d7149f7fcab2410ae1d815f7ce66c5ebc8a6..3a88a90c978102d9f08434a7d317ed068601a4ea 100644
--- a/src/compiler/js-call-reducer.cc
+++ b/src/compiler/js-call-reducer.cc
@@ -495,12 +495,12 @@ Reduction JSCallReducer::ReduceSpreadCall(Node* node, int arity) {
parameters->InputAt(i));
}
+ // TODO(turbofan): Collect call counts on spread call/construct and thread it
+ // through here.
if (node->opcode() == IrOpcode::kJSCallWithSpread) {
- NodeProperties::ChangeOp(
- node, javascript()->Call(arity + 1, 7, VectorSlotPair()));
+ NodeProperties::ChangeOp(node, javascript()->Call(arity + 1));
} else {
- NodeProperties::ChangeOp(
- node, javascript()->Construct(arity + 2, 7, VectorSlotPair()));
+ NodeProperties::ChangeOp(node, javascript()->Construct(arity + 2));
}
return Changed(node);
}
« no previous file with comments | « src/compiler/bytecode-graph-builder.cc ('k') | src/compiler/js-inlining.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698