Index: src/x64/lithium-x64.h |
=================================================================== |
--- src/x64/lithium-x64.h (revision 7048) |
+++ src/x64/lithium-x64.h (working copy) |
@@ -1242,32 +1242,34 @@ |
}; |
-class LLoadContextSlot: public LTemplateInstruction<1, 0, 0> { |
+class LLoadContextSlot: public LTemplateInstruction<1, 1, 0> { |
public: |
- explicit LLoadContextSlot() { |
+ explicit LLoadContextSlot(LOperand* context) { |
+ inputs_[0] = context; |
} |
DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") |
DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) |
+ LOperand* context() { return InputAt(0); } |
int slot_index() { return hydrogen()->slot_index(); } |
virtual void PrintDataTo(StringStream* stream); |
}; |
-class LStoreContextSlot: public LTemplateInstruction<0, 1, 2> { |
+class LStoreContextSlot: public LTemplateInstruction<0, 2, 0> { |
public: |
- LStoreContextSlot(LOperand* value, LOperand* temp_1, LOperand* temp_2) { |
- inputs_[0] = value; |
- temps_[0] = temp_1; |
- temps_[1] = temp_2; |
+ LStoreContextSlot(LOperand* context, LOperand* value) { |
+ inputs_[0] = context; |
+ inputs_[1] = value; |
} |
DECLARE_CONCRETE_INSTRUCTION(StoreContextSlot, "store-context-slot") |
DECLARE_HYDROGEN_ACCESSOR(StoreContextSlot) |
- LOperand* value() { return InputAt(0); } |
+ LOperand* context() { return InputAt(0); } |
+ LOperand* value() { return InputAt(1); } |
int slot_index() { return hydrogen()->slot_index(); } |
int needs_write_barrier() { return hydrogen()->NeedsWriteBarrier(); } |