| 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 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 482 class LCallStub V8_FINAL : public LTemplateInstruction<1, 1, 0> { | 482 class LCallStub V8_FINAL : public LTemplateInstruction<1, 1, 0> { |
| 483 public: | 483 public: |
| 484 explicit LCallStub(LOperand* context) { | 484 explicit LCallStub(LOperand* context) { |
| 485 inputs_[0] = context; | 485 inputs_[0] = context; |
| 486 } | 486 } |
| 487 | 487 |
| 488 LOperand* context() { return inputs_[0]; } | 488 LOperand* context() { return inputs_[0]; } |
| 489 | 489 |
| 490 DECLARE_CONCRETE_INSTRUCTION(CallStub, "call-stub") | 490 DECLARE_CONCRETE_INSTRUCTION(CallStub, "call-stub") |
| 491 DECLARE_HYDROGEN_ACCESSOR(CallStub) | 491 DECLARE_HYDROGEN_ACCESSOR(CallStub) |
| 492 | |
| 493 TranscendentalCache::Type transcendental_type() { | |
| 494 return hydrogen()->transcendental_type(); | |
| 495 } | |
| 496 }; | 492 }; |
| 497 | 493 |
| 498 | 494 |
| 499 class LUnknownOSRValue V8_FINAL : public LTemplateInstruction<1, 0, 0> { | 495 class LUnknownOSRValue V8_FINAL : public LTemplateInstruction<1, 0, 0> { |
| 500 public: | 496 public: |
| 501 virtual bool HasInterestingComment(LCodeGen* gen) const V8_OVERRIDE { | 497 virtual bool HasInterestingComment(LCodeGen* gen) const V8_OVERRIDE { |
| 502 return false; | 498 return false; |
| 503 } | 499 } |
| 504 DECLARE_CONCRETE_INSTRUCTION(UnknownOSRValue, "unknown-osr-value") | 500 DECLARE_CONCRETE_INSTRUCTION(UnknownOSRValue, "unknown-osr-value") |
| 505 }; | 501 }; |
| (...skipping 2201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2707 // Operand created by UseRegisterAtStart is guaranteed to be live only at | 2703 // Operand created by UseRegisterAtStart is guaranteed to be live only at |
| 2708 // instruction start. Register allocator is free to assign the same register | 2704 // instruction start. Register allocator is free to assign the same register |
| 2709 // to some other operand used inside instruction (i.e. temporary or | 2705 // to some other operand used inside instruction (i.e. temporary or |
| 2710 // output). | 2706 // output). |
| 2711 MUST_USE_RESULT LOperand* UseRegister(HValue* value); | 2707 MUST_USE_RESULT LOperand* UseRegister(HValue* value); |
| 2712 MUST_USE_RESULT LOperand* UseRegisterAtStart(HValue* value); | 2708 MUST_USE_RESULT LOperand* UseRegisterAtStart(HValue* value); |
| 2713 | 2709 |
| 2714 // An input operand in a register that may be trashed. | 2710 // An input operand in a register that may be trashed. |
| 2715 MUST_USE_RESULT LOperand* UseTempRegister(HValue* value); | 2711 MUST_USE_RESULT LOperand* UseTempRegister(HValue* value); |
| 2716 | 2712 |
| 2713 // An input operand in a register that may be trashed or a constant operand. |
| 2714 MUST_USE_RESULT LOperand* UseTempRegisterOrConstant(HValue* value); |
| 2715 |
| 2717 // An input operand in a register or stack slot. | 2716 // An input operand in a register or stack slot. |
| 2718 MUST_USE_RESULT LOperand* Use(HValue* value); | 2717 MUST_USE_RESULT LOperand* Use(HValue* value); |
| 2719 MUST_USE_RESULT LOperand* UseAtStart(HValue* value); | 2718 MUST_USE_RESULT LOperand* UseAtStart(HValue* value); |
| 2720 | 2719 |
| 2721 // An input operand in a register, stack slot or a constant operand. | 2720 // An input operand in a register, stack slot or a constant operand. |
| 2722 MUST_USE_RESULT LOperand* UseOrConstant(HValue* value); | 2721 MUST_USE_RESULT LOperand* UseOrConstant(HValue* value); |
| 2723 MUST_USE_RESULT LOperand* UseOrConstantAtStart(HValue* value); | 2722 MUST_USE_RESULT LOperand* UseOrConstantAtStart(HValue* value); |
| 2724 | 2723 |
| 2725 // An input operand in a register or a constant operand. | 2724 // An input operand in a register or a constant operand. |
| 2726 MUST_USE_RESULT LOperand* UseRegisterOrConstant(HValue* value); | 2725 MUST_USE_RESULT LOperand* UseRegisterOrConstant(HValue* value); |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2801 | 2800 |
| 2802 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2801 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2803 }; | 2802 }; |
| 2804 | 2803 |
| 2805 #undef DECLARE_HYDROGEN_ACCESSOR | 2804 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2806 #undef DECLARE_CONCRETE_INSTRUCTION | 2805 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2807 | 2806 |
| 2808 } } // namespace v8::int | 2807 } } // namespace v8::int |
| 2809 | 2808 |
| 2810 #endif // V8_X64_LITHIUM_X64_H_ | 2809 #endif // V8_X64_LITHIUM_X64_H_ |
| OLD | NEW |