| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_IA32_LITHIUM_IA32_H_ | 5 #ifndef V8_IA32_LITHIUM_IA32_H_ |
| 6 #define V8_IA32_LITHIUM_IA32_H_ | 6 #define V8_IA32_LITHIUM_IA32_H_ |
| 7 | 7 |
| 8 #include "src/hydrogen.h" | 8 #include "src/hydrogen.h" |
| 9 #include "src/lithium.h" | 9 #include "src/lithium.h" |
| 10 #include "src/lithium-allocator.h" | 10 #include "src/lithium-allocator.h" |
| (...skipping 1712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1723 public: | 1723 public: |
| 1724 explicit LLoadGlobalViaContext(LOperand* context) { inputs_[0] = context; } | 1724 explicit LLoadGlobalViaContext(LOperand* context) { inputs_[0] = context; } |
| 1725 | 1725 |
| 1726 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalViaContext, "load-global-via-context") | 1726 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalViaContext, "load-global-via-context") |
| 1727 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalViaContext) | 1727 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalViaContext) |
| 1728 | 1728 |
| 1729 void PrintDataTo(StringStream* stream) override; | 1729 void PrintDataTo(StringStream* stream) override; |
| 1730 | 1730 |
| 1731 LOperand* context() { return inputs_[0]; } | 1731 LOperand* context() { return inputs_[0]; } |
| 1732 | 1732 |
| 1733 Handle<Object> name() const { return hydrogen()->name(); } | |
| 1734 int depth() const { return hydrogen()->depth(); } | 1733 int depth() const { return hydrogen()->depth(); } |
| 1735 int slot_index() const { return hydrogen()->slot_index(); } | 1734 int slot_index() const { return hydrogen()->slot_index(); } |
| 1736 }; | 1735 }; |
| 1737 | 1736 |
| 1738 | 1737 |
| 1739 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { | 1738 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { |
| 1740 public: | 1739 public: |
| 1741 explicit LLoadContextSlot(LOperand* context) { | 1740 explicit LLoadContextSlot(LOperand* context) { |
| 1742 inputs_[0] = context; | 1741 inputs_[0] = context; |
| 1743 } | 1742 } |
| (...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2237 | 2236 |
| 2238 LOperand* context() { return inputs_[0]; } | 2237 LOperand* context() { return inputs_[0]; } |
| 2239 LOperand* value() { return inputs_[1]; } | 2238 LOperand* value() { return inputs_[1]; } |
| 2240 | 2239 |
| 2241 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalViaContext, | 2240 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalViaContext, |
| 2242 "store-global-via-context") | 2241 "store-global-via-context") |
| 2243 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalViaContext) | 2242 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalViaContext) |
| 2244 | 2243 |
| 2245 void PrintDataTo(StringStream* stream) override; | 2244 void PrintDataTo(StringStream* stream) override; |
| 2246 | 2245 |
| 2247 Handle<Object> name() const { return hydrogen()->name(); } | |
| 2248 int depth() { return hydrogen()->depth(); } | 2246 int depth() { return hydrogen()->depth(); } |
| 2249 int slot_index() { return hydrogen()->slot_index(); } | 2247 int slot_index() { return hydrogen()->slot_index(); } |
| 2250 LanguageMode language_mode() { return hydrogen()->language_mode(); } | 2248 LanguageMode language_mode() { return hydrogen()->language_mode(); } |
| 2251 }; | 2249 }; |
| 2252 | 2250 |
| 2253 | 2251 |
| 2254 class LStoreKeyed final : public LTemplateInstruction<0, 3, 0> { | 2252 class LStoreKeyed final : public LTemplateInstruction<0, 3, 0> { |
| 2255 public: | 2253 public: |
| 2256 LStoreKeyed(LOperand* obj, LOperand* key, LOperand* val) { | 2254 LStoreKeyed(LOperand* obj, LOperand* key, LOperand* val) { |
| 2257 inputs_[0] = obj; | 2255 inputs_[0] = obj; |
| (...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2932 | 2930 |
| 2933 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2931 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2934 }; | 2932 }; |
| 2935 | 2933 |
| 2936 #undef DECLARE_HYDROGEN_ACCESSOR | 2934 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2937 #undef DECLARE_CONCRETE_INSTRUCTION | 2935 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2938 | 2936 |
| 2939 } } // namespace v8::internal | 2937 } } // namespace v8::internal |
| 2940 | 2938 |
| 2941 #endif // V8_IA32_LITHIUM_IA32_H_ | 2939 #endif // V8_IA32_LITHIUM_IA32_H_ |
| OLD | NEW |