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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 V(StoreKeyed) \ | 167 V(StoreKeyed) \ |
168 V(StoreKeyedGeneric) \ | 168 V(StoreKeyedGeneric) \ |
169 V(StoreNamedField) \ | 169 V(StoreNamedField) \ |
170 V(StoreNamedGeneric) \ | 170 V(StoreNamedGeneric) \ |
171 V(StringAdd) \ | 171 V(StringAdd) \ |
172 V(StringCharCodeAt) \ | 172 V(StringCharCodeAt) \ |
173 V(StringCharFromCode) \ | 173 V(StringCharFromCode) \ |
174 V(StringCompareAndBranch) \ | 174 V(StringCompareAndBranch) \ |
175 V(SubI) \ | 175 V(SubI) \ |
176 V(TaggedToI) \ | 176 V(TaggedToI) \ |
177 V(TaggedToINoSSE2) \ | |
178 V(ThisFunction) \ | 177 V(ThisFunction) \ |
179 V(Throw) \ | 178 V(Throw) \ |
180 V(ToFastProperties) \ | 179 V(ToFastProperties) \ |
181 V(TransitionElementsKind) \ | 180 V(TransitionElementsKind) \ |
182 V(TrapAllocationMemento) \ | 181 V(TrapAllocationMemento) \ |
183 V(Typeof) \ | 182 V(Typeof) \ |
184 V(TypeofIsAndBranch) \ | 183 V(TypeofIsAndBranch) \ |
185 V(Uint32ToDouble) \ | 184 V(Uint32ToDouble) \ |
186 V(UnknownOSRValue) \ | 185 V(UnknownOSRValue) \ |
187 V(ValueOf) \ | 186 V(ValueOf) \ |
(...skipping 1958 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2146 LOperand* value() { return inputs_[0]; } | 2145 LOperand* value() { return inputs_[0]; } |
2147 LOperand* temp() { return temps_[0]; } | 2146 LOperand* temp() { return temps_[0]; } |
2148 | 2147 |
2149 DECLARE_CONCRETE_INSTRUCTION(TaggedToI, "tagged-to-i") | 2148 DECLARE_CONCRETE_INSTRUCTION(TaggedToI, "tagged-to-i") |
2150 DECLARE_HYDROGEN_ACCESSOR(UnaryOperation) | 2149 DECLARE_HYDROGEN_ACCESSOR(UnaryOperation) |
2151 | 2150 |
2152 bool truncating() { return hydrogen()->CanTruncateToInt32(); } | 2151 bool truncating() { return hydrogen()->CanTruncateToInt32(); } |
2153 }; | 2152 }; |
2154 | 2153 |
2155 | 2154 |
2156 // Truncating conversion from a tagged value to an int32. | |
2157 class LTaggedToINoSSE2 V8_FINAL : public LTemplateInstruction<1, 1, 3> { | |
2158 public: | |
2159 LTaggedToINoSSE2(LOperand* value, | |
2160 LOperand* temp1, | |
2161 LOperand* temp2, | |
2162 LOperand* temp3) { | |
2163 inputs_[0] = value; | |
2164 temps_[0] = temp1; | |
2165 temps_[1] = temp2; | |
2166 temps_[2] = temp3; | |
2167 } | |
2168 | |
2169 LOperand* value() { return inputs_[0]; } | |
2170 LOperand* scratch() { return temps_[0]; } | |
2171 LOperand* scratch2() { return temps_[1]; } | |
2172 LOperand* scratch3() { return temps_[2]; } | |
2173 | |
2174 DECLARE_CONCRETE_INSTRUCTION(TaggedToINoSSE2, "tagged-to-i-nosse2") | |
2175 DECLARE_HYDROGEN_ACCESSOR(UnaryOperation) | |
2176 | |
2177 bool truncating() { return hydrogen()->CanTruncateToInt32(); } | |
2178 }; | |
2179 | |
2180 | |
2181 class LSmiTag V8_FINAL : public LTemplateInstruction<1, 1, 0> { | 2155 class LSmiTag V8_FINAL : public LTemplateInstruction<1, 1, 0> { |
2182 public: | 2156 public: |
2183 explicit LSmiTag(LOperand* value) { | 2157 explicit LSmiTag(LOperand* value) { |
2184 inputs_[0] = value; | 2158 inputs_[0] = value; |
2185 } | 2159 } |
2186 | 2160 |
2187 LOperand* value() { return inputs_[0]; } | 2161 LOperand* value() { return inputs_[0]; } |
2188 | 2162 |
2189 DECLARE_CONCRETE_INSTRUCTION(SmiTag, "smi-tag") | 2163 DECLARE_CONCRETE_INSTRUCTION(SmiTag, "smi-tag") |
2190 }; | 2164 }; |
(...skipping 719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2910 | 2884 |
2911 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2885 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2912 }; | 2886 }; |
2913 | 2887 |
2914 #undef DECLARE_HYDROGEN_ACCESSOR | 2888 #undef DECLARE_HYDROGEN_ACCESSOR |
2915 #undef DECLARE_CONCRETE_INSTRUCTION | 2889 #undef DECLARE_CONCRETE_INSTRUCTION |
2916 | 2890 |
2917 } } // namespace v8::internal | 2891 } } // namespace v8::internal |
2918 | 2892 |
2919 #endif // V8_IA32_LITHIUM_IA32_H_ | 2893 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |