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>( // -- |