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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 | 319 |
320 // Returns the equivalent of !cc. | 320 // Returns the equivalent of !cc. |
321 // Negation of the default no_condition (-1) results in a non-default | 321 // Negation of the default no_condition (-1) results in a non-default |
322 // no_condition value (-2). As long as tests for no_condition check | 322 // no_condition value (-2). As long as tests for no_condition check |
323 // for condition < 0, this will work as expected. | 323 // for condition < 0, this will work as expected. |
324 inline Condition NegateCondition(Condition cc) { | 324 inline Condition NegateCondition(Condition cc) { |
325 return static_cast<Condition>(cc ^ 1); | 325 return static_cast<Condition>(cc ^ 1); |
326 } | 326 } |
327 | 327 |
328 | 328 |
329 // Corresponds to transposing the operands of a comparison. | 329 // Commute a condition such that a cond b == b cond' b. |
330 inline Condition ReverseCondition(Condition cc) { | 330 inline Condition CommuteCondition(Condition cc) { |
331 switch (cc) { | 331 switch (cc) { |
332 case below: | 332 case below: |
333 return above; | 333 return above; |
334 case above: | 334 case above: |
335 return below; | 335 return below; |
336 case above_equal: | 336 case above_equal: |
337 return below_equal; | 337 return below_equal; |
338 case below_equal: | 338 case below_equal: |
339 return above_equal; | 339 return above_equal; |
340 case less: | 340 case less: |
(...skipping 1240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1581 private: | 1581 private: |
1582 Assembler* assembler_; | 1582 Assembler* assembler_; |
1583 #ifdef DEBUG | 1583 #ifdef DEBUG |
1584 int space_before_; | 1584 int space_before_; |
1585 #endif | 1585 #endif |
1586 }; | 1586 }; |
1587 | 1587 |
1588 } } // namespace v8::internal | 1588 } } // namespace v8::internal |
1589 | 1589 |
1590 #endif // V8_X64_ASSEMBLER_X64_H_ | 1590 #endif // V8_X64_ASSEMBLER_X64_H_ |
OLD | NEW |