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 1137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1148 inputs_[0] = external_pointer; | 1148 inputs_[0] = external_pointer; |
1149 inputs_[1] = key; | 1149 inputs_[1] = key; |
1150 } | 1150 } |
1151 | 1151 |
1152 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedSpecializedArrayElement, | 1152 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedSpecializedArrayElement, |
1153 "load-keyed-specialized-array-element") | 1153 "load-keyed-specialized-array-element") |
1154 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedSpecializedArrayElement) | 1154 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedSpecializedArrayElement) |
1155 | 1155 |
1156 LOperand* external_pointer() { return inputs_[0]; } | 1156 LOperand* external_pointer() { return inputs_[0]; } |
1157 LOperand* key() { return inputs_[1]; } | 1157 LOperand* key() { return inputs_[1]; } |
1158 JSObject::ElementsKind elements_kind() const { | 1158 ElementsKind elements_kind() const { |
1159 return hydrogen()->elements_kind(); | 1159 return hydrogen()->elements_kind(); |
1160 } | 1160 } |
1161 }; | 1161 }; |
1162 | 1162 |
1163 | 1163 |
1164 class LLoadKeyedGeneric: public LTemplateInstruction<1, 2, 0> { | 1164 class LLoadKeyedGeneric: public LTemplateInstruction<1, 2, 0> { |
1165 public: | 1165 public: |
1166 LLoadKeyedGeneric(LOperand* obj, LOperand* key) { | 1166 LLoadKeyedGeneric(LOperand* obj, LOperand* key) { |
1167 inputs_[0] = obj; | 1167 inputs_[0] = obj; |
1168 inputs_[1] = key; | 1168 inputs_[1] = key; |
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1624 inputs_[2] = val; | 1624 inputs_[2] = val; |
1625 } | 1625 } |
1626 | 1626 |
1627 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedSpecializedArrayElement, | 1627 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedSpecializedArrayElement, |
1628 "store-keyed-specialized-array-element") | 1628 "store-keyed-specialized-array-element") |
1629 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedSpecializedArrayElement) | 1629 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedSpecializedArrayElement) |
1630 | 1630 |
1631 LOperand* external_pointer() { return inputs_[0]; } | 1631 LOperand* external_pointer() { return inputs_[0]; } |
1632 LOperand* key() { return inputs_[1]; } | 1632 LOperand* key() { return inputs_[1]; } |
1633 LOperand* value() { return inputs_[2]; } | 1633 LOperand* value() { return inputs_[2]; } |
1634 JSObject::ElementsKind elements_kind() const { | 1634 ElementsKind elements_kind() const { |
1635 return hydrogen()->elements_kind(); | 1635 return hydrogen()->elements_kind(); |
1636 } | 1636 } |
1637 }; | 1637 }; |
1638 | 1638 |
1639 | 1639 |
1640 class LStoreKeyedGeneric: public LTemplateInstruction<0, 3, 0> { | 1640 class LStoreKeyedGeneric: public LTemplateInstruction<0, 3, 0> { |
1641 public: | 1641 public: |
1642 LStoreKeyedGeneric(LOperand* object, LOperand* key, LOperand* value) { | 1642 LStoreKeyedGeneric(LOperand* object, LOperand* key, LOperand* value) { |
1643 inputs_[0] = object; | 1643 inputs_[0] = object; |
1644 inputs_[1] = key; | 1644 inputs_[1] = key; |
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2173 | 2173 |
2174 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2174 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2175 }; | 2175 }; |
2176 | 2176 |
2177 #undef DECLARE_HYDROGEN_ACCESSOR | 2177 #undef DECLARE_HYDROGEN_ACCESSOR |
2178 #undef DECLARE_CONCRETE_INSTRUCTION | 2178 #undef DECLARE_CONCRETE_INSTRUCTION |
2179 | 2179 |
2180 } } // namespace v8::int | 2180 } } // namespace v8::int |
2181 | 2181 |
2182 #endif // V8_X64_LITHIUM_X64_H_ | 2182 #endif // V8_X64_LITHIUM_X64_H_ |
OLD | NEW |