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) \ |
158 V(RegExpLiteral) \ | 159 V(RegExpLiteral) \ |
159 V(Return) \ | 160 V(Return) \ |
160 V(SeqStringGetChar) \ | 161 V(SeqStringGetChar) \ |
161 V(SeqStringSetChar) \ | 162 V(SeqStringSetChar) \ |
162 V(ShiftI) \ | 163 V(ShiftI) \ |
163 V(SmiTag) \ | 164 V(SmiTag) \ |
164 V(SmiUntag) \ | 165 V(SmiUntag) \ |
165 V(StackCheck) \ | 166 V(StackCheck) \ |
166 V(StoreCodeEntry) \ | 167 V(StoreCodeEntry) \ |
167 V(StoreContextSlot) \ | 168 V(StoreContextSlot) \ |
(...skipping 1305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1473 } | 1474 } |
1474 | 1475 |
1475 LOperand* left() { return inputs_[0]; } | 1476 LOperand* left() { return inputs_[0]; } |
1476 LOperand* right() { return inputs_[1]; } | 1477 LOperand* right() { return inputs_[1]; } |
1477 | 1478 |
1478 DECLARE_CONCRETE_INSTRUCTION(Power, "power") | 1479 DECLARE_CONCRETE_INSTRUCTION(Power, "power") |
1479 DECLARE_HYDROGEN_ACCESSOR(Power) | 1480 DECLARE_HYDROGEN_ACCESSOR(Power) |
1480 }; | 1481 }; |
1481 | 1482 |
1482 | 1483 |
| 1484 class LRandom V8_FINAL : public LTemplateInstruction<1, 1, 3> { |
| 1485 public: |
| 1486 LRandom(LOperand* global_object, |
| 1487 LOperand* scratch, |
| 1488 LOperand* scratch2, |
| 1489 LOperand* scratch3) { |
| 1490 inputs_[0] = global_object; |
| 1491 temps_[0] = scratch; |
| 1492 temps_[1] = scratch2; |
| 1493 temps_[2] = scratch3; |
| 1494 } |
| 1495 |
| 1496 LOperand* global_object() const { return inputs_[0]; } |
| 1497 LOperand* scratch() const { return temps_[0]; } |
| 1498 LOperand* scratch2() const { return temps_[1]; } |
| 1499 LOperand* scratch3() const { return temps_[2]; } |
| 1500 |
| 1501 DECLARE_CONCRETE_INSTRUCTION(Random, "random") |
| 1502 DECLARE_HYDROGEN_ACCESSOR(Random) |
| 1503 }; |
| 1504 |
| 1505 |
1483 class LArithmeticD V8_FINAL : public LTemplateInstruction<1, 2, 0> { | 1506 class LArithmeticD V8_FINAL : public LTemplateInstruction<1, 2, 0> { |
1484 public: | 1507 public: |
1485 LArithmeticD(Token::Value op, LOperand* left, LOperand* right) | 1508 LArithmeticD(Token::Value op, LOperand* left, LOperand* right) |
1486 : op_(op) { | 1509 : op_(op) { |
1487 inputs_[0] = left; | 1510 inputs_[0] = left; |
1488 inputs_[1] = right; | 1511 inputs_[1] = right; |
1489 } | 1512 } |
1490 | 1513 |
1491 Token::Value op() const { return op_; } | 1514 Token::Value op() const { return op_; } |
1492 LOperand* left() { return inputs_[0]; } | 1515 LOperand* left() { return inputs_[0]; } |
(...skipping 1422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2915 | 2938 |
2916 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2939 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2917 }; | 2940 }; |
2918 | 2941 |
2919 #undef DECLARE_HYDROGEN_ACCESSOR | 2942 #undef DECLARE_HYDROGEN_ACCESSOR |
2920 #undef DECLARE_CONCRETE_INSTRUCTION | 2943 #undef DECLARE_CONCRETE_INSTRUCTION |
2921 | 2944 |
2922 } } // namespace v8::internal | 2945 } } // namespace v8::internal |
2923 | 2946 |
2924 #endif // V8_ARM_LITHIUM_ARM_H_ | 2947 #endif // V8_ARM_LITHIUM_ARM_H_ |
OLD | NEW |