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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 V(ClampTToUint8) \ | 75 V(ClampTToUint8) \ |
76 V(ClampTToUint8NoSSE2) \ | 76 V(ClampTToUint8NoSSE2) \ |
77 V(ClassOfTestAndBranch) \ | 77 V(ClassOfTestAndBranch) \ |
78 V(CmpIDAndBranch) \ | 78 V(CmpIDAndBranch) \ |
79 V(CmpObjectEqAndBranch) \ | 79 V(CmpObjectEqAndBranch) \ |
80 V(CmpMapAndBranch) \ | 80 V(CmpMapAndBranch) \ |
81 V(CmpT) \ | 81 V(CmpT) \ |
82 V(CmpConstantEqAndBranch) \ | 82 V(CmpConstantEqAndBranch) \ |
83 V(ConstantD) \ | 83 V(ConstantD) \ |
84 V(ConstantI) \ | 84 V(ConstantI) \ |
| 85 V(ConstantS) \ |
85 V(ConstantT) \ | 86 V(ConstantT) \ |
86 V(Context) \ | 87 V(Context) \ |
87 V(DebugBreak) \ | 88 V(DebugBreak) \ |
88 V(DeclareGlobals) \ | 89 V(DeclareGlobals) \ |
89 V(DeleteProperty) \ | 90 V(DeleteProperty) \ |
90 V(Deoptimize) \ | 91 V(Deoptimize) \ |
91 V(DivI) \ | 92 V(DivI) \ |
92 V(DoubleToI) \ | 93 V(DoubleToI) \ |
93 V(DoubleToSmi) \ | 94 V(DoubleToSmi) \ |
94 V(DummyUse) \ | 95 V(DummyUse) \ |
(...skipping 1050 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1145 | 1146 |
1146 class LConstantI: public LTemplateInstruction<1, 0, 0> { | 1147 class LConstantI: public LTemplateInstruction<1, 0, 0> { |
1147 public: | 1148 public: |
1148 DECLARE_CONCRETE_INSTRUCTION(ConstantI, "constant-i") | 1149 DECLARE_CONCRETE_INSTRUCTION(ConstantI, "constant-i") |
1149 DECLARE_HYDROGEN_ACCESSOR(Constant) | 1150 DECLARE_HYDROGEN_ACCESSOR(Constant) |
1150 | 1151 |
1151 int32_t value() const { return hydrogen()->Integer32Value(); } | 1152 int32_t value() const { return hydrogen()->Integer32Value(); } |
1152 }; | 1153 }; |
1153 | 1154 |
1154 | 1155 |
| 1156 class LConstantS: public LTemplateInstruction<1, 0, 0> { |
| 1157 public: |
| 1158 DECLARE_CONCRETE_INSTRUCTION(ConstantS, "constant-s") |
| 1159 DECLARE_HYDROGEN_ACCESSOR(Constant) |
| 1160 |
| 1161 Smi* value() const { return Smi::FromInt(hydrogen()->Integer32Value()); } |
| 1162 }; |
| 1163 |
| 1164 |
1155 class LConstantD: public LTemplateInstruction<1, 0, 1> { | 1165 class LConstantD: public LTemplateInstruction<1, 0, 1> { |
1156 public: | 1166 public: |
1157 explicit LConstantD(LOperand* temp) { | 1167 explicit LConstantD(LOperand* temp) { |
1158 temps_[0] = temp; | 1168 temps_[0] = temp; |
1159 } | 1169 } |
1160 | 1170 |
1161 virtual bool ClobbersDoubleRegisters() const { | 1171 virtual bool ClobbersDoubleRegisters() const { |
1162 return false; | 1172 return false; |
1163 } | 1173 } |
1164 | 1174 |
(...skipping 1805 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2970 | 2980 |
2971 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2981 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2972 }; | 2982 }; |
2973 | 2983 |
2974 #undef DECLARE_HYDROGEN_ACCESSOR | 2984 #undef DECLARE_HYDROGEN_ACCESSOR |
2975 #undef DECLARE_CONCRETE_INSTRUCTION | 2985 #undef DECLARE_CONCRETE_INSTRUCTION |
2976 | 2986 |
2977 } } // namespace v8::internal | 2987 } } // namespace v8::internal |
2978 | 2988 |
2979 #endif // V8_IA32_LITHIUM_IA32_H_ | 2989 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |