| 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 V(MultiplySubD) \ | 148 V(MultiplySubD) \ |
| 149 V(NumberTagD) \ | 149 V(NumberTagD) \ |
| 150 V(NumberTagI) \ | 150 V(NumberTagI) \ |
| 151 V(NumberTagU) \ | 151 V(NumberTagU) \ |
| 152 V(NumberUntagD) \ | 152 V(NumberUntagD) \ |
| 153 V(OsrEntry) \ | 153 V(OsrEntry) \ |
| 154 V(OuterContext) \ | 154 V(OuterContext) \ |
| 155 V(Parameter) \ | 155 V(Parameter) \ |
| 156 V(Power) \ | 156 V(Power) \ |
| 157 V(PushArgument) \ | 157 V(PushArgument) \ |
| 158 V(Random) \ | |
| 159 V(RegExpLiteral) \ | 158 V(RegExpLiteral) \ |
| 160 V(Return) \ | 159 V(Return) \ |
| 161 V(SeqStringGetChar) \ | 160 V(SeqStringGetChar) \ |
| 162 V(SeqStringSetChar) \ | 161 V(SeqStringSetChar) \ |
| 163 V(ShiftI) \ | 162 V(ShiftI) \ |
| 164 V(SmiTag) \ | 163 V(SmiTag) \ |
| 165 V(SmiUntag) \ | 164 V(SmiUntag) \ |
| 166 V(StackCheck) \ | 165 V(StackCheck) \ |
| 167 V(StoreCodeEntry) \ | 166 V(StoreCodeEntry) \ |
| 168 V(StoreContextSlot) \ | 167 V(StoreContextSlot) \ |
| (...skipping 1225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1394 } | 1393 } |
| 1395 | 1394 |
| 1396 LOperand* string() const { return inputs_[0]; } | 1395 LOperand* string() const { return inputs_[0]; } |
| 1397 LOperand* index() const { return inputs_[1]; } | 1396 LOperand* index() const { return inputs_[1]; } |
| 1398 | 1397 |
| 1399 DECLARE_CONCRETE_INSTRUCTION(SeqStringGetChar, "seq-string-get-char") | 1398 DECLARE_CONCRETE_INSTRUCTION(SeqStringGetChar, "seq-string-get-char") |
| 1400 DECLARE_HYDROGEN_ACCESSOR(SeqStringGetChar) | 1399 DECLARE_HYDROGEN_ACCESSOR(SeqStringGetChar) |
| 1401 }; | 1400 }; |
| 1402 | 1401 |
| 1403 | 1402 |
| 1404 class LSeqStringSetChar V8_FINAL : public LTemplateInstruction<1, 3, 0> { | 1403 class LSeqStringSetChar V8_FINAL : public LTemplateInstruction<1, 4, 0> { |
| 1405 public: | 1404 public: |
| 1406 LSeqStringSetChar(LOperand* string, | 1405 LSeqStringSetChar(LOperand* context, |
| 1406 LOperand* string, |
| 1407 LOperand* index, | 1407 LOperand* index, |
| 1408 LOperand* value) { | 1408 LOperand* value) { |
| 1409 inputs_[0] = string; | 1409 inputs_[0] = context; |
| 1410 inputs_[1] = index; | 1410 inputs_[1] = string; |
| 1411 inputs_[2] = value; | 1411 inputs_[2] = index; |
| 1412 inputs_[3] = value; |
| 1412 } | 1413 } |
| 1413 | 1414 |
| 1414 LOperand* string() { return inputs_[0]; } | 1415 LOperand* string() { return inputs_[1]; } |
| 1415 LOperand* index() { return inputs_[1]; } | 1416 LOperand* index() { return inputs_[2]; } |
| 1416 LOperand* value() { return inputs_[2]; } | 1417 LOperand* value() { return inputs_[3]; } |
| 1417 | 1418 |
| 1418 DECLARE_CONCRETE_INSTRUCTION(SeqStringSetChar, "seq-string-set-char") | 1419 DECLARE_CONCRETE_INSTRUCTION(SeqStringSetChar, "seq-string-set-char") |
| 1419 DECLARE_HYDROGEN_ACCESSOR(SeqStringSetChar) | 1420 DECLARE_HYDROGEN_ACCESSOR(SeqStringSetChar) |
| 1420 }; | 1421 }; |
| 1421 | 1422 |
| 1422 | 1423 |
| 1423 class LThrow V8_FINAL : public LTemplateInstruction<0, 2, 0> { | 1424 class LThrow V8_FINAL : public LTemplateInstruction<0, 2, 0> { |
| 1424 public: | 1425 public: |
| 1425 LThrow(LOperand* context, LOperand* value) { | 1426 LThrow(LOperand* context, LOperand* value) { |
| 1426 inputs_[0] = context; | 1427 inputs_[0] = context; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1472 } | 1473 } |
| 1473 | 1474 |
| 1474 LOperand* left() { return inputs_[0]; } | 1475 LOperand* left() { return inputs_[0]; } |
| 1475 LOperand* right() { return inputs_[1]; } | 1476 LOperand* right() { return inputs_[1]; } |
| 1476 | 1477 |
| 1477 DECLARE_CONCRETE_INSTRUCTION(Power, "power") | 1478 DECLARE_CONCRETE_INSTRUCTION(Power, "power") |
| 1478 DECLARE_HYDROGEN_ACCESSOR(Power) | 1479 DECLARE_HYDROGEN_ACCESSOR(Power) |
| 1479 }; | 1480 }; |
| 1480 | 1481 |
| 1481 | 1482 |
| 1482 class LRandom V8_FINAL : public LTemplateInstruction<1, 1, 3> { | |
| 1483 public: | |
| 1484 LRandom(LOperand* global_object, | |
| 1485 LOperand* scratch, | |
| 1486 LOperand* scratch2, | |
| 1487 LOperand* scratch3) { | |
| 1488 inputs_[0] = global_object; | |
| 1489 temps_[0] = scratch; | |
| 1490 temps_[1] = scratch2; | |
| 1491 temps_[2] = scratch3; | |
| 1492 } | |
| 1493 | |
| 1494 LOperand* global_object() const { return inputs_[0]; } | |
| 1495 LOperand* scratch() const { return temps_[0]; } | |
| 1496 LOperand* scratch2() const { return temps_[1]; } | |
| 1497 LOperand* scratch3() const { return temps_[2]; } | |
| 1498 | |
| 1499 DECLARE_CONCRETE_INSTRUCTION(Random, "random") | |
| 1500 DECLARE_HYDROGEN_ACCESSOR(Random) | |
| 1501 }; | |
| 1502 | |
| 1503 | |
| 1504 class LArithmeticD V8_FINAL : public LTemplateInstruction<1, 2, 0> { | 1483 class LArithmeticD V8_FINAL : public LTemplateInstruction<1, 2, 0> { |
| 1505 public: | 1484 public: |
| 1506 LArithmeticD(Token::Value op, LOperand* left, LOperand* right) | 1485 LArithmeticD(Token::Value op, LOperand* left, LOperand* right) |
| 1507 : op_(op) { | 1486 : op_(op) { |
| 1508 inputs_[0] = left; | 1487 inputs_[0] = left; |
| 1509 inputs_[1] = right; | 1488 inputs_[1] = right; |
| 1510 } | 1489 } |
| 1511 | 1490 |
| 1512 Token::Value op() const { return op_; } | 1491 Token::Value op() const { return op_; } |
| 1513 LOperand* left() { return inputs_[0]; } | 1492 LOperand* left() { return inputs_[0]; } |
| (...skipping 1422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2936 | 2915 |
| 2937 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2916 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2938 }; | 2917 }; |
| 2939 | 2918 |
| 2940 #undef DECLARE_HYDROGEN_ACCESSOR | 2919 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2941 #undef DECLARE_CONCRETE_INSTRUCTION | 2920 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2942 | 2921 |
| 2943 } } // namespace v8::internal | 2922 } } // namespace v8::internal |
| 2944 | 2923 |
| 2945 #endif // V8_ARM_LITHIUM_ARM_H_ | 2924 #endif // V8_ARM_LITHIUM_ARM_H_ |
| OLD | NEW |