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

Unified Diff: src/compiler/common-operator.cc

Issue 2692753004: [turbofan] escape analysis supports arguments object and rest elements (Closed)
Patch Set: addressed comments 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/common-operator.cc
diff --git a/src/compiler/common-operator.cc b/src/compiler/common-operator.cc
index 6d148029e2cdf27dbcf95732aff15cf7b482dbeb..d0db411b8a6eea4491934ddf190381e92d724f79 100644
--- a/src/compiler/common-operator.cc
+++ b/src/compiler/common-operator.cc
@@ -1232,11 +1232,16 @@ const Operator* CommonOperatorBuilder::TypedStateValues(
TypedStateValueInfo(types, bitmask)); // parameters
}
-const Operator* CommonOperatorBuilder::ArgumentsObjectState() {
- return new (zone()) Operator( // --
- IrOpcode::kArgumentsObjectState, Operator::kPure, // opcode
- "ArgumentsObjectState", // name
- 0, 0, 0, 1, 0, 0); // counts
+const Operator* CommonOperatorBuilder::ArgumentsElementsState(bool is_rest) {
+ return new (zone()) Operator1<bool>( // --
+ IrOpcode::kArgumentsElementsState, Operator::kPure, // opcode
+ "ArgumentsElementsState", // name
+ 0, 0, 0, 1, 0, 0, is_rest); // counts
+}
+
+int IsRestOf(Operator const* op) {
Jarin 2017/02/27 13:24:34 should be bool.
+ DCHECK(op->opcode() == IrOpcode::kArgumentsElementsState);
+ return OpParameter<bool>(op);
}
const Operator* CommonOperatorBuilder::ObjectState(int pointer_slots) {

Powered by Google App Engine
This is Rietveld 408576698