| 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(IsConstructCall) \ | 115 V(IsConstructCall) \ |
| 116 V(IsConstructCallAndBranch) \ | 116 V(IsConstructCallAndBranch) \ |
| 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(LoadGlobalCell) \ | 124 V(LoadGlobal) \ |
| 125 V(LoadGlobalGeneric) \ | |
| 126 V(LoadKeyedFastElement) \ | 125 V(LoadKeyedFastElement) \ |
| 127 V(LoadKeyedGeneric) \ | 126 V(LoadKeyedGeneric) \ |
| 128 V(LoadKeyedSpecializedArrayElement) \ | 127 V(LoadKeyedSpecializedArrayElement) \ |
| 129 V(LoadNamedField) \ | 128 V(LoadNamedField) \ |
| 130 V(LoadNamedFieldPolymorphic) \ | 129 V(LoadNamedFieldPolymorphic) \ |
| 131 V(LoadNamedGeneric) \ | 130 V(LoadNamedGeneric) \ |
| 132 V(ModI) \ | 131 V(ModI) \ |
| 133 V(MulI) \ | 132 V(MulI) \ |
| 134 V(NumberTagD) \ | 133 V(NumberTagD) \ |
| 135 V(NumberTagI) \ | 134 V(NumberTagI) \ |
| 136 V(NumberUntagD) \ | 135 V(NumberUntagD) \ |
| 137 V(ObjectLiteral) \ | 136 V(ObjectLiteral) \ |
| 138 V(OsrEntry) \ | 137 V(OsrEntry) \ |
| 139 V(OuterContext) \ | 138 V(OuterContext) \ |
| 140 V(Parameter) \ | 139 V(Parameter) \ |
| 141 V(Power) \ | 140 V(Power) \ |
| 142 V(PushArgument) \ | 141 V(PushArgument) \ |
| 143 V(RegExpLiteral) \ | 142 V(RegExpLiteral) \ |
| 144 V(Return) \ | 143 V(Return) \ |
| 145 V(ShiftI) \ | 144 V(ShiftI) \ |
| 146 V(SmiTag) \ | 145 V(SmiTag) \ |
| 147 V(SmiUntag) \ | 146 V(SmiUntag) \ |
| 148 V(StackCheck) \ | 147 V(StackCheck) \ |
| 149 V(StoreContextSlot) \ | 148 V(StoreContextSlot) \ |
| 150 V(StoreGlobalCell) \ | 149 V(StoreGlobal) \ |
| 151 V(StoreGlobalGeneric) \ | |
| 152 V(StoreKeyedFastElement) \ | 150 V(StoreKeyedFastElement) \ |
| 153 V(StoreKeyedGeneric) \ | 151 V(StoreKeyedGeneric) \ |
| 154 V(StoreKeyedSpecializedArrayElement) \ | 152 V(StoreKeyedSpecializedArrayElement) \ |
| 155 V(StoreNamedField) \ | 153 V(StoreNamedField) \ |
| 156 V(StoreNamedGeneric) \ | 154 V(StoreNamedGeneric) \ |
| 157 V(StringCharCodeAt) \ | 155 V(StringCharCodeAt) \ |
| 158 V(StringCharFromCode) \ | 156 V(StringCharFromCode) \ |
| 159 V(StringLength) \ | 157 V(StringLength) \ |
| 160 V(SubI) \ | 158 V(SubI) \ |
| 161 V(TaggedToI) \ | 159 V(TaggedToI) \ |
| (...skipping 1125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1287 } | 1285 } |
| 1288 | 1286 |
| 1289 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") | 1287 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") |
| 1290 | 1288 |
| 1291 LOperand* context() { return inputs_[0]; } | 1289 LOperand* context() { return inputs_[0]; } |
| 1292 LOperand* object() { return inputs_[1]; } | 1290 LOperand* object() { return inputs_[1]; } |
| 1293 LOperand* key() { return inputs_[2]; } | 1291 LOperand* key() { return inputs_[2]; } |
| 1294 }; | 1292 }; |
| 1295 | 1293 |
| 1296 | 1294 |
| 1297 class LLoadGlobalCell: public LTemplateInstruction<1, 0, 0> { | 1295 class LLoadGlobal: public LTemplateInstruction<1, 0, 0> { |
| 1298 public: | 1296 public: |
| 1299 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalCell, "load-global-cell") | 1297 DECLARE_CONCRETE_INSTRUCTION(LoadGlobal, "load-global") |
| 1300 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalCell) | 1298 DECLARE_HYDROGEN_ACCESSOR(LoadGlobal) |
| 1301 }; | 1299 }; |
| 1302 | 1300 |
| 1303 | 1301 |
| 1304 class LLoadGlobalGeneric: public LTemplateInstruction<1, 2, 0> { | 1302 class LStoreGlobal: public LTemplateInstruction<0, 1, 0> { |
| 1305 public: | 1303 public: |
| 1306 LLoadGlobalGeneric(LOperand* context, LOperand* global_object) { | 1304 explicit LStoreGlobal(LOperand* value) { |
| 1307 inputs_[0] = context; | 1305 inputs_[0] = value; |
| 1308 inputs_[1] = global_object; | |
| 1309 } | 1306 } |
| 1310 | 1307 |
| 1311 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") | 1308 DECLARE_CONCRETE_INSTRUCTION(StoreGlobal, "store-global") |
| 1312 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) | 1309 DECLARE_HYDROGEN_ACCESSOR(StoreGlobal) |
| 1313 | |
| 1314 LOperand* context() { return inputs_[0]; } | |
| 1315 LOperand* global_object() { return inputs_[1]; } | |
| 1316 Handle<Object> name() const { return hydrogen()->name(); } | |
| 1317 bool for_typeof() const { return hydrogen()->for_typeof(); } | |
| 1318 }; | 1310 }; |
| 1319 | 1311 |
| 1320 | 1312 |
| 1321 class LStoreGlobalCell: public LTemplateInstruction<0, 1, 0> { | |
| 1322 public: | |
| 1323 explicit LStoreGlobalCell(LOperand* value) { | |
| 1324 inputs_[0] = value; | |
| 1325 } | |
| 1326 | |
| 1327 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalCell, "store-global-cell") | |
| 1328 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalCell) | |
| 1329 }; | |
| 1330 | |
| 1331 | |
| 1332 class LStoreGlobalGeneric: public LTemplateInstruction<0, 3, 0> { | |
| 1333 public: | |
| 1334 explicit LStoreGlobalGeneric(LOperand* context, | |
| 1335 LOperand* global_object, | |
| 1336 LOperand* value) { | |
| 1337 inputs_[0] = context; | |
| 1338 inputs_[1] = global_object; | |
| 1339 inputs_[2] = value; | |
| 1340 } | |
| 1341 | |
| 1342 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalGeneric, "store-global-generic") | |
| 1343 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalGeneric) | |
| 1344 | |
| 1345 LOperand* context() { return InputAt(0); } | |
| 1346 LOperand* global_object() { return InputAt(1); } | |
| 1347 Handle<Object> name() const { return hydrogen()->name(); } | |
| 1348 LOperand* value() { return InputAt(2); } | |
| 1349 }; | |
| 1350 | |
| 1351 | |
| 1352 class LLoadContextSlot: public LTemplateInstruction<1, 1, 0> { | 1313 class LLoadContextSlot: public LTemplateInstruction<1, 1, 0> { |
| 1353 public: | 1314 public: |
| 1354 explicit LLoadContextSlot(LOperand* context) { | 1315 explicit LLoadContextSlot(LOperand* context) { |
| 1355 inputs_[0] = context; | 1316 inputs_[0] = context; |
| 1356 } | 1317 } |
| 1357 | 1318 |
| 1358 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") | 1319 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") |
| 1359 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) | 1320 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) |
| 1360 | 1321 |
| 1361 LOperand* context() { return InputAt(0); } | 1322 LOperand* context() { return InputAt(0); } |
| (...skipping 864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2226 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2187 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2227 }; | 2188 }; |
| 2228 | 2189 |
| 2229 #undef DECLARE_HYDROGEN_ACCESSOR | 2190 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2230 #undef DECLARE_INSTRUCTION | 2191 #undef DECLARE_INSTRUCTION |
| 2231 #undef DECLARE_CONCRETE_INSTRUCTION | 2192 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2232 | 2193 |
| 2233 } } // namespace v8::internal | 2194 } } // namespace v8::internal |
| 2234 | 2195 |
| 2235 #endif // V8_IA32_LITHIUM_IA32_H_ | 2196 #endif // V8_IA32_LITHIUM_IA32_H_ |
| OLD | NEW |