| 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 V(HasInstanceTypeAndBranch) \ | 102 V(HasInstanceTypeAndBranch) \ |
| 103 V(In) \ | 103 V(In) \ |
| 104 V(InstanceOf) \ | 104 V(InstanceOf) \ |
| 105 V(InstanceOfKnownGlobal) \ | 105 V(InstanceOfKnownGlobal) \ |
| 106 V(InstanceSize) \ | 106 V(InstanceSize) \ |
| 107 V(InstructionGap) \ | 107 V(InstructionGap) \ |
| 108 V(Integer32ToDouble) \ | 108 V(Integer32ToDouble) \ |
| 109 V(Uint32ToDouble) \ | 109 V(Uint32ToDouble) \ |
| 110 V(InvokeFunction) \ | 110 V(InvokeFunction) \ |
| 111 V(IsConstructCallAndBranch) \ | 111 V(IsConstructCallAndBranch) \ |
| 112 V(IsNilAndBranch) \ | |
| 113 V(IsObjectAndBranch) \ | 112 V(IsObjectAndBranch) \ |
| 114 V(IsStringAndBranch) \ | 113 V(IsStringAndBranch) \ |
| 115 V(IsSmiAndBranch) \ | 114 V(IsSmiAndBranch) \ |
| 116 V(IsUndetectableAndBranch) \ | 115 V(IsUndetectableAndBranch) \ |
| 117 V(Label) \ | 116 V(Label) \ |
| 118 V(LazyBailout) \ | 117 V(LazyBailout) \ |
| 119 V(LoadContextSlot) \ | 118 V(LoadContextSlot) \ |
| 120 V(LoadElements) \ | 119 V(LoadElements) \ |
| 121 V(LoadExternalArrayPointer) \ | 120 V(LoadExternalArrayPointer) \ |
| 122 V(LoadFunctionPrototype) \ | 121 V(LoadFunctionPrototype) \ |
| (...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 817 } | 816 } |
| 818 | 817 |
| 819 LOperand* left() { return inputs_[0]; } | 818 LOperand* left() { return inputs_[0]; } |
| 820 | 819 |
| 821 DECLARE_CONCRETE_INSTRUCTION(CmpConstantEqAndBranch, | 820 DECLARE_CONCRETE_INSTRUCTION(CmpConstantEqAndBranch, |
| 822 "cmp-constant-eq-and-branch") | 821 "cmp-constant-eq-and-branch") |
| 823 DECLARE_HYDROGEN_ACCESSOR(CompareConstantEqAndBranch) | 822 DECLARE_HYDROGEN_ACCESSOR(CompareConstantEqAndBranch) |
| 824 }; | 823 }; |
| 825 | 824 |
| 826 | 825 |
| 827 class LIsNilAndBranch: public LControlInstruction<1, 1> { | |
| 828 public: | |
| 829 LIsNilAndBranch(LOperand* value, LOperand* temp) { | |
| 830 inputs_[0] = value; | |
| 831 temps_[0] = temp; | |
| 832 } | |
| 833 | |
| 834 LOperand* value() { return inputs_[0]; } | |
| 835 LOperand* temp() { return temps_[0]; } | |
| 836 | |
| 837 DECLARE_CONCRETE_INSTRUCTION(IsNilAndBranch, "is-nil-and-branch") | |
| 838 DECLARE_HYDROGEN_ACCESSOR(IsNilAndBranch) | |
| 839 | |
| 840 EqualityKind kind() const { return hydrogen()->kind(); } | |
| 841 NilValue nil() const { return hydrogen()->nil(); } | |
| 842 | |
| 843 virtual void PrintDataTo(StringStream* stream); | |
| 844 }; | |
| 845 | |
| 846 | |
| 847 class LIsObjectAndBranch: public LControlInstruction<1, 1> { | 826 class LIsObjectAndBranch: public LControlInstruction<1, 1> { |
| 848 public: | 827 public: |
| 849 LIsObjectAndBranch(LOperand* value, LOperand* temp) { | 828 LIsObjectAndBranch(LOperand* value, LOperand* temp) { |
| 850 inputs_[0] = value; | 829 inputs_[0] = value; |
| 851 temps_[0] = temp; | 830 temps_[0] = temp; |
| 852 } | 831 } |
| 853 | 832 |
| 854 LOperand* value() { return inputs_[0]; } | 833 LOperand* value() { return inputs_[0]; } |
| 855 LOperand* temp() { return temps_[0]; } | 834 LOperand* temp() { return temps_[0]; } |
| 856 | 835 |
| (...skipping 2118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2975 | 2954 |
| 2976 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2955 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2977 }; | 2956 }; |
| 2978 | 2957 |
| 2979 #undef DECLARE_HYDROGEN_ACCESSOR | 2958 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2980 #undef DECLARE_CONCRETE_INSTRUCTION | 2959 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2981 | 2960 |
| 2982 } } // namespace v8::internal | 2961 } } // namespace v8::internal |
| 2983 | 2962 |
| 2984 #endif // V8_IA32_LITHIUM_IA32_H_ | 2963 #endif // V8_IA32_LITHIUM_IA32_H_ |
| OLD | NEW |