| Index: src/mips/lithium-mips.h
|
| diff --git a/src/mips/lithium-mips.h b/src/mips/lithium-mips.h
|
| index 7c5a4afda376b0208e84b520301bc7e8a88b3e76..5a7bf4d941b577dd8a9a7d7268a5b67891bc46e4 100644
|
| --- a/src/mips/lithium-mips.h
|
| +++ b/src/mips/lithium-mips.h
|
| @@ -178,7 +178,8 @@ class LCodeGen;
|
| V(ForInCacheArray) \
|
| V(CheckMapValue) \
|
| V(LoadFieldByIndex) \
|
| - V(DateField)
|
| + V(DateField) \
|
| + V(WrapReceiver)
|
|
|
| #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \
|
| virtual Opcode opcode() const { return LInstruction::k##type; } \
|
| @@ -467,6 +468,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,
|
|
|