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

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

Issue 2950773002: [turbofan] Introduce new JSCallWithArrayLike operator. (Closed)
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/js-operator.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/js-operator.cc
diff --git a/src/compiler/js-operator.cc b/src/compiler/js-operator.cc
index 467d83f90af7ebccd4349af642ea0b6919af2ff5..1e9d32dc0f9f2aa599f2c85e52279a5b386ded82 100644
--- a/src/compiler/js-operator.cc
+++ b/src/compiler/js-operator.cc
@@ -22,6 +22,11 @@ std::ostream& operator<<(std::ostream& os, CallFrequency f) {
return os << f.value();
}
+CallFrequency CallFrequencyOf(Operator const* op) {
+ DCHECK_EQ(IrOpcode::kJSCallWithArrayLike, op->opcode());
+ return OpParameter<CallFrequency>(op);
+}
+
VectorSlotPair::VectorSlotPair() {}
@@ -821,6 +826,14 @@ const Operator* JSOperatorBuilder::Call(size_t arity, CallFrequency frequency,
parameters); // parameter
}
+const Operator* JSOperatorBuilder::CallWithArrayLike(CallFrequency frequency) {
+ return new (zone()) Operator1<CallFrequency>( // --
+ IrOpcode::kJSCallWithArrayLike, Operator::kNoProperties, // opcode
+ "JSCallWithArrayLike", // name
+ 3, 1, 1, 1, 1, 2, // counts
+ frequency); // parameter
+}
+
const Operator* JSOperatorBuilder::CallWithSpread(uint32_t arity) {
SpreadWithArityParameter parameters(arity);
return new (zone()) Operator1<SpreadWithArityParameter>( // --
« no previous file with comments | « src/compiler/js-operator.h ('k') | src/compiler/opcodes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698