| 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 1522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1533 inputs_[0] = elements; | 1533 inputs_[0] = elements; |
| 1534 inputs_[1] = key; | 1534 inputs_[1] = key; |
| 1535 } | 1535 } |
| 1536 | 1536 |
| 1537 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed") | 1537 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed") |
| 1538 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed) | 1538 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed) |
| 1539 | 1539 |
| 1540 bool is_external() const { | 1540 bool is_external() const { |
| 1541 return hydrogen()->is_external(); | 1541 return hydrogen()->is_external(); |
| 1542 } | 1542 } |
| 1543 bool is_fixed_typed_array() const { |
| 1544 return hydrogen()->is_fixed_typed_array(); |
| 1545 } |
| 1546 bool is_typed_elements() const { |
| 1547 return is_external() || is_fixed_typed_array(); |
| 1548 } |
| 1543 LOperand* elements() { return inputs_[0]; } | 1549 LOperand* elements() { return inputs_[0]; } |
| 1544 LOperand* key() { return inputs_[1]; } | 1550 LOperand* key() { return inputs_[1]; } |
| 1545 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; | 1551 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; |
| 1546 uint32_t additional_index() const { return hydrogen()->index_offset(); } | 1552 uint32_t additional_index() const { return hydrogen()->index_offset(); } |
| 1547 ElementsKind elements_kind() const { | 1553 ElementsKind elements_kind() const { |
| 1548 return hydrogen()->elements_kind(); | 1554 return hydrogen()->elements_kind(); |
| 1549 } | 1555 } |
| 1550 }; | 1556 }; |
| 1551 | 1557 |
| 1552 | 1558 |
| (...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2160 | 2166 |
| 2161 class LStoreKeyed V8_FINAL : public LTemplateInstruction<0, 3, 0> { | 2167 class LStoreKeyed V8_FINAL : public LTemplateInstruction<0, 3, 0> { |
| 2162 public: | 2168 public: |
| 2163 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value) { | 2169 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value) { |
| 2164 inputs_[0] = object; | 2170 inputs_[0] = object; |
| 2165 inputs_[1] = key; | 2171 inputs_[1] = key; |
| 2166 inputs_[2] = value; | 2172 inputs_[2] = value; |
| 2167 } | 2173 } |
| 2168 | 2174 |
| 2169 bool is_external() const { return hydrogen()->is_external(); } | 2175 bool is_external() const { return hydrogen()->is_external(); } |
| 2176 bool is_fixed_typed_array() const { |
| 2177 return hydrogen()->is_fixed_typed_array(); |
| 2178 } |
| 2179 bool is_typed_elements() const { |
| 2180 return is_external() || is_fixed_typed_array(); |
| 2181 } |
| 2170 LOperand* elements() { return inputs_[0]; } | 2182 LOperand* elements() { return inputs_[0]; } |
| 2171 LOperand* key() { return inputs_[1]; } | 2183 LOperand* key() { return inputs_[1]; } |
| 2172 LOperand* value() { return inputs_[2]; } | 2184 LOperand* value() { return inputs_[2]; } |
| 2173 ElementsKind elements_kind() const { return hydrogen()->elements_kind(); } | 2185 ElementsKind elements_kind() const { return hydrogen()->elements_kind(); } |
| 2174 | 2186 |
| 2175 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed") | 2187 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed") |
| 2176 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed) | 2188 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed) |
| 2177 | 2189 |
| 2178 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; | 2190 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; |
| 2179 bool NeedsCanonicalization() { return hydrogen()->NeedsCanonicalization(); } | 2191 bool NeedsCanonicalization() { return hydrogen()->NeedsCanonicalization(); } |
| (...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2762 | 2774 |
| 2763 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2775 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2764 }; | 2776 }; |
| 2765 | 2777 |
| 2766 #undef DECLARE_HYDROGEN_ACCESSOR | 2778 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2767 #undef DECLARE_CONCRETE_INSTRUCTION | 2779 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2768 | 2780 |
| 2769 } } // namespace v8::int | 2781 } } // namespace v8::int |
| 2770 | 2782 |
| 2771 #endif // V8_X64_LITHIUM_X64_H_ | 2783 #endif // V8_X64_LITHIUM_X64_H_ |
| OLD | NEW |