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_ARM_LITHIUM_ARM_H_ | 5 #ifndef V8_ARM_LITHIUM_ARM_H_ |
6 #define V8_ARM_LITHIUM_ARM_H_ | 6 #define V8_ARM_LITHIUM_ARM_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 1699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1710 public: | 1710 public: |
1711 explicit LLoadGlobalViaContext(LOperand* context) { inputs_[0] = context; } | 1711 explicit LLoadGlobalViaContext(LOperand* context) { inputs_[0] = context; } |
1712 | 1712 |
1713 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalViaContext, "load-global-via-context") | 1713 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalViaContext, "load-global-via-context") |
1714 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalViaContext) | 1714 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalViaContext) |
1715 | 1715 |
1716 void PrintDataTo(StringStream* stream) override; | 1716 void PrintDataTo(StringStream* stream) override; |
1717 | 1717 |
1718 LOperand* context() { return inputs_[0]; } | 1718 LOperand* context() { return inputs_[0]; } |
1719 | 1719 |
1720 Handle<Object> name() const { return hydrogen()->name(); } | |
1721 int depth() const { return hydrogen()->depth(); } | 1720 int depth() const { return hydrogen()->depth(); } |
1722 int slot_index() const { return hydrogen()->slot_index(); } | 1721 int slot_index() const { return hydrogen()->slot_index(); } |
1723 }; | 1722 }; |
1724 | 1723 |
1725 | 1724 |
1726 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { | 1725 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { |
1727 public: | 1726 public: |
1728 explicit LLoadContextSlot(LOperand* context) { | 1727 explicit LLoadContextSlot(LOperand* context) { |
1729 inputs_[0] = context; | 1728 inputs_[0] = context; |
1730 } | 1729 } |
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2233 | 2232 |
2234 LOperand* context() { return inputs_[0]; } | 2233 LOperand* context() { return inputs_[0]; } |
2235 LOperand* value() { return inputs_[1]; } | 2234 LOperand* value() { return inputs_[1]; } |
2236 | 2235 |
2237 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalViaContext, | 2236 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalViaContext, |
2238 "store-global-via-context") | 2237 "store-global-via-context") |
2239 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalViaContext) | 2238 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalViaContext) |
2240 | 2239 |
2241 void PrintDataTo(StringStream* stream) override; | 2240 void PrintDataTo(StringStream* stream) override; |
2242 | 2241 |
2243 Handle<Object> name() const { return hydrogen()->name(); } | |
2244 int depth() { return hydrogen()->depth(); } | 2242 int depth() { return hydrogen()->depth(); } |
2245 int slot_index() { return hydrogen()->slot_index(); } | 2243 int slot_index() { return hydrogen()->slot_index(); } |
2246 LanguageMode language_mode() { return hydrogen()->language_mode(); } | 2244 LanguageMode language_mode() { return hydrogen()->language_mode(); } |
2247 }; | 2245 }; |
2248 | 2246 |
2249 | 2247 |
2250 class LStoreKeyed final : public LTemplateInstruction<0, 3, 0> { | 2248 class LStoreKeyed final : public LTemplateInstruction<0, 3, 0> { |
2251 public: | 2249 public: |
2252 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value) { | 2250 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value) { |
2253 inputs_[0] = object; | 2251 inputs_[0] = object; |
(...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2934 | 2932 |
2935 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2933 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2936 }; | 2934 }; |
2937 | 2935 |
2938 #undef DECLARE_HYDROGEN_ACCESSOR | 2936 #undef DECLARE_HYDROGEN_ACCESSOR |
2939 #undef DECLARE_CONCRETE_INSTRUCTION | 2937 #undef DECLARE_CONCRETE_INSTRUCTION |
2940 | 2938 |
2941 } } // namespace v8::internal | 2939 } } // namespace v8::internal |
2942 | 2940 |
2943 #endif // V8_ARM_LITHIUM_ARM_H_ | 2941 #endif // V8_ARM_LITHIUM_ARM_H_ |
OLD | NEW |