Index: src/hydrogen-instructions.h |
diff --git a/src/hydrogen-instructions.h b/src/hydrogen-instructions.h |
index a623775f2f8aa68dddb9fbd3c93703321bfde43f..1fbb679bb4bee9dd7ded8afeba39c5dca9d8f152 100644 |
--- a/src/hydrogen-instructions.h |
+++ b/src/hydrogen-instructions.h |
@@ -114,6 +114,7 @@ class LChunkBuilder; |
V(HasCachedArrayIndex) \ |
V(InstanceOf) \ |
V(InstanceOfKnownGlobal) \ |
+ V(InvokeFunction) \ |
V(IsNull) \ |
V(IsObject) \ |
V(IsSmi) \ |
@@ -1243,6 +1244,23 @@ class HBinaryCall: public HCall<2> { |
}; |
+class HInvokeFunction: public HBinaryCall { |
+ public: |
+ HInvokeFunction(HValue* context, HValue* function, int argument_count) |
+ : HBinaryCall(context, function, argument_count) { |
+ } |
+ |
+ virtual Representation RequiredInputRepresentation(int index) const { |
+ return Representation::Tagged(); |
+ } |
+ |
+ HValue* context() { return first(); } |
+ HValue* function() { return second(); } |
+ |
+ DECLARE_CONCRETE_INSTRUCTION(InvokeFunction, "invoke_function") |
+}; |
+ |
+ |
class HCallConstantFunction: public HCall<0> { |
public: |
HCallConstantFunction(Handle<JSFunction> function, int argument_count) |