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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 | 231 |
232 // Returns the equivalent of !cc. | 232 // Returns the equivalent of !cc. |
233 // Negation of the default no_condition (-1) results in a non-default | 233 // Negation of the default no_condition (-1) results in a non-default |
234 // no_condition value (-2). As long as tests for no_condition check | 234 // no_condition value (-2). As long as tests for no_condition check |
235 // for condition < 0, this will work as expected. | 235 // for condition < 0, this will work as expected. |
236 inline Condition NegateCondition(Condition cc) { | 236 inline Condition NegateCondition(Condition cc) { |
237 return static_cast<Condition>(cc ^ 1); | 237 return static_cast<Condition>(cc ^ 1); |
238 } | 238 } |
239 | 239 |
240 | 240 |
241 // Corresponds to transposing the operands of a comparison. | 241 // Commute a condition such that a cond b == b cond' b. |
242 inline Condition ReverseCondition(Condition cc) { | 242 inline Condition CommuteCondition(Condition cc) { |
243 switch (cc) { | 243 switch (cc) { |
244 case below: | 244 case below: |
245 return above; | 245 return above; |
246 case above: | 246 case above: |
247 return below; | 247 return below; |
248 case above_equal: | 248 case above_equal: |
249 return below_equal; | 249 return below_equal; |
250 case below_equal: | 250 case below_equal: |
251 return above_equal; | 251 return above_equal; |
252 case less: | 252 case less: |
(...skipping 769 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1022 private: | 1022 private: |
1023 Assembler* assembler_; | 1023 Assembler* assembler_; |
1024 #ifdef DEBUG | 1024 #ifdef DEBUG |
1025 int space_before_; | 1025 int space_before_; |
1026 #endif | 1026 #endif |
1027 }; | 1027 }; |
1028 | 1028 |
1029 } } // namespace v8::internal | 1029 } } // namespace v8::internal |
1030 | 1030 |
1031 #endif // V8_X87_ASSEMBLER_X87_H_ | 1031 #endif // V8_X87_ASSEMBLER_X87_H_ |
OLD | NEW |