| 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 1662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1673 public: | 1673 public: |
| 1674 explicit LLoadGlobalViaContext(LOperand* context) { inputs_[0] = context; } | 1674 explicit LLoadGlobalViaContext(LOperand* context) { inputs_[0] = context; } |
| 1675 | 1675 |
| 1676 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalViaContext, "load-global-via-context") | 1676 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalViaContext, "load-global-via-context") |
| 1677 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalViaContext) | 1677 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalViaContext) |
| 1678 | 1678 |
| 1679 void PrintDataTo(StringStream* stream) override; | 1679 void PrintDataTo(StringStream* stream) override; |
| 1680 | 1680 |
| 1681 LOperand* context() { return inputs_[0]; } | 1681 LOperand* context() { return inputs_[0]; } |
| 1682 | 1682 |
| 1683 Handle<Object> name() const { return hydrogen()->name(); } | |
| 1684 int depth() const { return hydrogen()->depth(); } | 1683 int depth() const { return hydrogen()->depth(); } |
| 1685 int slot_index() const { return hydrogen()->slot_index(); } | 1684 int slot_index() const { return hydrogen()->slot_index(); } |
| 1686 }; | 1685 }; |
| 1687 | 1686 |
| 1688 | 1687 |
| 1689 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { | 1688 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { |
| 1690 public: | 1689 public: |
| 1691 explicit LLoadContextSlot(LOperand* context) { | 1690 explicit LLoadContextSlot(LOperand* context) { |
| 1692 inputs_[0] = context; | 1691 inputs_[0] = context; |
| 1693 } | 1692 } |
| (...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2196 | 2195 |
| 2197 LOperand* context() { return inputs_[0]; } | 2196 LOperand* context() { return inputs_[0]; } |
| 2198 LOperand* value() { return inputs_[1]; } | 2197 LOperand* value() { return inputs_[1]; } |
| 2199 | 2198 |
| 2200 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalViaContext, | 2199 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalViaContext, |
| 2201 "store-global-via-context") | 2200 "store-global-via-context") |
| 2202 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalViaContext) | 2201 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalViaContext) |
| 2203 | 2202 |
| 2204 void PrintDataTo(StringStream* stream) override; | 2203 void PrintDataTo(StringStream* stream) override; |
| 2205 | 2204 |
| 2206 Handle<Object> name() const { return hydrogen()->name(); } | |
| 2207 int depth() { return hydrogen()->depth(); } | 2205 int depth() { return hydrogen()->depth(); } |
| 2208 int slot_index() { return hydrogen()->slot_index(); } | 2206 int slot_index() { return hydrogen()->slot_index(); } |
| 2209 LanguageMode language_mode() { return hydrogen()->language_mode(); } | 2207 LanguageMode language_mode() { return hydrogen()->language_mode(); } |
| 2210 }; | 2208 }; |
| 2211 | 2209 |
| 2212 | 2210 |
| 2213 class LStoreKeyed final : public LTemplateInstruction<0, 3, 0> { | 2211 class LStoreKeyed final : public LTemplateInstruction<0, 3, 0> { |
| 2214 public: | 2212 public: |
| 2215 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value) { | 2213 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value) { |
| 2216 inputs_[0] = object; | 2214 inputs_[0] = object; |
| (...skipping 675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2892 | 2890 |
| 2893 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2891 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2894 }; | 2892 }; |
| 2895 | 2893 |
| 2896 #undef DECLARE_HYDROGEN_ACCESSOR | 2894 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2897 #undef DECLARE_CONCRETE_INSTRUCTION | 2895 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2898 | 2896 |
| 2899 } } // namespace v8::internal | 2897 } } // namespace v8::internal |
| 2900 | 2898 |
| 2901 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2899 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
| OLD | NEW |