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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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(StoreGlobalCell) \ |
149 V(StoreGlobalGeneric) \ | |
149 V(StoreKeyedFastElement) \ | 150 V(StoreKeyedFastElement) \ |
150 V(StoreKeyedGeneric) \ | 151 V(StoreKeyedGeneric) \ |
151 V(StoreKeyedSpecializedArrayElement) \ | 152 V(StoreKeyedSpecializedArrayElement) \ |
152 V(StoreNamedField) \ | 153 V(StoreNamedField) \ |
153 V(StoreNamedGeneric) \ | 154 V(StoreNamedGeneric) \ |
154 V(StringCharCodeAt) \ | 155 V(StringCharCodeAt) \ |
155 V(StringCharFromCode) \ | 156 V(StringCharFromCode) \ |
156 V(StringLength) \ | 157 V(StringLength) \ |
157 V(SubI) \ | 158 V(SubI) \ |
158 V(TaggedToI) \ | 159 V(TaggedToI) \ |
(...skipping 1102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1261 | 1262 |
1262 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") | 1263 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") |
1263 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) | 1264 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) |
1264 | 1265 |
1265 LOperand* global_object() { return inputs_[0]; } | 1266 LOperand* global_object() { return inputs_[0]; } |
1266 Handle<Object> name() const { return hydrogen()->name(); } | 1267 Handle<Object> name() const { return hydrogen()->name(); } |
1267 bool for_typeof() const { return hydrogen()->for_typeof(); } | 1268 bool for_typeof() const { return hydrogen()->for_typeof(); } |
1268 }; | 1269 }; |
1269 | 1270 |
1270 | 1271 |
1271 class LStoreGlobal: public LTemplateInstruction<0, 1, 1> { | 1272 class LStoreGlobalCell: public LTemplateInstruction<0, 1, 1> { |
1272 public: | 1273 public: |
1273 explicit LStoreGlobal(LOperand* value, LOperand* temp) { | 1274 explicit LStoreGlobalCell(LOperand* value, LOperand* temp) { |
1274 inputs_[0] = value; | 1275 inputs_[0] = value; |
1275 temps_[0] = temp; | 1276 temps_[0] = temp; |
1276 } | 1277 } |
1277 | 1278 |
1278 DECLARE_CONCRETE_INSTRUCTION(StoreGlobal, "store-global") | 1279 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalCell, "store-global-cell") |
1279 DECLARE_HYDROGEN_ACCESSOR(StoreGlobal) | 1280 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalCell) |
1280 }; | 1281 }; |
1281 | 1282 |
1282 | 1283 |
1284 class LStoreGlobalGeneric: public LTemplateInstruction<1, 2, 0> { | |
fschneider
2011/04/04 13:47:50
<0, 2, 0>
Søren Thygesen Gjesse
2011/04/04 14:16:34
Done.
| |
1285 public: | |
1286 explicit LStoreGlobalGeneric(LOperand* global_object, | |
1287 LOperand* value) { | |
1288 inputs_[0] = global_object; | |
1289 inputs_[1] = value; | |
1290 } | |
1291 | |
1292 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalGeneric, "store-global-generic") | |
1293 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalGeneric) | |
1294 | |
1295 LOperand* global_object() { return InputAt(0); } | |
1296 Handle<Object> name() const { return hydrogen()->name(); } | |
1297 LOperand* value() { return InputAt(1); } | |
1298 }; | |
1299 | |
1300 | |
1283 class LLoadContextSlot: public LTemplateInstruction<1, 1, 0> { | 1301 class LLoadContextSlot: public LTemplateInstruction<1, 1, 0> { |
1284 public: | 1302 public: |
1285 explicit LLoadContextSlot(LOperand* context) { | 1303 explicit LLoadContextSlot(LOperand* context) { |
1286 inputs_[0] = context; | 1304 inputs_[0] = context; |
1287 } | 1305 } |
1288 | 1306 |
1289 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") | 1307 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") |
1290 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) | 1308 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) |
1291 | 1309 |
1292 LOperand* context() { return InputAt(0); } | 1310 LOperand* context() { return InputAt(0); } |
(...skipping 841 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2134 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2152 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2135 }; | 2153 }; |
2136 | 2154 |
2137 #undef DECLARE_HYDROGEN_ACCESSOR | 2155 #undef DECLARE_HYDROGEN_ACCESSOR |
2138 #undef DECLARE_INSTRUCTION | 2156 #undef DECLARE_INSTRUCTION |
2139 #undef DECLARE_CONCRETE_INSTRUCTION | 2157 #undef DECLARE_CONCRETE_INSTRUCTION |
2140 | 2158 |
2141 } } // namespace v8::int | 2159 } } // namespace v8::int |
2142 | 2160 |
2143 #endif // V8_X64_LITHIUM_X64_H_ | 2161 #endif // V8_X64_LITHIUM_X64_H_ |
OLD | NEW |