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 1386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1397 } | 1397 } |
1398 | 1398 |
1399 LOperand* left() { return inputs_[0]; } | 1399 LOperand* left() { return inputs_[0]; } |
1400 LOperand* right() { return inputs_[1]; } | 1400 LOperand* right() { return inputs_[1]; } |
1401 | 1401 |
1402 DECLARE_CONCRETE_INSTRUCTION(Power, "power") | 1402 DECLARE_CONCRETE_INSTRUCTION(Power, "power") |
1403 DECLARE_HYDROGEN_ACCESSOR(Power) | 1403 DECLARE_HYDROGEN_ACCESSOR(Power) |
1404 }; | 1404 }; |
1405 | 1405 |
1406 | 1406 |
1407 class LRandom V8_FINAL : public LTemplateInstruction<1, 1, 0> { | 1407 class LRandom V8_FINAL : public LTemplateInstruction<1, 1, 3> { |
1408 public: | 1408 public: |
1409 explicit LRandom(LOperand* global_object) { | 1409 LRandom(LOperand* global_object, |
| 1410 LOperand* scratch, |
| 1411 LOperand* scratch2, |
| 1412 LOperand* scratch3) { |
1410 inputs_[0] = global_object; | 1413 inputs_[0] = global_object; |
| 1414 temps_[0] = scratch; |
| 1415 temps_[1] = scratch2; |
| 1416 temps_[2] = scratch3; |
1411 } | 1417 } |
1412 | 1418 |
1413 LOperand* global_object() { return inputs_[0]; } | 1419 LOperand* global_object() { return inputs_[0]; } |
| 1420 LOperand* scratch() const { return temps_[0]; } |
| 1421 LOperand* scratch2() const { return temps_[1]; } |
| 1422 LOperand* scratch3() const { return temps_[2]; } |
1414 | 1423 |
1415 DECLARE_CONCRETE_INSTRUCTION(Random, "random") | 1424 DECLARE_CONCRETE_INSTRUCTION(Random, "random") |
1416 DECLARE_HYDROGEN_ACCESSOR(Random) | 1425 DECLARE_HYDROGEN_ACCESSOR(Random) |
1417 }; | 1426 }; |
1418 | 1427 |
1419 | 1428 |
1420 class LArithmeticD V8_FINAL : public LTemplateInstruction<1, 2, 0> { | 1429 class LArithmeticD V8_FINAL : public LTemplateInstruction<1, 2, 0> { |
1421 public: | 1430 public: |
1422 LArithmeticD(Token::Value op, LOperand* left, LOperand* right) | 1431 LArithmeticD(Token::Value op, LOperand* left, LOperand* right) |
1423 : op_(op) { | 1432 : op_(op) { |
(...skipping 1286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2710 | 2719 |
2711 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2720 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2712 }; | 2721 }; |
2713 | 2722 |
2714 #undef DECLARE_HYDROGEN_ACCESSOR | 2723 #undef DECLARE_HYDROGEN_ACCESSOR |
2715 #undef DECLARE_CONCRETE_INSTRUCTION | 2724 #undef DECLARE_CONCRETE_INSTRUCTION |
2716 | 2725 |
2717 } } // namespace v8::int | 2726 } } // namespace v8::int |
2718 | 2727 |
2719 #endif // V8_X64_LITHIUM_X64_H_ | 2728 #endif // V8_X64_LITHIUM_X64_H_ |
OLD | NEW |