| Index: src/x64/lithium-x64.h
|
| diff --git a/src/x64/lithium-x64.h b/src/x64/lithium-x64.h
|
| index 5f5a201d27abdced41cd442bb956b58836239d93..e3dbe48f3c3926004f60a6499f7970e757de4b09 100644
|
| --- a/src/x64/lithium-x64.h
|
| +++ b/src/x64/lithium-x64.h
|
| @@ -177,7 +177,8 @@ class LCodeGen;
|
| V(ForInPrepareMap) \
|
| V(ForInCacheArray) \
|
| V(CheckMapValue) \
|
| - V(LoadFieldByIndex)
|
| + V(LoadFieldByIndex) \
|
| + V(WrapReceiver)
|
|
|
|
|
| #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \
|
| @@ -468,6 +469,20 @@ class LControlInstruction: public LTemplateInstruction<0, I, T> {
|
| };
|
|
|
|
|
| +class LWrapReceiver: public LTemplateInstruction<1, 2, 0> {
|
| + public:
|
| + LWrapReceiver(LOperand* receiver, LOperand* function) {
|
| + inputs_[0] = receiver;
|
| + inputs_[1] = function;
|
| + }
|
| +
|
| + DECLARE_CONCRETE_INSTRUCTION(WrapReceiver, "wrap-receiver")
|
| +
|
| + LOperand* receiver() { return inputs_[0]; }
|
| + LOperand* function() { return inputs_[1]; }
|
| +};
|
| +
|
| +
|
| class LApplyArguments: public LTemplateInstruction<1, 4, 0> {
|
| public:
|
| LApplyArguments(LOperand* function,
|
|
|