| 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 1933 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2121 LOperand* value() { return inputs_[0]; } | 2120 LOperand* value() { return inputs_[0]; } |
| 2122 LOperand* temp() { return temps_[0]; } | 2121 LOperand* temp() { return temps_[0]; } |
| 2123 | 2122 |
| 2124 DECLARE_CONCRETE_INSTRUCTION(TaggedToI, "tagged-to-i") | 2123 DECLARE_CONCRETE_INSTRUCTION(TaggedToI, "tagged-to-i") |
| 2125 DECLARE_HYDROGEN_ACCESSOR(UnaryOperation) | 2124 DECLARE_HYDROGEN_ACCESSOR(UnaryOperation) |
| 2126 | 2125 |
| 2127 bool truncating() { return hydrogen()->CanTruncateToInt32(); } | 2126 bool truncating() { return hydrogen()->CanTruncateToInt32(); } |
| 2128 }; | 2127 }; |
| 2129 | 2128 |
| 2130 | 2129 |
| 2131 // Truncating conversion from a tagged value to an int32. | |
| 2132 class LTaggedToINoSSE2: public LTemplateInstruction<1, 1, 3> { | |
| 2133 public: | |
| 2134 LTaggedToINoSSE2(LOperand* value, | |
| 2135 LOperand* temp1, | |
| 2136 LOperand* temp2, | |
| 2137 LOperand* temp3) { | |
| 2138 inputs_[0] = value; | |
| 2139 temps_[0] = temp1; | |
| 2140 temps_[1] = temp2; | |
| 2141 temps_[2] = temp3; | |
| 2142 } | |
| 2143 | |
| 2144 LOperand* value() { return inputs_[0]; } | |
| 2145 LOperand* scratch() { return temps_[0]; } | |
| 2146 LOperand* scratch2() { return temps_[1]; } | |
| 2147 LOperand* scratch3() { return temps_[2]; } | |
| 2148 | |
| 2149 DECLARE_CONCRETE_INSTRUCTION(TaggedToINoSSE2, "tagged-to-i-nosse2") | |
| 2150 DECLARE_HYDROGEN_ACCESSOR(UnaryOperation) | |
| 2151 | |
| 2152 bool truncating() { return hydrogen()->CanTruncateToInt32(); } | |
| 2153 }; | |
| 2154 | |
| 2155 | |
| 2156 class LSmiTag: public LTemplateInstruction<1, 1, 0> { | 2130 class LSmiTag: public LTemplateInstruction<1, 1, 0> { |
| 2157 public: | 2131 public: |
| 2158 explicit LSmiTag(LOperand* value) { | 2132 explicit LSmiTag(LOperand* value) { |
| 2159 inputs_[0] = value; | 2133 inputs_[0] = value; |
| 2160 } | 2134 } |
| 2161 | 2135 |
| 2162 LOperand* value() { return inputs_[0]; } | 2136 LOperand* value() { return inputs_[0]; } |
| 2163 | 2137 |
| 2164 DECLARE_CONCRETE_INSTRUCTION(SmiTag, "smi-tag") | 2138 DECLARE_CONCRETE_INSTRUCTION(SmiTag, "smi-tag") |
| 2165 }; | 2139 }; |
| (...skipping 721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2887 | 2861 |
| 2888 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2862 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2889 }; | 2863 }; |
| 2890 | 2864 |
| 2891 #undef DECLARE_HYDROGEN_ACCESSOR | 2865 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2892 #undef DECLARE_CONCRETE_INSTRUCTION | 2866 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2893 | 2867 |
| 2894 } } // namespace v8::internal | 2868 } } // namespace v8::internal |
| 2895 | 2869 |
| 2896 #endif // V8_IA32_LITHIUM_IA32_H_ | 2870 #endif // V8_IA32_LITHIUM_IA32_H_ |
| OLD | NEW |