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_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ | 5 #ifndef V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ |
6 #define V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ | 6 #define V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ |
7 | 7 |
8 #include "src/crankshaft/hydrogen.h" | 8 #include "src/crankshaft/hydrogen.h" |
9 #include "src/crankshaft/lithium.h" | 9 #include "src/crankshaft/lithium.h" |
10 #include "src/crankshaft/lithium-allocator.h" | 10 #include "src/crankshaft/lithium-allocator.h" |
(...skipping 1612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1623 | 1623 |
1624 class LLoadRoot final : public LTemplateInstruction<1, 0, 0> { | 1624 class LLoadRoot final : public LTemplateInstruction<1, 0, 0> { |
1625 public: | 1625 public: |
1626 DECLARE_CONCRETE_INSTRUCTION(LoadRoot, "load-root") | 1626 DECLARE_CONCRETE_INSTRUCTION(LoadRoot, "load-root") |
1627 DECLARE_HYDROGEN_ACCESSOR(LoadRoot) | 1627 DECLARE_HYDROGEN_ACCESSOR(LoadRoot) |
1628 | 1628 |
1629 Heap::RootListIndex index() const { return hydrogen()->index(); } | 1629 Heap::RootListIndex index() const { return hydrogen()->index(); } |
1630 }; | 1630 }; |
1631 | 1631 |
1632 | 1632 |
1633 class LLoadKeyed final : public LTemplateInstruction<1, 2, 0> { | 1633 class LLoadKeyed final : public LTemplateInstruction<1, 3, 0> { |
1634 public: | 1634 public: |
1635 LLoadKeyed(LOperand* elements, LOperand* key) { | 1635 LLoadKeyed(LOperand* elements, LOperand* key, LOperand* backing_store_owner) { |
1636 inputs_[0] = elements; | 1636 inputs_[0] = elements; |
1637 inputs_[1] = key; | 1637 inputs_[1] = key; |
| 1638 inputs_[2] = backing_store_owner; |
1638 } | 1639 } |
1639 | 1640 |
1640 LOperand* elements() { return inputs_[0]; } | 1641 LOperand* elements() { return inputs_[0]; } |
1641 LOperand* key() { return inputs_[1]; } | 1642 LOperand* key() { return inputs_[1]; } |
| 1643 LOperand* backing_store_owner() { return inputs_[2]; } |
1642 ElementsKind elements_kind() const { | 1644 ElementsKind elements_kind() const { |
1643 return hydrogen()->elements_kind(); | 1645 return hydrogen()->elements_kind(); |
1644 } | 1646 } |
1645 bool is_fixed_typed_array() const { | 1647 bool is_fixed_typed_array() const { |
1646 return hydrogen()->is_fixed_typed_array(); | 1648 return hydrogen()->is_fixed_typed_array(); |
1647 } | 1649 } |
1648 | 1650 |
1649 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed") | 1651 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed") |
1650 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed) | 1652 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed) |
1651 | 1653 |
(...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2173 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic") | 2175 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic") |
2174 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric) | 2176 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric) |
2175 | 2177 |
2176 void PrintDataTo(StringStream* stream) override; | 2178 void PrintDataTo(StringStream* stream) override; |
2177 | 2179 |
2178 Handle<Object> name() const { return hydrogen()->name(); } | 2180 Handle<Object> name() const { return hydrogen()->name(); } |
2179 LanguageMode language_mode() { return hydrogen()->language_mode(); } | 2181 LanguageMode language_mode() { return hydrogen()->language_mode(); } |
2180 }; | 2182 }; |
2181 | 2183 |
2182 | 2184 |
2183 class LStoreKeyed final : public LTemplateInstruction<0, 3, 0> { | 2185 class LStoreKeyed final : public LTemplateInstruction<0, 4, 0> { |
2184 public: | 2186 public: |
2185 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value) { | 2187 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value, |
| 2188 LOperand* backing_store_owner) { |
2186 inputs_[0] = object; | 2189 inputs_[0] = object; |
2187 inputs_[1] = key; | 2190 inputs_[1] = key; |
2188 inputs_[2] = value; | 2191 inputs_[2] = value; |
| 2192 inputs_[3] = backing_store_owner; |
2189 } | 2193 } |
2190 | 2194 |
2191 bool is_fixed_typed_array() const { | 2195 bool is_fixed_typed_array() const { |
2192 return hydrogen()->is_fixed_typed_array(); | 2196 return hydrogen()->is_fixed_typed_array(); |
2193 } | 2197 } |
2194 LOperand* elements() { return inputs_[0]; } | 2198 LOperand* elements() { return inputs_[0]; } |
2195 LOperand* key() { return inputs_[1]; } | 2199 LOperand* key() { return inputs_[1]; } |
2196 LOperand* value() { return inputs_[2]; } | 2200 LOperand* value() { return inputs_[2]; } |
| 2201 LOperand* backing_store_owner() { return inputs_[3]; } |
2197 ElementsKind elements_kind() const { | 2202 ElementsKind elements_kind() const { |
2198 return hydrogen()->elements_kind(); | 2203 return hydrogen()->elements_kind(); |
2199 } | 2204 } |
2200 | 2205 |
2201 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed") | 2206 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed") |
2202 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed) | 2207 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed) |
2203 | 2208 |
2204 void PrintDataTo(StringStream* stream) override; | 2209 void PrintDataTo(StringStream* stream) override; |
2205 bool NeedsCanonicalization() { return hydrogen()->NeedsCanonicalization(); } | 2210 bool NeedsCanonicalization() { return hydrogen()->NeedsCanonicalization(); } |
2206 uint32_t base_offset() const { return hydrogen()->base_offset(); } | 2211 uint32_t base_offset() const { return hydrogen()->base_offset(); } |
(...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2846 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2851 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2847 }; | 2852 }; |
2848 | 2853 |
2849 #undef DECLARE_HYDROGEN_ACCESSOR | 2854 #undef DECLARE_HYDROGEN_ACCESSOR |
2850 #undef DECLARE_CONCRETE_INSTRUCTION | 2855 #undef DECLARE_CONCRETE_INSTRUCTION |
2851 | 2856 |
2852 } // namespace internal | 2857 } // namespace internal |
2853 } // namespace v8 | 2858 } // namespace v8 |
2854 | 2859 |
2855 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ | 2860 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ |
OLD | NEW |