| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 V(DateField) \ | 86 V(DateField) \ |
| 87 V(DebugBreak) \ | 87 V(DebugBreak) \ |
| 88 V(DeclareGlobals) \ | 88 V(DeclareGlobals) \ |
| 89 V(Deoptimize) \ | 89 V(Deoptimize) \ |
| 90 V(DivI) \ | 90 V(DivI) \ |
| 91 V(DoubleToI) \ | 91 V(DoubleToI) \ |
| 92 V(DoubleToSmi) \ | 92 V(DoubleToSmi) \ |
| 93 V(Drop) \ | 93 V(Drop) \ |
| 94 V(Dummy) \ | 94 V(Dummy) \ |
| 95 V(DummyUse) \ | 95 V(DummyUse) \ |
| 96 V(ElementsKind) \ | |
| 97 V(ForInCacheArray) \ | 96 V(ForInCacheArray) \ |
| 98 V(ForInPrepareMap) \ | 97 V(ForInPrepareMap) \ |
| 99 V(FunctionLiteral) \ | 98 V(FunctionLiteral) \ |
| 100 V(GetCachedArrayIndex) \ | 99 V(GetCachedArrayIndex) \ |
| 101 V(Goto) \ | 100 V(Goto) \ |
| 102 V(HasCachedArrayIndexAndBranch) \ | 101 V(HasCachedArrayIndexAndBranch) \ |
| 103 V(HasInstanceTypeAndBranch) \ | 102 V(HasInstanceTypeAndBranch) \ |
| 104 V(InnerAllocatedObject) \ | 103 V(InnerAllocatedObject) \ |
| 105 V(InstanceOf) \ | 104 V(InstanceOf) \ |
| 106 V(InstanceOfKnownGlobal) \ | 105 V(InstanceOfKnownGlobal) \ |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 V(StoreKeyedGeneric) \ | 159 V(StoreKeyedGeneric) \ |
| 161 V(StoreNamedField) \ | 160 V(StoreNamedField) \ |
| 162 V(StoreNamedGeneric) \ | 161 V(StoreNamedGeneric) \ |
| 163 V(StringAdd) \ | 162 V(StringAdd) \ |
| 164 V(StringCharCodeAt) \ | 163 V(StringCharCodeAt) \ |
| 165 V(StringCharFromCode) \ | 164 V(StringCharFromCode) \ |
| 166 V(StringCompareAndBranch) \ | 165 V(StringCompareAndBranch) \ |
| 167 V(SubI) \ | 166 V(SubI) \ |
| 168 V(TaggedToI) \ | 167 V(TaggedToI) \ |
| 169 V(ThisFunction) \ | 168 V(ThisFunction) \ |
| 170 V(Throw) \ | |
| 171 V(ToFastProperties) \ | 169 V(ToFastProperties) \ |
| 172 V(TransitionElementsKind) \ | 170 V(TransitionElementsKind) \ |
| 173 V(TrapAllocationMemento) \ | 171 V(TrapAllocationMemento) \ |
| 174 V(Typeof) \ | 172 V(Typeof) \ |
| 175 V(TypeofIsAndBranch) \ | 173 V(TypeofIsAndBranch) \ |
| 176 V(Uint32ToDouble) \ | 174 V(Uint32ToDouble) \ |
| 177 V(Uint32ToSmi) \ | 175 V(Uint32ToSmi) \ |
| 178 V(UnknownOSRValue) \ | 176 V(UnknownOSRValue) \ |
| 179 V(ValueOf) \ | |
| 180 V(WrapReceiver) | 177 V(WrapReceiver) |
| 181 | 178 |
| 182 | 179 |
| 183 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ | 180 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ |
| 184 virtual Opcode opcode() const V8_FINAL V8_OVERRIDE { \ | 181 virtual Opcode opcode() const V8_FINAL V8_OVERRIDE { \ |
| 185 return LInstruction::k##type; \ | 182 return LInstruction::k##type; \ |
| 186 } \ | 183 } \ |
| 187 virtual void CompileToNative(LCodeGen* generator) V8_FINAL V8_OVERRIDE; \ | 184 virtual void CompileToNative(LCodeGen* generator) V8_FINAL V8_OVERRIDE; \ |
| 188 virtual const char* Mnemonic() const V8_FINAL V8_OVERRIDE { \ | 185 virtual const char* Mnemonic() const V8_FINAL V8_OVERRIDE { \ |
| 189 return mnemonic; \ | 186 return mnemonic; \ |
| (...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 561 inputs_[0] = receiver; | 558 inputs_[0] = receiver; |
| 562 inputs_[1] = function; | 559 inputs_[1] = function; |
| 563 temps_[0] = temp; | 560 temps_[0] = temp; |
| 564 } | 561 } |
| 565 | 562 |
| 566 LOperand* receiver() { return inputs_[0]; } | 563 LOperand* receiver() { return inputs_[0]; } |
| 567 LOperand* function() { return inputs_[1]; } | 564 LOperand* function() { return inputs_[1]; } |
| 568 LOperand* temp() { return temps_[0]; } | 565 LOperand* temp() { return temps_[0]; } |
| 569 | 566 |
| 570 DECLARE_CONCRETE_INSTRUCTION(WrapReceiver, "wrap-receiver") | 567 DECLARE_CONCRETE_INSTRUCTION(WrapReceiver, "wrap-receiver") |
| 568 DECLARE_HYDROGEN_ACCESSOR(WrapReceiver) |
| 571 }; | 569 }; |
| 572 | 570 |
| 573 | 571 |
| 574 class LApplyArguments V8_FINAL : public LTemplateInstruction<1, 4, 0> { | 572 class LApplyArguments V8_FINAL : public LTemplateInstruction<1, 4, 0> { |
| 575 public: | 573 public: |
| 576 LApplyArguments(LOperand* function, | 574 LApplyArguments(LOperand* function, |
| 577 LOperand* receiver, | 575 LOperand* receiver, |
| 578 LOperand* length, | 576 LOperand* length, |
| 579 LOperand* elements) { | 577 LOperand* elements) { |
| 580 inputs_[0] = function; | 578 inputs_[0] = function; |
| (...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1261 explicit LMapEnumLength(LOperand* value) { | 1259 explicit LMapEnumLength(LOperand* value) { |
| 1262 inputs_[0] = value; | 1260 inputs_[0] = value; |
| 1263 } | 1261 } |
| 1264 | 1262 |
| 1265 LOperand* value() { return inputs_[0]; } | 1263 LOperand* value() { return inputs_[0]; } |
| 1266 | 1264 |
| 1267 DECLARE_CONCRETE_INSTRUCTION(MapEnumLength, "map-enum-length") | 1265 DECLARE_CONCRETE_INSTRUCTION(MapEnumLength, "map-enum-length") |
| 1268 }; | 1266 }; |
| 1269 | 1267 |
| 1270 | 1268 |
| 1271 class LElementsKind V8_FINAL : public LTemplateInstruction<1, 1, 0> { | |
| 1272 public: | |
| 1273 explicit LElementsKind(LOperand* value) { | |
| 1274 inputs_[0] = value; | |
| 1275 } | |
| 1276 | |
| 1277 LOperand* value() { return inputs_[0]; } | |
| 1278 | |
| 1279 DECLARE_CONCRETE_INSTRUCTION(ElementsKind, "elements-kind") | |
| 1280 DECLARE_HYDROGEN_ACCESSOR(ElementsKind) | |
| 1281 }; | |
| 1282 | |
| 1283 | |
| 1284 class LValueOf V8_FINAL : public LTemplateInstruction<1, 1, 1> { | |
| 1285 public: | |
| 1286 LValueOf(LOperand* value, LOperand* temp) { | |
| 1287 inputs_[0] = value; | |
| 1288 temps_[0] = temp; | |
| 1289 } | |
| 1290 | |
| 1291 LOperand* value() { return inputs_[0]; } | |
| 1292 LOperand* temp() { return temps_[0]; } | |
| 1293 | |
| 1294 DECLARE_CONCRETE_INSTRUCTION(ValueOf, "value-of") | |
| 1295 DECLARE_HYDROGEN_ACCESSOR(ValueOf) | |
| 1296 }; | |
| 1297 | |
| 1298 | |
| 1299 class LDateField V8_FINAL : public LTemplateInstruction<1, 1, 1> { | 1269 class LDateField V8_FINAL : public LTemplateInstruction<1, 1, 1> { |
| 1300 public: | 1270 public: |
| 1301 LDateField(LOperand* date, LOperand* temp, Smi* index) | 1271 LDateField(LOperand* date, LOperand* temp, Smi* index) |
| 1302 : index_(index) { | 1272 : index_(index) { |
| 1303 inputs_[0] = date; | 1273 inputs_[0] = date; |
| 1304 temps_[0] = temp; | 1274 temps_[0] = temp; |
| 1305 } | 1275 } |
| 1306 | 1276 |
| 1307 LOperand* date() { return inputs_[0]; } | 1277 LOperand* date() { return inputs_[0]; } |
| 1308 LOperand* temp() { return temps_[0]; } | 1278 LOperand* temp() { return temps_[0]; } |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1346 | 1316 |
| 1347 LOperand* string() { return inputs_[1]; } | 1317 LOperand* string() { return inputs_[1]; } |
| 1348 LOperand* index() { return inputs_[2]; } | 1318 LOperand* index() { return inputs_[2]; } |
| 1349 LOperand* value() { return inputs_[3]; } | 1319 LOperand* value() { return inputs_[3]; } |
| 1350 | 1320 |
| 1351 DECLARE_CONCRETE_INSTRUCTION(SeqStringSetChar, "seq-string-set-char") | 1321 DECLARE_CONCRETE_INSTRUCTION(SeqStringSetChar, "seq-string-set-char") |
| 1352 DECLARE_HYDROGEN_ACCESSOR(SeqStringSetChar) | 1322 DECLARE_HYDROGEN_ACCESSOR(SeqStringSetChar) |
| 1353 }; | 1323 }; |
| 1354 | 1324 |
| 1355 | 1325 |
| 1356 class LThrow V8_FINAL : public LTemplateInstruction<0, 2, 0> { | |
| 1357 public: | |
| 1358 LThrow(LOperand* context, LOperand* value) { | |
| 1359 inputs_[0] = context; | |
| 1360 inputs_[1] = value; | |
| 1361 } | |
| 1362 | |
| 1363 LOperand* context() { return inputs_[0]; } | |
| 1364 LOperand* value() { return inputs_[1]; } | |
| 1365 | |
| 1366 DECLARE_CONCRETE_INSTRUCTION(Throw, "throw") | |
| 1367 }; | |
| 1368 | |
| 1369 | |
| 1370 class LAddI V8_FINAL : public LTemplateInstruction<1, 2, 0> { | 1326 class LAddI V8_FINAL : public LTemplateInstruction<1, 2, 0> { |
| 1371 public: | 1327 public: |
| 1372 LAddI(LOperand* left, LOperand* right) { | 1328 LAddI(LOperand* left, LOperand* right) { |
| 1373 inputs_[0] = left; | 1329 inputs_[0] = left; |
| 1374 inputs_[1] = right; | 1330 inputs_[1] = right; |
| 1375 } | 1331 } |
| 1376 | 1332 |
| 1377 LOperand* left() { return inputs_[0]; } | 1333 LOperand* left() { return inputs_[0]; } |
| 1378 LOperand* right() { return inputs_[1]; } | 1334 LOperand* right() { return inputs_[1]; } |
| 1379 | 1335 |
| (...skipping 1405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2785 | 2741 |
| 2786 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2742 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2787 }; | 2743 }; |
| 2788 | 2744 |
| 2789 #undef DECLARE_HYDROGEN_ACCESSOR | 2745 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2790 #undef DECLARE_CONCRETE_INSTRUCTION | 2746 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2791 | 2747 |
| 2792 } } // namespace v8::internal | 2748 } } // namespace v8::internal |
| 2793 | 2749 |
| 2794 #endif // V8_IA32_LITHIUM_IA32_H_ | 2750 #endif // V8_IA32_LITHIUM_IA32_H_ |
| OLD | NEW |