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

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

Issue 2692753004: [turbofan] escape analysis supports arguments object and rest elements (Closed)
Patch Set: replaced obscure for-loop 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
Index: src/compiler/instruction-selector.cc
diff --git a/src/compiler/instruction-selector.cc b/src/compiler/instruction-selector.cc
index d7fd37a4582eb4ab3101e9e54ee6870ac77716de..3864a7b8d824e8fcb52762f187855dde7a30b96a 100644
--- a/src/compiler/instruction-selector.cc
+++ b/src/compiler/instruction-selector.cc
@@ -452,7 +452,7 @@ InstructionOperand OperandForDeopt(Isolate* isolate, OperandGenerator* g,
return g->UseImmediate(input);
}
- case IrOpcode::kArgumentsObjectState:
+ case IrOpcode::kArgumentsElementsState:
case IrOpcode::kObjectState:
case IrOpcode::kTypedObjectState:
UNREACHABLE();
@@ -508,8 +508,8 @@ size_t InstructionSelector::AddOperandToStateValueDescriptor(
}
switch (input->opcode()) {
- case IrOpcode::kArgumentsObjectState: {
- values->PushArguments();
+ case IrOpcode::kArgumentsElementsState: {
+ values->PushArgumentsElements(SkippedArgumentsOf(input->op()));
return 0;
}
case IrOpcode::kObjectState: {

Powered by Google App Engine
This is Rietveld 408576698