Index: src/x87/lithium-x87.h |
diff --git a/src/x87/lithium-x87.h b/src/x87/lithium-x87.h |
index 911581411b8be35a2fdfdc0d7db572c766e6ccb2..b8f881ddab66388ccc4824ec5da51f4aa879f823 100644 |
--- a/src/x87/lithium-x87.h |
+++ b/src/x87/lithium-x87.h |
@@ -106,6 +106,7 @@ class LCodeGen; |
V(LoadFieldByIndex) \ |
V(LoadFunctionPrototype) \ |
V(LoadGlobalGeneric) \ |
+ V(LoadGlobalViaContext) \ |
V(LoadKeyed) \ |
V(LoadKeyedGeneric) \ |
V(LoadNamedField) \ |
@@ -146,6 +147,7 @@ class LCodeGen; |
V(StoreCodeEntry) \ |
V(StoreContextSlot) \ |
V(StoreFrameContext) \ |
+ V(StoreGlobalViaContext) \ |
V(StoreKeyed) \ |
V(StoreKeyedGeneric) \ |
V(StoreNamedField) \ |
@@ -1725,6 +1727,23 @@ class LLoadGlobalGeneric final : public LTemplateInstruction<1, 2, 1> { |
}; |
+class LLoadGlobalViaContext final : public LTemplateInstruction<1, 1, 1> { |
+ public: |
+ explicit LLoadGlobalViaContext(LOperand* context) { inputs_[0] = context; } |
+ |
+ DECLARE_CONCRETE_INSTRUCTION(LoadGlobalViaContext, "load-global-via-context") |
+ DECLARE_HYDROGEN_ACCESSOR(LoadGlobalViaContext) |
+ |
+ void PrintDataTo(StringStream* stream) override; |
+ |
+ LOperand* context() { return inputs_[0]; } |
+ |
+ Handle<Object> name() const { return hydrogen()->name(); } |
+ int depth() const { return hydrogen()->depth(); } |
+ int slot_index() const { return hydrogen()->slot_index(); } |
+}; |
+ |
+ |
class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { |
public: |
explicit LLoadContextSlot(LOperand* context) { |
@@ -2213,6 +2232,29 @@ class LStoreNamedGeneric final : public LTemplateInstruction<0, 3, 2> { |
}; |
+class LStoreGlobalViaContext final : public LTemplateInstruction<0, 2, 0> { |
+ public: |
+ LStoreGlobalViaContext(LOperand* context, LOperand* value) { |
+ inputs_[0] = context; |
+ inputs_[1] = value; |
+ } |
+ |
+ LOperand* context() { return inputs_[0]; } |
+ LOperand* value() { return inputs_[1]; } |
+ |
+ DECLARE_CONCRETE_INSTRUCTION(StoreGlobalViaContext, |
+ "store-global-via-context") |
+ DECLARE_HYDROGEN_ACCESSOR(StoreGlobalViaContext) |
+ |
+ void PrintDataTo(StringStream* stream) override; |
+ |
+ Handle<Object> name() const { return hydrogen()->name(); } |
+ int depth() { return hydrogen()->depth(); } |
+ int slot_index() { return hydrogen()->slot_index(); } |
+ LanguageMode language_mode() { return hydrogen()->language_mode(); } |
+}; |
+ |
+ |
class LStoreKeyed final : public LTemplateInstruction<0, 3, 0> { |
public: |
LStoreKeyed(LOperand* obj, LOperand* key, LOperand* val) { |