| 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 1592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1603 LLoadKeyed(LOperand* elements, LOperand* key) { | 1603 LLoadKeyed(LOperand* elements, LOperand* key) { |
| 1604 inputs_[0] = elements; | 1604 inputs_[0] = elements; |
| 1605 inputs_[1] = key; | 1605 inputs_[1] = key; |
| 1606 } | 1606 } |
| 1607 | 1607 |
| 1608 LOperand* elements() { return inputs_[0]; } | 1608 LOperand* elements() { return inputs_[0]; } |
| 1609 LOperand* key() { return inputs_[1]; } | 1609 LOperand* key() { return inputs_[1]; } |
| 1610 ElementsKind elements_kind() const { | 1610 ElementsKind elements_kind() const { |
| 1611 return hydrogen()->elements_kind(); | 1611 return hydrogen()->elements_kind(); |
| 1612 } | 1612 } |
| 1613 bool is_external() const { | |
| 1614 return hydrogen()->is_external(); | |
| 1615 } | |
| 1616 bool is_fixed_typed_array() const { | 1613 bool is_fixed_typed_array() const { |
| 1617 return hydrogen()->is_fixed_typed_array(); | 1614 return hydrogen()->is_fixed_typed_array(); |
| 1618 } | 1615 } |
| 1619 bool is_typed_elements() const { | |
| 1620 return is_external() || is_fixed_typed_array(); | |
| 1621 } | |
| 1622 | 1616 |
| 1623 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed") | 1617 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed") |
| 1624 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed) | 1618 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed) |
| 1625 | 1619 |
| 1626 void PrintDataTo(StringStream* stream) override; | 1620 void PrintDataTo(StringStream* stream) override; |
| 1627 uint32_t base_offset() const { return hydrogen()->base_offset(); } | 1621 uint32_t base_offset() const { return hydrogen()->base_offset(); } |
| 1628 }; | 1622 }; |
| 1629 | 1623 |
| 1630 | 1624 |
| 1631 class LLoadKeyedGeneric final : public LTemplateInstruction<1, 3, 1> { | 1625 class LLoadKeyedGeneric final : public LTemplateInstruction<1, 3, 1> { |
| (...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2209 | 2203 |
| 2210 | 2204 |
| 2211 class LStoreKeyed final : public LTemplateInstruction<0, 3, 0> { | 2205 class LStoreKeyed final : public LTemplateInstruction<0, 3, 0> { |
| 2212 public: | 2206 public: |
| 2213 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value) { | 2207 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value) { |
| 2214 inputs_[0] = object; | 2208 inputs_[0] = object; |
| 2215 inputs_[1] = key; | 2209 inputs_[1] = key; |
| 2216 inputs_[2] = value; | 2210 inputs_[2] = value; |
| 2217 } | 2211 } |
| 2218 | 2212 |
| 2219 bool is_external() const { return hydrogen()->is_external(); } | |
| 2220 bool is_fixed_typed_array() const { | 2213 bool is_fixed_typed_array() const { |
| 2221 return hydrogen()->is_fixed_typed_array(); | 2214 return hydrogen()->is_fixed_typed_array(); |
| 2222 } | 2215 } |
| 2223 bool is_typed_elements() const { | |
| 2224 return is_external() || is_fixed_typed_array(); | |
| 2225 } | |
| 2226 LOperand* elements() { return inputs_[0]; } | 2216 LOperand* elements() { return inputs_[0]; } |
| 2227 LOperand* key() { return inputs_[1]; } | 2217 LOperand* key() { return inputs_[1]; } |
| 2228 LOperand* value() { return inputs_[2]; } | 2218 LOperand* value() { return inputs_[2]; } |
| 2229 ElementsKind elements_kind() const { | 2219 ElementsKind elements_kind() const { |
| 2230 return hydrogen()->elements_kind(); | 2220 return hydrogen()->elements_kind(); |
| 2231 } | 2221 } |
| 2232 | 2222 |
| 2233 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed") | 2223 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed") |
| 2234 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed) | 2224 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed) |
| 2235 | 2225 |
| (...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2890 | 2880 |
| 2891 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2881 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2892 }; | 2882 }; |
| 2893 | 2883 |
| 2894 #undef DECLARE_HYDROGEN_ACCESSOR | 2884 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2895 #undef DECLARE_CONCRETE_INSTRUCTION | 2885 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2896 | 2886 |
| 2897 } } // namespace v8::internal | 2887 } } // namespace v8::internal |
| 2898 | 2888 |
| 2899 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2889 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
| OLD | NEW |