OLD | NEW |
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
2 // All Rights Reserved. | 2 // All Rights Reserved. |
3 // | 3 // |
4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
6 // met: | 6 // met: |
7 // | 7 // |
8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
10 // | 10 // |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 | 239 |
240 // Returns the equivalent of !cc. | 240 // Returns the equivalent of !cc. |
241 // Negation of the default no_condition (-1) results in a non-default | 241 // Negation of the default no_condition (-1) results in a non-default |
242 // no_condition value (-2). As long as tests for no_condition check | 242 // no_condition value (-2). As long as tests for no_condition check |
243 // for condition < 0, this will work as expected. | 243 // for condition < 0, this will work as expected. |
244 inline Condition NegateCondition(Condition cc) { | 244 inline Condition NegateCondition(Condition cc) { |
245 return static_cast<Condition>(cc ^ 1); | 245 return static_cast<Condition>(cc ^ 1); |
246 } | 246 } |
247 | 247 |
248 | 248 |
249 // Corresponds to transposing the operands of a comparison. | 249 // Commute a condition such that a cond b == b cond' b. |
250 inline Condition ReverseCondition(Condition cc) { | 250 inline Condition CommuteCondition(Condition cc) { |
251 switch (cc) { | 251 switch (cc) { |
252 case below: | 252 case below: |
253 return above; | 253 return above; |
254 case above: | 254 case above: |
255 return below; | 255 return below; |
256 case above_equal: | 256 case above_equal: |
257 return below_equal; | 257 return below_equal; |
258 case below_equal: | 258 case below_equal: |
259 return above_equal; | 259 return above_equal; |
260 case less: | 260 case less: |
(...skipping 899 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1160 private: | 1160 private: |
1161 Assembler* assembler_; | 1161 Assembler* assembler_; |
1162 #ifdef DEBUG | 1162 #ifdef DEBUG |
1163 int space_before_; | 1163 int space_before_; |
1164 #endif | 1164 #endif |
1165 }; | 1165 }; |
1166 | 1166 |
1167 } } // namespace v8::internal | 1167 } } // namespace v8::internal |
1168 | 1168 |
1169 #endif // V8_IA32_ASSEMBLER_IA32_H_ | 1169 #endif // V8_IA32_ASSEMBLER_IA32_H_ |
OLD | NEW |