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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 V(CheckSmi) \ | 72 V(CheckSmi) \ |
73 V(ClampDToUint8) \ | 73 V(ClampDToUint8) \ |
74 V(ClampIToUint8) \ | 74 V(ClampIToUint8) \ |
75 V(ClampTToUint8) \ | 75 V(ClampTToUint8) \ |
76 V(ClampTToUint8NoSSE2) \ | 76 V(ClampTToUint8NoSSE2) \ |
77 V(ClassOfTestAndBranch) \ | 77 V(ClassOfTestAndBranch) \ |
78 V(CompareNumericAndBranch) \ | 78 V(CompareNumericAndBranch) \ |
79 V(CmpObjectEqAndBranch) \ | 79 V(CmpObjectEqAndBranch) \ |
80 V(CmpMapAndBranch) \ | 80 V(CmpMapAndBranch) \ |
81 V(CmpT) \ | 81 V(CmpT) \ |
82 V(CmpConstantEqAndBranch) \ | |
83 V(ConstantD) \ | 82 V(ConstantD) \ |
84 V(ConstantI) \ | 83 V(ConstantI) \ |
85 V(ConstantS) \ | 84 V(ConstantS) \ |
86 V(ConstantT) \ | 85 V(ConstantT) \ |
87 V(Context) \ | 86 V(Context) \ |
88 V(DateField) \ | 87 V(DateField) \ |
89 V(DebugBreak) \ | 88 V(DebugBreak) \ |
90 V(DeclareGlobals) \ | 89 V(DeclareGlobals) \ |
91 V(Deoptimize) \ | 90 V(Deoptimize) \ |
92 V(DivI) \ | 91 V(DivI) \ |
(...skipping 757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
850 } | 849 } |
851 | 850 |
852 LOperand* left() { return inputs_[0]; } | 851 LOperand* left() { return inputs_[0]; } |
853 LOperand* right() { return inputs_[1]; } | 852 LOperand* right() { return inputs_[1]; } |
854 | 853 |
855 DECLARE_CONCRETE_INSTRUCTION(CmpObjectEqAndBranch, | 854 DECLARE_CONCRETE_INSTRUCTION(CmpObjectEqAndBranch, |
856 "cmp-object-eq-and-branch") | 855 "cmp-object-eq-and-branch") |
857 }; | 856 }; |
858 | 857 |
859 | 858 |
860 class LCmpConstantEqAndBranch: public LControlInstruction<1, 0> { | |
861 public: | |
862 explicit LCmpConstantEqAndBranch(LOperand* left) { | |
863 inputs_[0] = left; | |
864 } | |
865 | |
866 LOperand* left() { return inputs_[0]; } | |
867 | |
868 DECLARE_CONCRETE_INSTRUCTION(CmpConstantEqAndBranch, | |
869 "cmp-constant-eq-and-branch") | |
870 DECLARE_HYDROGEN_ACCESSOR(CompareConstantEqAndBranch) | |
871 }; | |
872 | |
873 | |
874 class LIsObjectAndBranch: public LControlInstruction<1, 1> { | 859 class LIsObjectAndBranch: public LControlInstruction<1, 1> { |
875 public: | 860 public: |
876 LIsObjectAndBranch(LOperand* value, LOperand* temp) { | 861 LIsObjectAndBranch(LOperand* value, LOperand* temp) { |
877 inputs_[0] = value; | 862 inputs_[0] = value; |
878 temps_[0] = temp; | 863 temps_[0] = temp; |
879 } | 864 } |
880 | 865 |
881 LOperand* value() { return inputs_[0]; } | 866 LOperand* value() { return inputs_[0]; } |
882 LOperand* temp() { return temps_[0]; } | 867 LOperand* temp() { return temps_[0]; } |
883 | 868 |
(...skipping 2070 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2954 | 2939 |
2955 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2940 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2956 }; | 2941 }; |
2957 | 2942 |
2958 #undef DECLARE_HYDROGEN_ACCESSOR | 2943 #undef DECLARE_HYDROGEN_ACCESSOR |
2959 #undef DECLARE_CONCRETE_INSTRUCTION | 2944 #undef DECLARE_CONCRETE_INSTRUCTION |
2960 | 2945 |
2961 } } // namespace v8::internal | 2946 } } // namespace v8::internal |
2962 | 2947 |
2963 #endif // V8_IA32_LITHIUM_IA32_H_ | 2948 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |