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_ARM_LITHIUM_ARM_H_ | 5 #ifndef V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ |
6 #define V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ | 6 #define V8_CRANKSHAFT_ARM_LITHIUM_ARM_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 1587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1598 | 1598 |
1599 class LLoadRoot final : public LTemplateInstruction<1, 0, 0> { | 1599 class LLoadRoot final : public LTemplateInstruction<1, 0, 0> { |
1600 public: | 1600 public: |
1601 DECLARE_CONCRETE_INSTRUCTION(LoadRoot, "load-root") | 1601 DECLARE_CONCRETE_INSTRUCTION(LoadRoot, "load-root") |
1602 DECLARE_HYDROGEN_ACCESSOR(LoadRoot) | 1602 DECLARE_HYDROGEN_ACCESSOR(LoadRoot) |
1603 | 1603 |
1604 Heap::RootListIndex index() const { return hydrogen()->index(); } | 1604 Heap::RootListIndex index() const { return hydrogen()->index(); } |
1605 }; | 1605 }; |
1606 | 1606 |
1607 | 1607 |
1608 class LLoadKeyed final : public LTemplateInstruction<1, 2, 0> { | 1608 class LLoadKeyed final : public LTemplateInstruction<1, 3, 0> { |
1609 public: | 1609 public: |
1610 LLoadKeyed(LOperand* elements, LOperand* key) { | 1610 LLoadKeyed(LOperand* elements, LOperand* key, LOperand* backing_store_owner) { |
1611 inputs_[0] = elements; | 1611 inputs_[0] = elements; |
1612 inputs_[1] = key; | 1612 inputs_[1] = key; |
| 1613 inputs_[2] = backing_store_owner; |
1613 } | 1614 } |
1614 | 1615 |
1615 LOperand* elements() { return inputs_[0]; } | 1616 LOperand* elements() { return inputs_[0]; } |
1616 LOperand* key() { return inputs_[1]; } | 1617 LOperand* key() { return inputs_[1]; } |
| 1618 LOperand* backing_store_owner() { return inputs_[2]; } |
1617 ElementsKind elements_kind() const { | 1619 ElementsKind elements_kind() const { |
1618 return hydrogen()->elements_kind(); | 1620 return hydrogen()->elements_kind(); |
1619 } | 1621 } |
1620 bool is_fixed_typed_array() const { | 1622 bool is_fixed_typed_array() const { |
1621 return hydrogen()->is_fixed_typed_array(); | 1623 return hydrogen()->is_fixed_typed_array(); |
1622 } | 1624 } |
1623 | 1625 |
1624 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed") | 1626 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed") |
1625 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed) | 1627 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed) |
1626 | 1628 |
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2164 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic") | 2166 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic") |
2165 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric) | 2167 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric) |
2166 | 2168 |
2167 void PrintDataTo(StringStream* stream) override; | 2169 void PrintDataTo(StringStream* stream) override; |
2168 | 2170 |
2169 Handle<Object> name() const { return hydrogen()->name(); } | 2171 Handle<Object> name() const { return hydrogen()->name(); } |
2170 LanguageMode language_mode() { return hydrogen()->language_mode(); } | 2172 LanguageMode language_mode() { return hydrogen()->language_mode(); } |
2171 }; | 2173 }; |
2172 | 2174 |
2173 | 2175 |
2174 class LStoreKeyed final : public LTemplateInstruction<0, 3, 0> { | 2176 class LStoreKeyed final : public LTemplateInstruction<0, 4, 0> { |
2175 public: | 2177 public: |
2176 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value) { | 2178 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value, |
| 2179 LOperand* backing_store_owner) { |
2177 inputs_[0] = object; | 2180 inputs_[0] = object; |
2178 inputs_[1] = key; | 2181 inputs_[1] = key; |
2179 inputs_[2] = value; | 2182 inputs_[2] = value; |
| 2183 inputs_[3] = backing_store_owner; |
2180 } | 2184 } |
2181 | 2185 |
2182 bool is_fixed_typed_array() const { | 2186 bool is_fixed_typed_array() const { |
2183 return hydrogen()->is_fixed_typed_array(); | 2187 return hydrogen()->is_fixed_typed_array(); |
2184 } | 2188 } |
2185 LOperand* elements() { return inputs_[0]; } | 2189 LOperand* elements() { return inputs_[0]; } |
2186 LOperand* key() { return inputs_[1]; } | 2190 LOperand* key() { return inputs_[1]; } |
2187 LOperand* value() { return inputs_[2]; } | 2191 LOperand* value() { return inputs_[2]; } |
| 2192 LOperand* backing_store_owner() { return inputs_[3]; } |
2188 ElementsKind elements_kind() const { | 2193 ElementsKind elements_kind() const { |
2189 return hydrogen()->elements_kind(); | 2194 return hydrogen()->elements_kind(); |
2190 } | 2195 } |
2191 | 2196 |
2192 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed") | 2197 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed") |
2193 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed) | 2198 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed) |
2194 | 2199 |
2195 void PrintDataTo(StringStream* stream) override; | 2200 void PrintDataTo(StringStream* stream) override; |
2196 bool NeedsCanonicalization() { | 2201 bool NeedsCanonicalization() { |
2197 if (hydrogen()->value()->IsAdd() || hydrogen()->value()->IsSub() || | 2202 if (hydrogen()->value()->IsAdd() || hydrogen()->value()->IsSub() || |
(...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2842 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2847 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2843 }; | 2848 }; |
2844 | 2849 |
2845 #undef DECLARE_HYDROGEN_ACCESSOR | 2850 #undef DECLARE_HYDROGEN_ACCESSOR |
2846 #undef DECLARE_CONCRETE_INSTRUCTION | 2851 #undef DECLARE_CONCRETE_INSTRUCTION |
2847 | 2852 |
2848 } // namespace internal | 2853 } // namespace internal |
2849 } // namespace v8 | 2854 } // namespace v8 |
2850 | 2855 |
2851 #endif // V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ | 2856 #endif // V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ |
OLD | NEW |