| Index: src/arm/lithium-arm.h
|
| diff --git a/src/arm/lithium-arm.h b/src/arm/lithium-arm.h
|
| index 77aabaf7390c43fcdb69c33c20dc0bbcd06d3bee..f406f95737ea3c5839fd9363631ac0fbe42952f8 100644
|
| --- a/src/arm/lithium-arm.h
|
| +++ b/src/arm/lithium-arm.h
|
| @@ -119,7 +119,8 @@ class LCodeGen;
|
| V(LoadElements) \
|
| V(LoadExternalArrayPointer) \
|
| V(LoadFunctionPrototype) \
|
| - V(LoadGlobal) \
|
| + V(LoadGlobalCell) \
|
| + V(LoadGlobalGeneric) \
|
| V(LoadKeyedFastElement) \
|
| V(LoadKeyedGeneric) \
|
| V(LoadKeyedSpecializedArrayElement) \
|
| @@ -144,7 +145,8 @@ class LCodeGen;
|
| V(SmiUntag) \
|
| V(StackCheck) \
|
| V(StoreContextSlot) \
|
| - V(StoreGlobal) \
|
| + V(StoreGlobalCell) \
|
| + V(StoreGlobalGeneric) \
|
| V(StoreKeyedFastElement) \
|
| V(StoreKeyedGeneric) \
|
| V(StoreKeyedSpecializedArrayElement) \
|
| @@ -1259,22 +1261,54 @@ class LLoadKeyedGeneric: public LTemplateInstruction<1, 2, 0> {
|
| };
|
|
|
|
|
| -class LLoadGlobal: public LTemplateInstruction<1, 0, 0> {
|
| +class LLoadGlobalCell: public LTemplateInstruction<1, 0, 0> {
|
| public:
|
| - DECLARE_CONCRETE_INSTRUCTION(LoadGlobal, "load-global")
|
| - DECLARE_HYDROGEN_ACCESSOR(LoadGlobal)
|
| + DECLARE_CONCRETE_INSTRUCTION(LoadGlobalCell, "load-global-cell")
|
| + DECLARE_HYDROGEN_ACCESSOR(LoadGlobalCell)
|
| };
|
|
|
|
|
| -class LStoreGlobal: public LTemplateInstruction<0, 1, 1> {
|
| +class LLoadGlobalGeneric: public LTemplateInstruction<1, 1, 0> {
|
| public:
|
| - LStoreGlobal(LOperand* value, LOperand* temp) {
|
| + explicit LLoadGlobalGeneric(LOperand* global_object) {
|
| + inputs_[0] = global_object;
|
| + }
|
| +
|
| + DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic")
|
| + DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric)
|
| +
|
| + LOperand* global_object() { return inputs_[0]; }
|
| + Handle<Object> name() const { return hydrogen()->name(); }
|
| + bool for_typeof() const { return hydrogen()->for_typeof(); }
|
| +};
|
| +
|
| +
|
| +class LStoreGlobalCell: public LTemplateInstruction<0, 1, 1> {
|
| + public:
|
| + LStoreGlobalCell(LOperand* value, LOperand* temp) {
|
| inputs_[0] = value;
|
| temps_[0] = temp;
|
| }
|
|
|
| - DECLARE_CONCRETE_INSTRUCTION(StoreGlobal, "store-global")
|
| - DECLARE_HYDROGEN_ACCESSOR(StoreGlobal)
|
| + DECLARE_CONCRETE_INSTRUCTION(StoreGlobalCell, "store-global-cell")
|
| + DECLARE_HYDROGEN_ACCESSOR(StoreGlobalCell)
|
| +};
|
| +
|
| +
|
| +class LStoreGlobalGeneric: public LTemplateInstruction<0, 2, 0> {
|
| + public:
|
| + explicit LStoreGlobalGeneric(LOperand* global_object,
|
| + LOperand* value) {
|
| + inputs_[0] = global_object;
|
| + inputs_[1] = value;
|
| + }
|
| +
|
| + DECLARE_CONCRETE_INSTRUCTION(StoreGlobalGeneric, "store-global-generic")
|
| + DECLARE_HYDROGEN_ACCESSOR(StoreGlobalGeneric)
|
| +
|
| + LOperand* global_object() { return InputAt(0); }
|
| + Handle<Object> name() const { return hydrogen()->name(); }
|
| + LOperand* value() { return InputAt(1); }
|
| };
|
|
|
|
|
|
|