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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 V(MulI) \ | 146 V(MulI) \ |
147 V(NumberTagD) \ | 147 V(NumberTagD) \ |
148 V(NumberTagI) \ | 148 V(NumberTagI) \ |
149 V(NumberTagU) \ | 149 V(NumberTagU) \ |
150 V(NumberUntagD) \ | 150 V(NumberUntagD) \ |
151 V(OsrEntry) \ | 151 V(OsrEntry) \ |
152 V(OuterContext) \ | 152 V(OuterContext) \ |
153 V(Parameter) \ | 153 V(Parameter) \ |
154 V(Power) \ | 154 V(Power) \ |
155 V(PushArgument) \ | 155 V(PushArgument) \ |
| 156 V(Random) \ |
156 V(RegExpLiteral) \ | 157 V(RegExpLiteral) \ |
157 V(Return) \ | 158 V(Return) \ |
158 V(SeqStringGetChar) \ | 159 V(SeqStringGetChar) \ |
159 V(SeqStringSetChar) \ | 160 V(SeqStringSetChar) \ |
160 V(ShiftI) \ | 161 V(ShiftI) \ |
161 V(SmiTag) \ | 162 V(SmiTag) \ |
162 V(SmiUntag) \ | 163 V(SmiUntag) \ |
163 V(StackCheck) \ | 164 V(StackCheck) \ |
164 V(StoreCodeEntry) \ | 165 V(StoreCodeEntry) \ |
165 V(StoreContextSlot) \ | 166 V(StoreContextSlot) \ |
(...skipping 1250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1416 } | 1417 } |
1417 | 1418 |
1418 LOperand* left() { return inputs_[0]; } | 1419 LOperand* left() { return inputs_[0]; } |
1419 LOperand* right() { return inputs_[1]; } | 1420 LOperand* right() { return inputs_[1]; } |
1420 | 1421 |
1421 DECLARE_CONCRETE_INSTRUCTION(Power, "power") | 1422 DECLARE_CONCRETE_INSTRUCTION(Power, "power") |
1422 DECLARE_HYDROGEN_ACCESSOR(Power) | 1423 DECLARE_HYDROGEN_ACCESSOR(Power) |
1423 }; | 1424 }; |
1424 | 1425 |
1425 | 1426 |
| 1427 class LRandom V8_FINAL : public LTemplateInstruction<1, 1, 3> { |
| 1428 public: |
| 1429 LRandom(LOperand* global_object, |
| 1430 LOperand* scratch, |
| 1431 LOperand* scratch2, |
| 1432 LOperand* scratch3) { |
| 1433 inputs_[0] = global_object; |
| 1434 temps_[0] = scratch; |
| 1435 temps_[1] = scratch2; |
| 1436 temps_[2] = scratch3; |
| 1437 } |
| 1438 |
| 1439 LOperand* global_object() { return inputs_[0]; } |
| 1440 LOperand* scratch() const { return temps_[0]; } |
| 1441 LOperand* scratch2() const { return temps_[1]; } |
| 1442 LOperand* scratch3() const { return temps_[2]; } |
| 1443 |
| 1444 DECLARE_CONCRETE_INSTRUCTION(Random, "random") |
| 1445 DECLARE_HYDROGEN_ACCESSOR(Random) |
| 1446 }; |
| 1447 |
| 1448 |
1426 class LArithmeticD V8_FINAL : public LTemplateInstruction<1, 2, 0> { | 1449 class LArithmeticD V8_FINAL : public LTemplateInstruction<1, 2, 0> { |
1427 public: | 1450 public: |
1428 LArithmeticD(Token::Value op, LOperand* left, LOperand* right) | 1451 LArithmeticD(Token::Value op, LOperand* left, LOperand* right) |
1429 : op_(op) { | 1452 : op_(op) { |
1430 inputs_[0] = left; | 1453 inputs_[0] = left; |
1431 inputs_[1] = right; | 1454 inputs_[1] = right; |
1432 } | 1455 } |
1433 | 1456 |
1434 Token::Value op() const { return op_; } | 1457 Token::Value op() const { return op_; } |
1435 LOperand* left() { return inputs_[0]; } | 1458 LOperand* left() { return inputs_[0]; } |
(...skipping 1407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2843 | 2866 |
2844 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2867 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2845 }; | 2868 }; |
2846 | 2869 |
2847 #undef DECLARE_HYDROGEN_ACCESSOR | 2870 #undef DECLARE_HYDROGEN_ACCESSOR |
2848 #undef DECLARE_CONCRETE_INSTRUCTION | 2871 #undef DECLARE_CONCRETE_INSTRUCTION |
2849 | 2872 |
2850 } } // namespace v8::int | 2873 } } // namespace v8::int |
2851 | 2874 |
2852 #endif // V8_X64_LITHIUM_X64_H_ | 2875 #endif // V8_X64_LITHIUM_X64_H_ |
OLD | NEW |