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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 V(ModI) \ | 147 V(ModI) \ |
148 V(MulI) \ | 148 V(MulI) \ |
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(Random) \ |
157 V(PushArgument) \ | 158 V(PushArgument) \ |
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) \ |
(...skipping 1287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1454 } | 1455 } |
1455 | 1456 |
1456 LOperand* left() { return inputs_[0]; } | 1457 LOperand* left() { return inputs_[0]; } |
1457 LOperand* right() { return inputs_[1]; } | 1458 LOperand* right() { return inputs_[1]; } |
1458 | 1459 |
1459 DECLARE_CONCRETE_INSTRUCTION(Power, "power") | 1460 DECLARE_CONCRETE_INSTRUCTION(Power, "power") |
1460 DECLARE_HYDROGEN_ACCESSOR(Power) | 1461 DECLARE_HYDROGEN_ACCESSOR(Power) |
1461 }; | 1462 }; |
1462 | 1463 |
1463 | 1464 |
| 1465 class LRandom V8_FINAL : public LTemplateInstruction<1, 1, 3> { |
| 1466 public: |
| 1467 LRandom(LOperand* global_object, |
| 1468 LOperand* scratch, |
| 1469 LOperand* scratch2, |
| 1470 LOperand* scratch3) { |
| 1471 inputs_[0] = global_object; |
| 1472 temps_[0] = scratch; |
| 1473 temps_[1] = scratch2; |
| 1474 temps_[2] = scratch3; |
| 1475 } |
| 1476 |
| 1477 LOperand* global_object() const { return inputs_[0]; } |
| 1478 LOperand* scratch() const { return temps_[0]; } |
| 1479 LOperand* scratch2() const { return temps_[1]; } |
| 1480 LOperand* scratch3() const { return temps_[2]; } |
| 1481 |
| 1482 DECLARE_CONCRETE_INSTRUCTION(Random, "random") |
| 1483 DECLARE_HYDROGEN_ACCESSOR(Random) |
| 1484 }; |
| 1485 |
| 1486 |
1464 class LArithmeticD V8_FINAL : public LTemplateInstruction<1, 2, 0> { | 1487 class LArithmeticD V8_FINAL : public LTemplateInstruction<1, 2, 0> { |
1465 public: | 1488 public: |
1466 LArithmeticD(Token::Value op, LOperand* left, LOperand* right) | 1489 LArithmeticD(Token::Value op, LOperand* left, LOperand* right) |
1467 : op_(op) { | 1490 : op_(op) { |
1468 inputs_[0] = left; | 1491 inputs_[0] = left; |
1469 inputs_[1] = right; | 1492 inputs_[1] = right; |
1470 } | 1493 } |
1471 | 1494 |
1472 LOperand* left() { return inputs_[0]; } | 1495 LOperand* left() { return inputs_[0]; } |
1473 LOperand* right() { return inputs_[1]; } | 1496 LOperand* right() { return inputs_[1]; } |
(...skipping 1462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2936 | 2959 |
2937 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2960 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2938 }; | 2961 }; |
2939 | 2962 |
2940 #undef DECLARE_HYDROGEN_ACCESSOR | 2963 #undef DECLARE_HYDROGEN_ACCESSOR |
2941 #undef DECLARE_CONCRETE_INSTRUCTION | 2964 #undef DECLARE_CONCRETE_INSTRUCTION |
2942 | 2965 |
2943 } } // namespace v8::internal | 2966 } } // namespace v8::internal |
2944 | 2967 |
2945 #endif // V8_IA32_LITHIUM_IA32_H_ | 2968 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |