| 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 V(IsSmiAndBranch) \ | 114 V(IsSmiAndBranch) \ |
| 115 V(JSArrayLength) \ | 115 V(JSArrayLength) \ |
| 116 V(Label) \ | 116 V(Label) \ |
| 117 V(LazyBailout) \ | 117 V(LazyBailout) \ |
| 118 V(LoadContextSlot) \ | 118 V(LoadContextSlot) \ |
| 119 V(LoadElements) \ | 119 V(LoadElements) \ |
| 120 V(LoadExternalArrayPointer) \ | 120 V(LoadExternalArrayPointer) \ |
| 121 V(LoadGlobal) \ | 121 V(LoadGlobal) \ |
| 122 V(LoadKeyedFastElement) \ | 122 V(LoadKeyedFastElement) \ |
| 123 V(LoadKeyedGeneric) \ | 123 V(LoadKeyedGeneric) \ |
| 124 V(LoadKeyedSpecializedArrayElement) \ |
| 124 V(LoadNamedField) \ | 125 V(LoadNamedField) \ |
| 125 V(LoadNamedGeneric) \ | 126 V(LoadNamedGeneric) \ |
| 126 V(LoadFunctionPrototype) \ | 127 V(LoadFunctionPrototype) \ |
| 127 V(LoadPixelArrayElement) \ | |
| 128 V(ModI) \ | 128 V(ModI) \ |
| 129 V(MulI) \ | 129 V(MulI) \ |
| 130 V(NumberTagD) \ | 130 V(NumberTagD) \ |
| 131 V(NumberTagI) \ | 131 V(NumberTagI) \ |
| 132 V(NumberUntagD) \ | 132 V(NumberUntagD) \ |
| 133 V(ObjectLiteral) \ | 133 V(ObjectLiteral) \ |
| 134 V(OsrEntry) \ | 134 V(OsrEntry) \ |
| 135 V(OuterContext) \ | 135 V(OuterContext) \ |
| 136 V(Parameter) \ | 136 V(Parameter) \ |
| 137 V(Power) \ | 137 V(Power) \ |
| 138 V(PushArgument) \ | 138 V(PushArgument) \ |
| 139 V(RegExpLiteral) \ | 139 V(RegExpLiteral) \ |
| 140 V(Return) \ | 140 V(Return) \ |
| 141 V(ShiftI) \ | 141 V(ShiftI) \ |
| 142 V(SmiTag) \ | 142 V(SmiTag) \ |
| 143 V(SmiUntag) \ | 143 V(SmiUntag) \ |
| 144 V(StackCheck) \ | 144 V(StackCheck) \ |
| 145 V(StoreContextSlot) \ | 145 V(StoreContextSlot) \ |
| 146 V(StoreGlobal) \ | 146 V(StoreGlobal) \ |
| 147 V(StoreKeyedFastElement) \ | 147 V(StoreKeyedFastElement) \ |
| 148 V(StoreKeyedGeneric) \ | 148 V(StoreKeyedGeneric) \ |
| 149 V(StoreKeyedSpecializedArrayElement) \ |
| 149 V(StoreNamedField) \ | 150 V(StoreNamedField) \ |
| 150 V(StoreNamedGeneric) \ | 151 V(StoreNamedGeneric) \ |
| 151 V(StorePixelArrayElement) \ | |
| 152 V(StringCharCodeAt) \ | 152 V(StringCharCodeAt) \ |
| 153 V(StringCharFromCode) \ | 153 V(StringCharFromCode) \ |
| 154 V(StringLength) \ | 154 V(StringLength) \ |
| 155 V(SubI) \ | 155 V(SubI) \ |
| 156 V(TaggedToI) \ | 156 V(TaggedToI) \ |
| 157 V(ToFastProperties) \ | 157 V(ToFastProperties) \ |
| 158 V(Throw) \ | 158 V(Throw) \ |
| 159 V(Typeof) \ | 159 V(Typeof) \ |
| 160 V(TypeofIs) \ | 160 V(TypeofIs) \ |
| 161 V(TypeofIsAndBranch) \ | 161 V(TypeofIsAndBranch) \ |
| (...skipping 1028 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1190 } | 1190 } |
| 1191 | 1191 |
| 1192 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedFastElement, "load-keyed-fast-element") | 1192 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedFastElement, "load-keyed-fast-element") |
| 1193 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedFastElement) | 1193 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedFastElement) |
| 1194 | 1194 |
| 1195 LOperand* elements() { return inputs_[0]; } | 1195 LOperand* elements() { return inputs_[0]; } |
| 1196 LOperand* key() { return inputs_[1]; } | 1196 LOperand* key() { return inputs_[1]; } |
| 1197 }; | 1197 }; |
| 1198 | 1198 |
| 1199 | 1199 |
| 1200 class LLoadPixelArrayElement: public LTemplateInstruction<1, 2, 0> { | 1200 class LLoadKeyedSpecializedArrayElement: public LTemplateInstruction<1, 2, 0> { |
| 1201 public: | 1201 public: |
| 1202 LLoadPixelArrayElement(LOperand* external_pointer, LOperand* key) { | 1202 LLoadKeyedSpecializedArrayElement(LOperand* external_pointer, |
| 1203 LOperand* key, |
| 1204 ExternalArrayType array_type) |
| 1205 : array_type_(array_type) { |
| 1203 inputs_[0] = external_pointer; | 1206 inputs_[0] = external_pointer; |
| 1204 inputs_[1] = key; | 1207 inputs_[1] = key; |
| 1205 } | 1208 } |
| 1206 | 1209 |
| 1207 DECLARE_CONCRETE_INSTRUCTION(LoadPixelArrayElement, | 1210 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedSpecializedArrayElement, |
| 1208 "load-pixel-array-element") | 1211 "load-keyed-specialized-array-element") |
| 1209 DECLARE_HYDROGEN_ACCESSOR(LoadPixelArrayElement) | 1212 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedSpecializedArrayElement) |
| 1210 | 1213 |
| 1211 LOperand* external_pointer() { return inputs_[0]; } | 1214 LOperand* external_pointer() { return inputs_[0]; } |
| 1212 LOperand* key() { return inputs_[1]; } | 1215 LOperand* key() { return inputs_[1]; } |
| 1216 ExternalArrayType array_type() const { return array_type_; } |
| 1217 |
| 1218 private: |
| 1219 ExternalArrayType array_type_; |
| 1213 }; | 1220 }; |
| 1214 | 1221 |
| 1215 | 1222 |
| 1216 class LLoadKeyedGeneric: public LTemplateInstruction<1, 2, 0> { | 1223 class LLoadKeyedGeneric: public LTemplateInstruction<1, 2, 0> { |
| 1217 public: | 1224 public: |
| 1218 LLoadKeyedGeneric(LOperand* obj, LOperand* key) { | 1225 LLoadKeyedGeneric(LOperand* obj, LOperand* key) { |
| 1219 inputs_[0] = obj; | 1226 inputs_[0] = obj; |
| 1220 inputs_[1] = key; | 1227 inputs_[1] = key; |
| 1221 } | 1228 } |
| 1222 | 1229 |
| (...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1580 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedFastElement) | 1587 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedFastElement) |
| 1581 | 1588 |
| 1582 virtual void PrintDataTo(StringStream* stream); | 1589 virtual void PrintDataTo(StringStream* stream); |
| 1583 | 1590 |
| 1584 LOperand* object() { return inputs_[0]; } | 1591 LOperand* object() { return inputs_[0]; } |
| 1585 LOperand* key() { return inputs_[1]; } | 1592 LOperand* key() { return inputs_[1]; } |
| 1586 LOperand* value() { return inputs_[2]; } | 1593 LOperand* value() { return inputs_[2]; } |
| 1587 }; | 1594 }; |
| 1588 | 1595 |
| 1589 | 1596 |
| 1590 class LStorePixelArrayElement: public LTemplateInstruction<0, 3, 0> { | 1597 class LStoreKeyedSpecializedArrayElement: public LTemplateInstruction<0, 3, 0> { |
| 1591 public: | 1598 public: |
| 1592 LStorePixelArrayElement(LOperand* external_pointer, | 1599 LStoreKeyedSpecializedArrayElement(LOperand* external_pointer, |
| 1593 LOperand* key, | 1600 LOperand* key, |
| 1594 LOperand* val) { | 1601 LOperand* val, |
| 1602 ExternalArrayType array_type) |
| 1603 : array_type_(array_type) { |
| 1595 inputs_[0] = external_pointer; | 1604 inputs_[0] = external_pointer; |
| 1596 inputs_[1] = key; | 1605 inputs_[1] = key; |
| 1597 inputs_[2] = val; | 1606 inputs_[2] = val; |
| 1598 } | 1607 } |
| 1599 | 1608 |
| 1600 DECLARE_CONCRETE_INSTRUCTION(StorePixelArrayElement, | 1609 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedSpecializedArrayElement, |
| 1601 "store-pixel-array-element") | 1610 "store-keyed-specialized-array-element") |
| 1602 DECLARE_HYDROGEN_ACCESSOR(StorePixelArrayElement) | 1611 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedSpecializedArrayElement) |
| 1603 | 1612 |
| 1604 LOperand* external_pointer() { return inputs_[0]; } | 1613 LOperand* external_pointer() { return inputs_[0]; } |
| 1605 LOperand* key() { return inputs_[1]; } | 1614 LOperand* key() { return inputs_[1]; } |
| 1606 LOperand* value() { return inputs_[2]; } | 1615 LOperand* value() { return inputs_[2]; } |
| 1616 ExternalArrayType array_type() const { return array_type_; } |
| 1617 |
| 1618 private: |
| 1619 ExternalArrayType array_type_; |
| 1607 }; | 1620 }; |
| 1608 | 1621 |
| 1609 | 1622 |
| 1610 class LStoreKeyedGeneric: public LTemplateInstruction<0, 3, 0> { | 1623 class LStoreKeyedGeneric: public LTemplateInstruction<0, 3, 0> { |
| 1611 public: | 1624 public: |
| 1612 LStoreKeyedGeneric(LOperand* object, LOperand* key, LOperand* value) { | 1625 LStoreKeyedGeneric(LOperand* object, LOperand* key, LOperand* value) { |
| 1613 inputs_[0] = object; | 1626 inputs_[0] = object; |
| 1614 inputs_[1] = key; | 1627 inputs_[1] = key; |
| 1615 inputs_[2] = value; | 1628 inputs_[2] = value; |
| 1616 } | 1629 } |
| (...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2097 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2110 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2098 }; | 2111 }; |
| 2099 | 2112 |
| 2100 #undef DECLARE_HYDROGEN_ACCESSOR | 2113 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2101 #undef DECLARE_INSTRUCTION | 2114 #undef DECLARE_INSTRUCTION |
| 2102 #undef DECLARE_CONCRETE_INSTRUCTION | 2115 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2103 | 2116 |
| 2104 } } // namespace v8::int | 2117 } } // namespace v8::int |
| 2105 | 2118 |
| 2106 #endif // V8_X64_LITHIUM_X64_H_ | 2119 #endif // V8_X64_LITHIUM_X64_H_ |
| OLD | NEW |