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 | 5 // modification, are permitted provided that the following conditions |
6 // are met: | 6 // are 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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 ls = 9 << 28, // C clear or Z set unsigned lower or same. | 272 ls = 9 << 28, // C clear or Z set unsigned lower or same. |
273 ge = 10 << 28, // N == V greater or equal. | 273 ge = 10 << 28, // N == V greater or equal. |
274 lt = 11 << 28, // N != V less than. | 274 lt = 11 << 28, // N != V less than. |
275 gt = 12 << 28, // Z clear, N == V greater than. | 275 gt = 12 << 28, // Z clear, N == V greater than. |
276 le = 13 << 28, // Z set or N != V less then or equal | 276 le = 13 << 28, // Z set or N != V less then or equal |
277 al = 14 << 28 // always. | 277 al = 14 << 28 // always. |
278 }; | 278 }; |
279 | 279 |
280 | 280 |
281 // Returns the equivalent of !cc. | 281 // Returns the equivalent of !cc. |
282 INLINE(Condition NegateCondition(Condition cc)); | 282 inline Condition NegateCondition(Condition cc) { |
| 283 ASSERT(cc != al); |
| 284 return static_cast<Condition>(cc ^ ne); |
| 285 } |
283 | 286 |
284 | 287 |
285 // Corresponds to transposing the operands of a comparison. | 288 // Corresponds to transposing the operands of a comparison. |
286 inline Condition ReverseCondition(Condition cc) { | 289 inline Condition ReverseCondition(Condition cc) { |
287 switch (cc) { | 290 switch (cc) { |
288 case lo: | 291 case lo: |
289 return hi; | 292 return hi; |
290 case hi: | 293 case hi: |
291 return lo; | 294 return lo; |
292 case hs: | 295 case hs: |
(...skipping 902 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1195 | 1198 |
1196 friend class RegExpMacroAssemblerARM; | 1199 friend class RegExpMacroAssemblerARM; |
1197 friend class RelocInfo; | 1200 friend class RelocInfo; |
1198 friend class CodePatcher; | 1201 friend class CodePatcher; |
1199 friend class BlockConstPoolScope; | 1202 friend class BlockConstPoolScope; |
1200 }; | 1203 }; |
1201 | 1204 |
1202 } } // namespace v8::internal | 1205 } } // namespace v8::internal |
1203 | 1206 |
1204 #endif // V8_ARM_ASSEMBLER_ARM_H_ | 1207 #endif // V8_ARM_ASSEMBLER_ARM_H_ |
OLD | NEW |