| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 1279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1290 inputs_[0] = external_pointer; | 1290 inputs_[0] = external_pointer; |
| 1291 inputs_[1] = key; | 1291 inputs_[1] = key; |
| 1292 } | 1292 } |
| 1293 | 1293 |
| 1294 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedSpecializedArrayElement, | 1294 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedSpecializedArrayElement, |
| 1295 "load-keyed-specialized-array-element") | 1295 "load-keyed-specialized-array-element") |
| 1296 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedSpecializedArrayElement) | 1296 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedSpecializedArrayElement) |
| 1297 | 1297 |
| 1298 LOperand* external_pointer() { return inputs_[0]; } | 1298 LOperand* external_pointer() { return inputs_[0]; } |
| 1299 LOperand* key() { return inputs_[1]; } | 1299 LOperand* key() { return inputs_[1]; } |
| 1300 ExternalArrayType array_type() const { | 1300 JSObject::ElementsKind elements_kind() const { |
| 1301 return hydrogen()->array_type(); | 1301 return hydrogen()->elements_kind(); |
| 1302 } | 1302 } |
| 1303 }; | 1303 }; |
| 1304 | 1304 |
| 1305 | 1305 |
| 1306 class LLoadKeyedGeneric: public LTemplateInstruction<1, 2, 0> { | 1306 class LLoadKeyedGeneric: public LTemplateInstruction<1, 2, 0> { |
| 1307 public: | 1307 public: |
| 1308 LLoadKeyedGeneric(LOperand* obj, LOperand* key) { | 1308 LLoadKeyedGeneric(LOperand* obj, LOperand* key) { |
| 1309 inputs_[0] = obj; | 1309 inputs_[0] = obj; |
| 1310 inputs_[1] = key; | 1310 inputs_[1] = key; |
| 1311 } | 1311 } |
| (...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1743 inputs_[2] = val; | 1743 inputs_[2] = val; |
| 1744 } | 1744 } |
| 1745 | 1745 |
| 1746 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedSpecializedArrayElement, | 1746 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedSpecializedArrayElement, |
| 1747 "store-keyed-specialized-array-element") | 1747 "store-keyed-specialized-array-element") |
| 1748 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedSpecializedArrayElement) | 1748 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedSpecializedArrayElement) |
| 1749 | 1749 |
| 1750 LOperand* external_pointer() { return inputs_[0]; } | 1750 LOperand* external_pointer() { return inputs_[0]; } |
| 1751 LOperand* key() { return inputs_[1]; } | 1751 LOperand* key() { return inputs_[1]; } |
| 1752 LOperand* value() { return inputs_[2]; } | 1752 LOperand* value() { return inputs_[2]; } |
| 1753 ExternalArrayType array_type() const { | 1753 JSObject::ElementsKind elements_kind() const { |
| 1754 return hydrogen()->array_type(); | 1754 return hydrogen()->elements_kind(); |
| 1755 } | 1755 } |
| 1756 }; | 1756 }; |
| 1757 | 1757 |
| 1758 | 1758 |
| 1759 class LStoreKeyedGeneric: public LTemplateInstruction<0, 3, 0> { | 1759 class LStoreKeyedGeneric: public LTemplateInstruction<0, 3, 0> { |
| 1760 public: | 1760 public: |
| 1761 LStoreKeyedGeneric(LOperand* object, LOperand* key, LOperand* value) { | 1761 LStoreKeyedGeneric(LOperand* object, LOperand* key, LOperand* value) { |
| 1762 inputs_[0] = object; | 1762 inputs_[0] = object; |
| 1763 inputs_[1] = key; | 1763 inputs_[1] = key; |
| 1764 inputs_[2] = value; | 1764 inputs_[2] = value; |
| (...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2303 | 2303 |
| 2304 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2304 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2305 }; | 2305 }; |
| 2306 | 2306 |
| 2307 #undef DECLARE_HYDROGEN_ACCESSOR | 2307 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2308 #undef DECLARE_CONCRETE_INSTRUCTION | 2308 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2309 | 2309 |
| 2310 } } // namespace v8::int | 2310 } } // namespace v8::int |
| 2311 | 2311 |
| 2312 #endif // V8_X64_LITHIUM_X64_H_ | 2312 #endif // V8_X64_LITHIUM_X64_H_ |
| OLD | NEW |