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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 V(JSArrayLength) \ | 117 V(JSArrayLength) \ |
118 V(Label) \ | 118 V(Label) \ |
119 V(LazyBailout) \ | 119 V(LazyBailout) \ |
120 V(LoadContextSlot) \ | 120 V(LoadContextSlot) \ |
121 V(LoadElements) \ | 121 V(LoadElements) \ |
122 V(LoadExternalArrayPointer) \ | 122 V(LoadExternalArrayPointer) \ |
123 V(LoadFunctionPrototype) \ | 123 V(LoadFunctionPrototype) \ |
124 V(LoadGlobal) \ | 124 V(LoadGlobal) \ |
125 V(LoadKeyedFastElement) \ | 125 V(LoadKeyedFastElement) \ |
126 V(LoadKeyedGeneric) \ | 126 V(LoadKeyedGeneric) \ |
| 127 V(LoadKeyedSpecializedArrayElement) \ |
127 V(LoadNamedField) \ | 128 V(LoadNamedField) \ |
128 V(LoadNamedGeneric) \ | 129 V(LoadNamedGeneric) \ |
129 V(LoadPixelArrayElement) \ | |
130 V(ModI) \ | 130 V(ModI) \ |
131 V(MulI) \ | 131 V(MulI) \ |
132 V(NumberTagD) \ | 132 V(NumberTagD) \ |
133 V(NumberTagI) \ | 133 V(NumberTagI) \ |
134 V(NumberUntagD) \ | 134 V(NumberUntagD) \ |
135 V(ObjectLiteral) \ | 135 V(ObjectLiteral) \ |
136 V(OsrEntry) \ | 136 V(OsrEntry) \ |
137 V(OuterContext) \ | 137 V(OuterContext) \ |
138 V(Parameter) \ | 138 V(Parameter) \ |
139 V(Power) \ | 139 V(Power) \ |
140 V(PushArgument) \ | 140 V(PushArgument) \ |
141 V(RegExpLiteral) \ | 141 V(RegExpLiteral) \ |
142 V(Return) \ | 142 V(Return) \ |
143 V(ShiftI) \ | 143 V(ShiftI) \ |
144 V(SmiTag) \ | 144 V(SmiTag) \ |
145 V(SmiUntag) \ | 145 V(SmiUntag) \ |
146 V(StackCheck) \ | 146 V(StackCheck) \ |
147 V(StoreContextSlot) \ | 147 V(StoreContextSlot) \ |
148 V(StoreGlobal) \ | 148 V(StoreGlobal) \ |
149 V(StoreKeyedFastElement) \ | 149 V(StoreKeyedFastElement) \ |
150 V(StoreKeyedGeneric) \ | 150 V(StoreKeyedGeneric) \ |
| 151 V(StoreKeyedSpecializedArrayElement) \ |
151 V(StoreNamedField) \ | 152 V(StoreNamedField) \ |
152 V(StoreNamedGeneric) \ | 153 V(StoreNamedGeneric) \ |
153 V(StorePixelArrayElement) \ | |
154 V(StringCharCodeAt) \ | 154 V(StringCharCodeAt) \ |
155 V(StringCharFromCode) \ | 155 V(StringCharFromCode) \ |
156 V(StringLength) \ | 156 V(StringLength) \ |
157 V(SubI) \ | 157 V(SubI) \ |
158 V(TaggedToI) \ | 158 V(TaggedToI) \ |
159 V(Throw) \ | 159 V(Throw) \ |
160 V(ToFastProperties) \ | 160 V(ToFastProperties) \ |
161 V(Typeof) \ | 161 V(Typeof) \ |
162 V(TypeofIs) \ | 162 V(TypeofIs) \ |
163 V(TypeofIsAndBranch) \ | 163 V(TypeofIsAndBranch) \ |
(...skipping 1069 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1233 } | 1233 } |
1234 | 1234 |
1235 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedFastElement, "load-keyed-fast-element") | 1235 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedFastElement, "load-keyed-fast-element") |
1236 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedFastElement) | 1236 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedFastElement) |
1237 | 1237 |
1238 LOperand* elements() { return inputs_[0]; } | 1238 LOperand* elements() { return inputs_[0]; } |
1239 LOperand* key() { return inputs_[1]; } | 1239 LOperand* key() { return inputs_[1]; } |
1240 }; | 1240 }; |
1241 | 1241 |
1242 | 1242 |
1243 class LLoadPixelArrayElement: public LTemplateInstruction<1, 2, 0> { | 1243 class LLoadKeyedSpecializedArrayElement: public LTemplateInstruction<1, 2, 0> { |
1244 public: | 1244 public: |
1245 LLoadPixelArrayElement(LOperand* external_pointer, LOperand* key) { | 1245 LLoadKeyedSpecializedArrayElement(LOperand* external_pointer, |
| 1246 LOperand* key, |
| 1247 ExternalArrayType array_type) |
| 1248 : array_type_(array_type) { |
1246 inputs_[0] = external_pointer; | 1249 inputs_[0] = external_pointer; |
1247 inputs_[1] = key; | 1250 inputs_[1] = key; |
1248 } | 1251 } |
1249 | 1252 |
1250 DECLARE_CONCRETE_INSTRUCTION(LoadPixelArrayElement, | 1253 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedSpecializedArrayElement, |
1251 "load-pixel-array-element") | 1254 "load-keyed-specialized-array-element") |
1252 DECLARE_HYDROGEN_ACCESSOR(LoadPixelArrayElement) | 1255 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedSpecializedArrayElement) |
1253 | 1256 |
1254 LOperand* external_pointer() { return inputs_[0]; } | 1257 LOperand* external_pointer() { return inputs_[0]; } |
1255 LOperand* key() { return inputs_[1]; } | 1258 LOperand* key() { return inputs_[1]; } |
| 1259 ExternalArrayType array_type() const { return array_type_; } |
| 1260 |
| 1261 private: |
| 1262 ExternalArrayType array_type_; |
1256 }; | 1263 }; |
1257 | 1264 |
1258 | 1265 |
1259 class LLoadKeyedGeneric: public LTemplateInstruction<1, 3, 0> { | 1266 class LLoadKeyedGeneric: public LTemplateInstruction<1, 3, 0> { |
1260 public: | 1267 public: |
1261 LLoadKeyedGeneric(LOperand* context, LOperand* obj, LOperand* key) { | 1268 LLoadKeyedGeneric(LOperand* context, LOperand* obj, LOperand* key) { |
1262 inputs_[0] = context; | 1269 inputs_[0] = context; |
1263 inputs_[1] = obj; | 1270 inputs_[1] = obj; |
1264 inputs_[2] = key; | 1271 inputs_[2] = key; |
1265 } | 1272 } |
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1651 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedFastElement) | 1658 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedFastElement) |
1652 | 1659 |
1653 virtual void PrintDataTo(StringStream* stream); | 1660 virtual void PrintDataTo(StringStream* stream); |
1654 | 1661 |
1655 LOperand* object() { return inputs_[0]; } | 1662 LOperand* object() { return inputs_[0]; } |
1656 LOperand* key() { return inputs_[1]; } | 1663 LOperand* key() { return inputs_[1]; } |
1657 LOperand* value() { return inputs_[2]; } | 1664 LOperand* value() { return inputs_[2]; } |
1658 }; | 1665 }; |
1659 | 1666 |
1660 | 1667 |
1661 class LStorePixelArrayElement: public LTemplateInstruction<0, 3, 1> { | 1668 class LStoreKeyedSpecializedArrayElement: public LTemplateInstruction<0, 3, 1> { |
1662 public: | 1669 public: |
1663 LStorePixelArrayElement(LOperand* external_pointer, | 1670 LStoreKeyedSpecializedArrayElement(LOperand* external_pointer, |
1664 LOperand* key, | 1671 LOperand* key, |
1665 LOperand* val, | 1672 LOperand* val, |
1666 LOperand* clamped) { | 1673 LOperand* temp, |
| 1674 ExternalArrayType array_type) |
| 1675 : array_type_(array_type) { |
1667 inputs_[0] = external_pointer; | 1676 inputs_[0] = external_pointer; |
1668 inputs_[1] = key; | 1677 inputs_[1] = key; |
1669 inputs_[2] = val; | 1678 inputs_[2] = val; |
1670 temps_[0] = clamped; | 1679 temps_[0] = temp; |
1671 } | 1680 } |
1672 | 1681 |
1673 DECLARE_CONCRETE_INSTRUCTION(StorePixelArrayElement, | 1682 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedSpecializedArrayElement, |
1674 "store-pixel-array-element") | 1683 "store-keyed-specialized-array-element") |
1675 DECLARE_HYDROGEN_ACCESSOR(StorePixelArrayElement) | 1684 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedSpecializedArrayElement) |
1676 | 1685 |
1677 LOperand* external_pointer() { return inputs_[0]; } | 1686 LOperand* external_pointer() { return inputs_[0]; } |
1678 LOperand* key() { return inputs_[1]; } | 1687 LOperand* key() { return inputs_[1]; } |
1679 LOperand* value() { return inputs_[2]; } | 1688 LOperand* value() { return inputs_[2]; } |
| 1689 ExternalArrayType array_type() const { return array_type_; } |
| 1690 |
| 1691 private: |
| 1692 ExternalArrayType array_type_; |
1680 }; | 1693 }; |
1681 | 1694 |
1682 | 1695 |
1683 class LStoreKeyedGeneric: public LTemplateInstruction<0, 4, 0> { | 1696 class LStoreKeyedGeneric: public LTemplateInstruction<0, 4, 0> { |
1684 public: | 1697 public: |
1685 LStoreKeyedGeneric(LOperand* context, | 1698 LStoreKeyedGeneric(LOperand* context, |
1686 LOperand* object, | 1699 LOperand* object, |
1687 LOperand* key, | 1700 LOperand* key, |
1688 LOperand* value) { | 1701 LOperand* value) { |
1689 inputs_[0] = context; | 1702 inputs_[0] = context; |
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2164 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2177 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2165 }; | 2178 }; |
2166 | 2179 |
2167 #undef DECLARE_HYDROGEN_ACCESSOR | 2180 #undef DECLARE_HYDROGEN_ACCESSOR |
2168 #undef DECLARE_INSTRUCTION | 2181 #undef DECLARE_INSTRUCTION |
2169 #undef DECLARE_CONCRETE_INSTRUCTION | 2182 #undef DECLARE_CONCRETE_INSTRUCTION |
2170 | 2183 |
2171 } } // namespace v8::internal | 2184 } } // namespace v8::internal |
2172 | 2185 |
2173 #endif // V8_IA32_LITHIUM_IA32_H_ | 2186 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |