OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 1577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1588 } | 1588 } |
1589 | 1589 |
1590 LOperand* elements() { return inputs_[0]; } | 1590 LOperand* elements() { return inputs_[0]; } |
1591 LOperand* key() { return inputs_[1]; } | 1591 LOperand* key() { return inputs_[1]; } |
1592 ElementsKind elements_kind() const { | 1592 ElementsKind elements_kind() const { |
1593 return hydrogen()->elements_kind(); | 1593 return hydrogen()->elements_kind(); |
1594 } | 1594 } |
1595 bool is_external() const { | 1595 bool is_external() const { |
1596 return hydrogen()->is_external(); | 1596 return hydrogen()->is_external(); |
1597 } | 1597 } |
1598 bool is_fixed_typed_array() const { | |
1599 return hydrogen()->is_fixed_typed_array(); | |
1600 } | |
1601 bool is_typed_elements() const { | |
1602 return is_external() || is_fixed_typed_array(); | |
1603 } | |
1604 | 1598 |
1605 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed") | 1599 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed") |
1606 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed) | 1600 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed) |
1607 | 1601 |
1608 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; | 1602 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; |
1609 uint32_t additional_index() const { return hydrogen()->index_offset(); } | 1603 uint32_t additional_index() const { return hydrogen()->index_offset(); } |
1610 }; | 1604 }; |
1611 | 1605 |
1612 | 1606 |
1613 class LLoadKeyedGeneric V8_FINAL : public LTemplateInstruction<1, 3, 0> { | 1607 class LLoadKeyedGeneric V8_FINAL : public LTemplateInstruction<1, 3, 0> { |
(...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2226 | 2220 |
2227 class LStoreKeyed V8_FINAL : public LTemplateInstruction<0, 3, 0> { | 2221 class LStoreKeyed V8_FINAL : public LTemplateInstruction<0, 3, 0> { |
2228 public: | 2222 public: |
2229 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value) { | 2223 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value) { |
2230 inputs_[0] = object; | 2224 inputs_[0] = object; |
2231 inputs_[1] = key; | 2225 inputs_[1] = key; |
2232 inputs_[2] = value; | 2226 inputs_[2] = value; |
2233 } | 2227 } |
2234 | 2228 |
2235 bool is_external() const { return hydrogen()->is_external(); } | 2229 bool is_external() const { return hydrogen()->is_external(); } |
2236 bool is_fixed_typed_array() const { | |
2237 return hydrogen()->is_fixed_typed_array(); | |
2238 } | |
2239 bool is_typed_elements() const { | |
2240 return is_external() || is_fixed_typed_array(); | |
2241 } | |
2242 LOperand* elements() { return inputs_[0]; } | 2230 LOperand* elements() { return inputs_[0]; } |
2243 LOperand* key() { return inputs_[1]; } | 2231 LOperand* key() { return inputs_[1]; } |
2244 LOperand* value() { return inputs_[2]; } | 2232 LOperand* value() { return inputs_[2]; } |
2245 ElementsKind elements_kind() const { | 2233 ElementsKind elements_kind() const { |
2246 return hydrogen()->elements_kind(); | 2234 return hydrogen()->elements_kind(); |
2247 } | 2235 } |
2248 | 2236 |
2249 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed") | 2237 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed") |
2250 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed) | 2238 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed) |
2251 | 2239 |
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2843 | 2831 |
2844 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2832 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2845 }; | 2833 }; |
2846 | 2834 |
2847 #undef DECLARE_HYDROGEN_ACCESSOR | 2835 #undef DECLARE_HYDROGEN_ACCESSOR |
2848 #undef DECLARE_CONCRETE_INSTRUCTION | 2836 #undef DECLARE_CONCRETE_INSTRUCTION |
2849 | 2837 |
2850 } } // namespace v8::internal | 2838 } } // namespace v8::internal |
2851 | 2839 |
2852 #endif // V8_ARM_LITHIUM_ARM_H_ | 2840 #endif // V8_ARM_LITHIUM_ARM_H_ |
OLD | NEW |