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

Unified Diff: src/compiler/common-operator.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/common-operator.h ('k') | src/compiler/escape-analysis-reducer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/common-operator.cc
diff --git a/src/compiler/common-operator.cc b/src/compiler/common-operator.cc
index ed16aa197d8177fff9774a3b26d840249a2b0bd9..0b98d575b16ff3502cce7efdffdffd61318f5959 100644
--- a/src/compiler/common-operator.cc
+++ b/src/compiler/common-operator.cc
@@ -1239,8 +1239,16 @@ const Operator* CommonOperatorBuilder::ArgumentsElementsState(bool is_rest) {
0, 0, 0, 1, 0, 0, is_rest); // counts
}
+const Operator* CommonOperatorBuilder::ArgumentsLengthState(bool is_rest) {
+ return new (zone()) Operator1<bool>( // --
+ IrOpcode::kArgumentsLengthState, Operator::kPure, // opcode
+ "ArgumentsLengthState", // name
+ 0, 0, 0, 1, 0, 0, is_rest); // counts
+}
+
bool IsRestOf(Operator const* op) {
- DCHECK(op->opcode() == IrOpcode::kArgumentsElementsState);
+ DCHECK(op->opcode() == IrOpcode::kArgumentsElementsState ||
+ op->opcode() == IrOpcode::kArgumentsLengthState);
return OpParameter<bool>(op);
}
« no previous file with comments | « src/compiler/common-operator.h ('k') | src/compiler/escape-analysis-reducer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698