| 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 V(HasInstanceTypeAndBranch) \ | 101 V(HasInstanceTypeAndBranch) \ |
| 102 V(In) \ | 102 V(In) \ |
| 103 V(InstanceOf) \ | 103 V(InstanceOf) \ |
| 104 V(InstanceOfKnownGlobal) \ | 104 V(InstanceOfKnownGlobal) \ |
| 105 V(InstanceSize) \ | 105 V(InstanceSize) \ |
| 106 V(InstructionGap) \ | 106 V(InstructionGap) \ |
| 107 V(Integer32ToDouble) \ | 107 V(Integer32ToDouble) \ |
| 108 V(Uint32ToDouble) \ | 108 V(Uint32ToDouble) \ |
| 109 V(InvokeFunction) \ | 109 V(InvokeFunction) \ |
| 110 V(IsConstructCallAndBranch) \ | 110 V(IsConstructCallAndBranch) \ |
| 111 V(IsNilAndBranch) \ | |
| 112 V(IsObjectAndBranch) \ | 111 V(IsObjectAndBranch) \ |
| 113 V(IsStringAndBranch) \ | 112 V(IsStringAndBranch) \ |
| 114 V(IsSmiAndBranch) \ | 113 V(IsSmiAndBranch) \ |
| 115 V(IsUndetectableAndBranch) \ | 114 V(IsUndetectableAndBranch) \ |
| 116 V(Label) \ | 115 V(Label) \ |
| 117 V(LazyBailout) \ | 116 V(LazyBailout) \ |
| 118 V(LoadContextSlot) \ | 117 V(LoadContextSlot) \ |
| 119 V(LoadExternalArrayPointer) \ | 118 V(LoadExternalArrayPointer) \ |
| 120 V(LoadFunctionPrototype) \ | 119 V(LoadFunctionPrototype) \ |
| 121 V(LoadGlobalCell) \ | 120 V(LoadGlobalCell) \ |
| (...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 825 } | 824 } |
| 826 | 825 |
| 827 LOperand* left() { return inputs_[0]; } | 826 LOperand* left() { return inputs_[0]; } |
| 828 | 827 |
| 829 DECLARE_CONCRETE_INSTRUCTION(CmpConstantEqAndBranch, | 828 DECLARE_CONCRETE_INSTRUCTION(CmpConstantEqAndBranch, |
| 830 "cmp-constant-eq-and-branch") | 829 "cmp-constant-eq-and-branch") |
| 831 DECLARE_HYDROGEN_ACCESSOR(CompareConstantEqAndBranch) | 830 DECLARE_HYDROGEN_ACCESSOR(CompareConstantEqAndBranch) |
| 832 }; | 831 }; |
| 833 | 832 |
| 834 | 833 |
| 835 class LIsNilAndBranch: public LControlInstruction<1, 1> { | |
| 836 public: | |
| 837 LIsNilAndBranch(LOperand* value, LOperand* temp) { | |
| 838 inputs_[0] = value; | |
| 839 temps_[0] = temp; | |
| 840 } | |
| 841 | |
| 842 LOperand* value() { return inputs_[0]; } | |
| 843 LOperand* temp() { return temps_[0]; } | |
| 844 | |
| 845 DECLARE_CONCRETE_INSTRUCTION(IsNilAndBranch, "is-nil-and-branch") | |
| 846 DECLARE_HYDROGEN_ACCESSOR(IsNilAndBranch) | |
| 847 | |
| 848 EqualityKind kind() const { return hydrogen()->kind(); } | |
| 849 NilValue nil() const { return hydrogen()->nil(); } | |
| 850 | |
| 851 virtual void PrintDataTo(StringStream* stream); | |
| 852 }; | |
| 853 | |
| 854 | |
| 855 class LIsObjectAndBranch: public LControlInstruction<1, 1> { | 834 class LIsObjectAndBranch: public LControlInstruction<1, 1> { |
| 856 public: | 835 public: |
| 857 LIsObjectAndBranch(LOperand* value, LOperand* temp) { | 836 LIsObjectAndBranch(LOperand* value, LOperand* temp) { |
| 858 inputs_[0] = value; | 837 inputs_[0] = value; |
| 859 temps_[0] = temp; | 838 temps_[0] = temp; |
| 860 } | 839 } |
| 861 | 840 |
| 862 LOperand* value() { return inputs_[0]; } | 841 LOperand* value() { return inputs_[0]; } |
| 863 LOperand* temp() { return temps_[0]; } | 842 LOperand* temp() { return temps_[0]; } |
| 864 | 843 |
| (...skipping 2094 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2959 | 2938 |
| 2960 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2939 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2961 }; | 2940 }; |
| 2962 | 2941 |
| 2963 #undef DECLARE_HYDROGEN_ACCESSOR | 2942 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2964 #undef DECLARE_CONCRETE_INSTRUCTION | 2943 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2965 | 2944 |
| 2966 } } // namespace v8::internal | 2945 } } // namespace v8::internal |
| 2967 | 2946 |
| 2968 #endif // V8_IA32_LITHIUM_IA32_H_ | 2947 #endif // V8_IA32_LITHIUM_IA32_H_ |
| OLD | NEW |