| 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 V(HasInstanceTypeAndBranch) \ | 108 V(HasInstanceTypeAndBranch) \ |
| 109 V(In) \ | 109 V(In) \ |
| 110 V(InstanceOf) \ | 110 V(InstanceOf) \ |
| 111 V(InstanceOfKnownGlobal) \ | 111 V(InstanceOfKnownGlobal) \ |
| 112 V(InstanceSize) \ | 112 V(InstanceSize) \ |
| 113 V(InstructionGap) \ | 113 V(InstructionGap) \ |
| 114 V(Integer32ToDouble) \ | 114 V(Integer32ToDouble) \ |
| 115 V(Uint32ToDouble) \ | 115 V(Uint32ToDouble) \ |
| 116 V(InvokeFunction) \ | 116 V(InvokeFunction) \ |
| 117 V(IsConstructCallAndBranch) \ | 117 V(IsConstructCallAndBranch) \ |
| 118 V(IsNilAndBranch) \ | |
| 119 V(IsObjectAndBranch) \ | 118 V(IsObjectAndBranch) \ |
| 120 V(IsStringAndBranch) \ | 119 V(IsStringAndBranch) \ |
| 121 V(IsSmiAndBranch) \ | 120 V(IsSmiAndBranch) \ |
| 122 V(IsUndetectableAndBranch) \ | 121 V(IsUndetectableAndBranch) \ |
| 123 V(Label) \ | 122 V(Label) \ |
| 124 V(LazyBailout) \ | 123 V(LazyBailout) \ |
| 125 V(LoadContextSlot) \ | 124 V(LoadContextSlot) \ |
| 126 V(LoadElements) \ | 125 V(LoadElements) \ |
| 127 V(LoadExternalArrayPointer) \ | 126 V(LoadExternalArrayPointer) \ |
| 128 V(LoadFunctionPrototype) \ | 127 V(LoadFunctionPrototype) \ |
| (...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 807 } | 806 } |
| 808 | 807 |
| 809 LOperand* left() { return inputs_[0]; } | 808 LOperand* left() { return inputs_[0]; } |
| 810 | 809 |
| 811 DECLARE_CONCRETE_INSTRUCTION(CmpConstantEqAndBranch, | 810 DECLARE_CONCRETE_INSTRUCTION(CmpConstantEqAndBranch, |
| 812 "cmp-constant-eq-and-branch") | 811 "cmp-constant-eq-and-branch") |
| 813 DECLARE_HYDROGEN_ACCESSOR(CompareConstantEqAndBranch) | 812 DECLARE_HYDROGEN_ACCESSOR(CompareConstantEqAndBranch) |
| 814 }; | 813 }; |
| 815 | 814 |
| 816 | 815 |
| 817 class LIsNilAndBranch: public LControlInstruction<1, 1> { | |
| 818 public: | |
| 819 LIsNilAndBranch(LOperand* value, LOperand* temp) { | |
| 820 inputs_[0] = value; | |
| 821 temps_[0] = temp; | |
| 822 } | |
| 823 | |
| 824 LOperand* value() { return inputs_[0]; } | |
| 825 LOperand* temp() { return temps_[0]; } | |
| 826 | |
| 827 DECLARE_CONCRETE_INSTRUCTION(IsNilAndBranch, "is-nil-and-branch") | |
| 828 DECLARE_HYDROGEN_ACCESSOR(IsNilAndBranch) | |
| 829 | |
| 830 EqualityKind kind() const { return hydrogen()->kind(); } | |
| 831 NilValue nil() const { return hydrogen()->nil(); } | |
| 832 | |
| 833 virtual void PrintDataTo(StringStream* stream); | |
| 834 }; | |
| 835 | |
| 836 | |
| 837 class LIsObjectAndBranch: public LControlInstruction<1, 0> { | 816 class LIsObjectAndBranch: public LControlInstruction<1, 0> { |
| 838 public: | 817 public: |
| 839 explicit LIsObjectAndBranch(LOperand* value) { | 818 explicit LIsObjectAndBranch(LOperand* value) { |
| 840 inputs_[0] = value; | 819 inputs_[0] = value; |
| 841 } | 820 } |
| 842 | 821 |
| 843 LOperand* value() { return inputs_[0]; } | 822 LOperand* value() { return inputs_[0]; } |
| 844 | 823 |
| 845 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch") | 824 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch") |
| 846 DECLARE_HYDROGEN_ACCESSOR(IsObjectAndBranch) | 825 DECLARE_HYDROGEN_ACCESSOR(IsObjectAndBranch) |
| (...skipping 1890 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2737 | 2716 |
| 2738 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2717 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2739 }; | 2718 }; |
| 2740 | 2719 |
| 2741 #undef DECLARE_HYDROGEN_ACCESSOR | 2720 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2742 #undef DECLARE_CONCRETE_INSTRUCTION | 2721 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2743 | 2722 |
| 2744 } } // namespace v8::int | 2723 } } // namespace v8::int |
| 2745 | 2724 |
| 2746 #endif // V8_X64_LITHIUM_X64_H_ | 2725 #endif // V8_X64_LITHIUM_X64_H_ |
| OLD | NEW |