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

Unified Diff: src/compiler/instruction-selector.cc

Issue 2729163002: [turbofan] compute arguments length in deoptimizer (Closed)
Patch Set: fix comment 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/instruction.h ('k') | src/compiler/opcodes.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/instruction-selector.cc
diff --git a/src/compiler/instruction-selector.cc b/src/compiler/instruction-selector.cc
index e095bc20b38a3de322d68367bf393186c5432a84..88d201d08c1a4fe710b9ff4b838dd5592284a317 100644
--- a/src/compiler/instruction-selector.cc
+++ b/src/compiler/instruction-selector.cc
@@ -454,6 +454,7 @@ InstructionOperand OperandForDeopt(Isolate* isolate, OperandGenerator* g,
return g->UseImmediate(input);
}
case IrOpcode::kArgumentsElementsState:
+ case IrOpcode::kArgumentsLengthState:
case IrOpcode::kObjectState:
case IrOpcode::kTypedObjectState:
UNREACHABLE();
@@ -513,6 +514,10 @@ size_t InstructionSelector::AddOperandToStateValueDescriptor(
values->PushArgumentsElements(IsRestOf(input->op()));
return 0;
}
+ case IrOpcode::kArgumentsLengthState: {
+ values->PushArgumentsLength(IsRestOf(input->op()));
+ return 0;
+ }
case IrOpcode::kObjectState: {
UNREACHABLE();
return 0;
« no previous file with comments | « src/compiler/instruction.h ('k') | src/compiler/opcodes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698