| 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_MIPS_LITHIUM_MIPS_H_ | 5 #ifndef V8_MIPS_LITHIUM_MIPS_H_ |
| 6 #define V8_MIPS_LITHIUM_MIPS_H_ | 6 #define V8_MIPS_LITHIUM_MIPS_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 1724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1735 public: | 1735 public: |
| 1736 explicit LLoadGlobalViaContext(LOperand* context) { inputs_[0] = context; } | 1736 explicit LLoadGlobalViaContext(LOperand* context) { inputs_[0] = context; } |
| 1737 | 1737 |
| 1738 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalViaContext, "load-global-via-context") | 1738 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalViaContext, "load-global-via-context") |
| 1739 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalViaContext) | 1739 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalViaContext) |
| 1740 | 1740 |
| 1741 void PrintDataTo(StringStream* stream) override; | 1741 void PrintDataTo(StringStream* stream) override; |
| 1742 | 1742 |
| 1743 LOperand* context() { return inputs_[0]; } | 1743 LOperand* context() { return inputs_[0]; } |
| 1744 | 1744 |
| 1745 Handle<Object> name() const { return hydrogen()->name(); } | |
| 1746 int depth() const { return hydrogen()->depth(); } | 1745 int depth() const { return hydrogen()->depth(); } |
| 1747 int slot_index() const { return hydrogen()->slot_index(); } | 1746 int slot_index() const { return hydrogen()->slot_index(); } |
| 1748 }; | 1747 }; |
| 1749 | 1748 |
| 1750 | 1749 |
| 1751 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { | 1750 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { |
| 1752 public: | 1751 public: |
| 1753 explicit LLoadContextSlot(LOperand* context) { | 1752 explicit LLoadContextSlot(LOperand* context) { |
| 1754 inputs_[0] = context; | 1753 inputs_[0] = context; |
| 1755 } | 1754 } |
| (...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2242 | 2241 |
| 2243 LOperand* context() { return inputs_[0]; } | 2242 LOperand* context() { return inputs_[0]; } |
| 2244 LOperand* value() { return inputs_[1]; } | 2243 LOperand* value() { return inputs_[1]; } |
| 2245 | 2244 |
| 2246 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalViaContext, | 2245 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalViaContext, |
| 2247 "store-global-via-context") | 2246 "store-global-via-context") |
| 2248 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalViaContext) | 2247 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalViaContext) |
| 2249 | 2248 |
| 2250 void PrintDataTo(StringStream* stream) override; | 2249 void PrintDataTo(StringStream* stream) override; |
| 2251 | 2250 |
| 2252 Handle<Object> name() const { return hydrogen()->name(); } | |
| 2253 int depth() { return hydrogen()->depth(); } | 2251 int depth() { return hydrogen()->depth(); } |
| 2254 int slot_index() { return hydrogen()->slot_index(); } | 2252 int slot_index() { return hydrogen()->slot_index(); } |
| 2255 LanguageMode language_mode() { return hydrogen()->language_mode(); } | 2253 LanguageMode language_mode() { return hydrogen()->language_mode(); } |
| 2256 }; | 2254 }; |
| 2257 | 2255 |
| 2258 | 2256 |
| 2259 class LStoreKeyed final : public LTemplateInstruction<0, 3, 0> { | 2257 class LStoreKeyed final : public LTemplateInstruction<0, 3, 0> { |
| 2260 public: | 2258 public: |
| 2261 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value) { | 2259 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value) { |
| 2262 inputs_[0] = object; | 2260 inputs_[0] = object; |
| (...skipping 675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2938 | 2936 |
| 2939 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2937 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2940 }; | 2938 }; |
| 2941 | 2939 |
| 2942 #undef DECLARE_HYDROGEN_ACCESSOR | 2940 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2943 #undef DECLARE_CONCRETE_INSTRUCTION | 2941 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2944 | 2942 |
| 2945 } } // namespace v8::internal | 2943 } } // namespace v8::internal |
| 2946 | 2944 |
| 2947 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2945 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
| OLD | NEW |