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

Unified Diff: src/compiler/simplified-lowering.cc

Issue 2946893004: [WIP] Start adding JSCallWithVarargs
Patch Set: REBASE Created 3 years, 6 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/opcodes.h ('k') | src/compiler/typer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/simplified-lowering.cc
diff --git a/src/compiler/simplified-lowering.cc b/src/compiler/simplified-lowering.cc
index 017a730eeaf21d5a0b47cacb00d3572573121e85..67a04388f7c779cae8c36acd8c86bb3679c8b4ea 100644
--- a/src/compiler/simplified-lowering.cc
+++ b/src/compiler/simplified-lowering.cc
@@ -1553,6 +1553,19 @@ class RepresentationSelector {
}
return;
}
+ case IrOpcode::kJSCallVarargs: {
+ CallVarargsParameters p = CallVarargsParametersOf(node->op());
+ int arity = static_cast<int>(p.arity());
+ for (int i = 0; i < arity; ++i) {
+ ProcessInput(node, i, UseInfo::AnyTagged());
+ }
+ // argumentsList and argumentsLength
+ ProcessInput(node, arity + 0, UseInfo::TaggedPointer());
+ ProcessInput(node, arity + 1, UseInfo::TruncatingWord32());
+ ProcessRemainingInputs(node, arity + 2);
+ SetOutput(node, MachineRepresentation::kTagged);
+ return;
+ }
//------------------------------------------------------------------
// Simplified operators.
@@ -2898,6 +2911,14 @@ class RepresentationSelector {
case IrOpcode::kJSToObject:
case IrOpcode::kJSToString:
case IrOpcode::kJSToPrimitiveToString:
+ case IrOpcode::kJSConstruct:
+ case IrOpcode::kJSConstructForwardVarargs:
+ case IrOpcode::kJSConstructWithSpread:
+ case IrOpcode::kJSCall:
+ case IrOpcode::kJSCallForwardVarargs:
+ case IrOpcode::kJSCallWithArrayLike:
+ case IrOpcode::kJSCallWithSpread:
+ case IrOpcode::kJSCallRuntime:
VisitInputs(node);
// Assume the output is tagged.
return SetOutput(node, MachineRepresentation::kTagged);
« no previous file with comments | « src/compiler/opcodes.h ('k') | src/compiler/typer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698