| Index: src/hydrogen-instructions.h
|
| ===================================================================
|
| --- src/hydrogen-instructions.h (revision 7622)
|
| +++ src/hydrogen-instructions.h (working copy)
|
| @@ -114,6 +114,7 @@
|
| V(HasCachedArrayIndex) \
|
| V(InstanceOf) \
|
| V(InstanceOfKnownGlobal) \
|
| + V(InvokeFunction) \
|
| V(IsNull) \
|
| V(IsObject) \
|
| V(IsSmi) \
|
| @@ -1244,6 +1245,23 @@
|
| };
|
|
|
|
|
| +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)
|
|
|