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_MIPS_LITHIUM_MIPS_H_ | 5 #ifndef V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ |
6 #define V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ | 6 #define V8_CRANKSHAFT_MIPS_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 1550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1561 | 1561 |
1562 class LLoadRoot final : public LTemplateInstruction<1, 0, 0> { | 1562 class LLoadRoot final : public LTemplateInstruction<1, 0, 0> { |
1563 public: | 1563 public: |
1564 DECLARE_CONCRETE_INSTRUCTION(LoadRoot, "load-root") | 1564 DECLARE_CONCRETE_INSTRUCTION(LoadRoot, "load-root") |
1565 DECLARE_HYDROGEN_ACCESSOR(LoadRoot) | 1565 DECLARE_HYDROGEN_ACCESSOR(LoadRoot) |
1566 | 1566 |
1567 Heap::RootListIndex index() const { return hydrogen()->index(); } | 1567 Heap::RootListIndex index() const { return hydrogen()->index(); } |
1568 }; | 1568 }; |
1569 | 1569 |
1570 | 1570 |
1571 class LLoadKeyed final : public LTemplateInstruction<1, 2, 0> { | 1571 class LLoadKeyed final : public LTemplateInstruction<1, 3, 0> { |
1572 public: | 1572 public: |
1573 LLoadKeyed(LOperand* elements, LOperand* key) { | 1573 LLoadKeyed(LOperand* elements, LOperand* key, LOperand* backing_store_owner) { |
1574 inputs_[0] = elements; | 1574 inputs_[0] = elements; |
1575 inputs_[1] = key; | 1575 inputs_[1] = key; |
| 1576 inputs_[2] = backing_store_owner; |
1576 } | 1577 } |
1577 | 1578 |
1578 LOperand* elements() { return inputs_[0]; } | 1579 LOperand* elements() { return inputs_[0]; } |
1579 LOperand* key() { return inputs_[1]; } | 1580 LOperand* key() { return inputs_[1]; } |
| 1581 LOperand* backing_store_owner() { return inputs_[2]; } |
1580 ElementsKind elements_kind() const { | 1582 ElementsKind elements_kind() const { |
1581 return hydrogen()->elements_kind(); | 1583 return hydrogen()->elements_kind(); |
1582 } | 1584 } |
1583 bool is_fixed_typed_array() const { | 1585 bool is_fixed_typed_array() const { |
1584 return hydrogen()->is_fixed_typed_array(); | 1586 return hydrogen()->is_fixed_typed_array(); |
1585 } | 1587 } |
1586 | 1588 |
1587 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed") | 1589 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed") |
1588 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed) | 1590 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed) |
1589 | 1591 |
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2127 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic") | 2129 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic") |
2128 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric) | 2130 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric) |
2129 | 2131 |
2130 void PrintDataTo(StringStream* stream) override; | 2132 void PrintDataTo(StringStream* stream) override; |
2131 | 2133 |
2132 Handle<Object> name() const { return hydrogen()->name(); } | 2134 Handle<Object> name() const { return hydrogen()->name(); } |
2133 LanguageMode language_mode() { return hydrogen()->language_mode(); } | 2135 LanguageMode language_mode() { return hydrogen()->language_mode(); } |
2134 }; | 2136 }; |
2135 | 2137 |
2136 | 2138 |
2137 class LStoreKeyed final : public LTemplateInstruction<0, 3, 0> { | 2139 class LStoreKeyed final : public LTemplateInstruction<0, 4, 0> { |
2138 public: | 2140 public: |
2139 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value) { | 2141 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value, |
| 2142 LOperand* backing_store_owner) { |
2140 inputs_[0] = object; | 2143 inputs_[0] = object; |
2141 inputs_[1] = key; | 2144 inputs_[1] = key; |
2142 inputs_[2] = value; | 2145 inputs_[2] = value; |
| 2146 inputs_[3] = backing_store_owner; |
2143 } | 2147 } |
2144 | 2148 |
2145 bool is_fixed_typed_array() const { | 2149 bool is_fixed_typed_array() const { |
2146 return hydrogen()->is_fixed_typed_array(); | 2150 return hydrogen()->is_fixed_typed_array(); |
2147 } | 2151 } |
2148 LOperand* elements() { return inputs_[0]; } | 2152 LOperand* elements() { return inputs_[0]; } |
2149 LOperand* key() { return inputs_[1]; } | 2153 LOperand* key() { return inputs_[1]; } |
2150 LOperand* value() { return inputs_[2]; } | 2154 LOperand* value() { return inputs_[2]; } |
| 2155 LOperand* backing_store_owner() { return inputs_[3]; } |
2151 ElementsKind elements_kind() const { | 2156 ElementsKind elements_kind() const { |
2152 return hydrogen()->elements_kind(); | 2157 return hydrogen()->elements_kind(); |
2153 } | 2158 } |
2154 | 2159 |
2155 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed") | 2160 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed") |
2156 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed) | 2161 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed) |
2157 | 2162 |
2158 void PrintDataTo(StringStream* stream) override; | 2163 void PrintDataTo(StringStream* stream) override; |
2159 bool NeedsCanonicalization() { return hydrogen()->NeedsCanonicalization(); } | 2164 bool NeedsCanonicalization() { return hydrogen()->NeedsCanonicalization(); } |
2160 uint32_t base_offset() const { return hydrogen()->base_offset(); } | 2165 uint32_t base_offset() const { return hydrogen()->base_offset(); } |
(...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2800 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2805 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2801 }; | 2806 }; |
2802 | 2807 |
2803 #undef DECLARE_HYDROGEN_ACCESSOR | 2808 #undef DECLARE_HYDROGEN_ACCESSOR |
2804 #undef DECLARE_CONCRETE_INSTRUCTION | 2809 #undef DECLARE_CONCRETE_INSTRUCTION |
2805 | 2810 |
2806 } // namespace internal | 2811 } // namespace internal |
2807 } // namespace v8 | 2812 } // namespace v8 |
2808 | 2813 |
2809 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ | 2814 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ |
OLD | NEW |