| 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 "hydrogen.h" | 8 #include "hydrogen.h" |
| 9 #include "lithium-allocator.h" | 9 #include "lithium-allocator.h" |
| 10 #include "lithium.h" | 10 #include "lithium.h" |
| (...skipping 1591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1602 return hydrogen()->is_fixed_typed_array(); | 1602 return hydrogen()->is_fixed_typed_array(); |
| 1603 } | 1603 } |
| 1604 bool is_typed_elements() const { | 1604 bool is_typed_elements() const { |
| 1605 return is_external() || is_fixed_typed_array(); | 1605 return is_external() || is_fixed_typed_array(); |
| 1606 } | 1606 } |
| 1607 | 1607 |
| 1608 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed") | 1608 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed") |
| 1609 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed) | 1609 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed) |
| 1610 | 1610 |
| 1611 virtual void PrintDataTo(StringStream* stream); | 1611 virtual void PrintDataTo(StringStream* stream); |
| 1612 uint32_t additional_index() const { return hydrogen()->index_offset(); } | 1612 uint32_t base_offset() const { return hydrogen()->base_offset(); } |
| 1613 }; | 1613 }; |
| 1614 | 1614 |
| 1615 | 1615 |
| 1616 class LLoadKeyedGeneric V8_FINAL : public LTemplateInstruction<1, 3, 0> { | 1616 class LLoadKeyedGeneric V8_FINAL : public LTemplateInstruction<1, 3, 0> { |
| 1617 public: | 1617 public: |
| 1618 LLoadKeyedGeneric(LOperand* context, LOperand* object, LOperand* key) { | 1618 LLoadKeyedGeneric(LOperand* context, LOperand* object, LOperand* key) { |
| 1619 inputs_[0] = context; | 1619 inputs_[0] = context; |
| 1620 inputs_[1] = object; | 1620 inputs_[1] = object; |
| 1621 inputs_[2] = key; | 1621 inputs_[2] = key; |
| 1622 } | 1622 } |
| (...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2171 LOperand* value() { return inputs_[2]; } | 2171 LOperand* value() { return inputs_[2]; } |
| 2172 ElementsKind elements_kind() const { | 2172 ElementsKind elements_kind() const { |
| 2173 return hydrogen()->elements_kind(); | 2173 return hydrogen()->elements_kind(); |
| 2174 } | 2174 } |
| 2175 | 2175 |
| 2176 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed") | 2176 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed") |
| 2177 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed) | 2177 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed) |
| 2178 | 2178 |
| 2179 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; | 2179 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; |
| 2180 bool NeedsCanonicalization() { return hydrogen()->NeedsCanonicalization(); } | 2180 bool NeedsCanonicalization() { return hydrogen()->NeedsCanonicalization(); } |
| 2181 uint32_t additional_index() const { return hydrogen()->index_offset(); } | 2181 uint32_t base_offset() const { return hydrogen()->base_offset(); } |
| 2182 }; | 2182 }; |
| 2183 | 2183 |
| 2184 | 2184 |
| 2185 class LStoreKeyedGeneric V8_FINAL : public LTemplateInstruction<0, 4, 0> { | 2185 class LStoreKeyedGeneric V8_FINAL : public LTemplateInstruction<0, 4, 0> { |
| 2186 public: | 2186 public: |
| 2187 LStoreKeyedGeneric(LOperand* context, | 2187 LStoreKeyedGeneric(LOperand* context, |
| 2188 LOperand* obj, | 2188 LOperand* obj, |
| 2189 LOperand* key, | 2189 LOperand* key, |
| 2190 LOperand* value) { | 2190 LOperand* value) { |
| 2191 inputs_[0] = context; | 2191 inputs_[0] = context; |
| (...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2812 | 2812 |
| 2813 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2813 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2814 }; | 2814 }; |
| 2815 | 2815 |
| 2816 #undef DECLARE_HYDROGEN_ACCESSOR | 2816 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2817 #undef DECLARE_CONCRETE_INSTRUCTION | 2817 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2818 | 2818 |
| 2819 } } // namespace v8::internal | 2819 } } // namespace v8::internal |
| 2820 | 2820 |
| 2821 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2821 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
| OLD | NEW |