| 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 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 434 static inline bool is_int8(int x) { return is_intn(x, 8); } | 434 static inline bool is_int8(int x) { return is_intn(x, 8); } |
| 435 | 435 |
| 436 static inline bool is_uintn(int x, int n) { | 436 static inline bool is_uintn(int x, int n) { |
| 437 return (x & -(1 << n)) == 0; | 437 return (x & -(1 << n)) == 0; |
| 438 } | 438 } |
| 439 | 439 |
| 440 static inline bool is_uint2(int x) { return is_uintn(x, 2); } | 440 static inline bool is_uint2(int x) { return is_uintn(x, 2); } |
| 441 static inline bool is_uint3(int x) { return is_uintn(x, 3); } | 441 static inline bool is_uint3(int x) { return is_uintn(x, 3); } |
| 442 static inline bool is_uint4(int x) { return is_uintn(x, 4); } | 442 static inline bool is_uint4(int x) { return is_uintn(x, 4); } |
| 443 static inline bool is_uint5(int x) { return is_uintn(x, 5); } | 443 static inline bool is_uint5(int x) { return is_uintn(x, 5); } |
| 444 static inline bool is_uint6(int x) { return is_uintn(x, 6); } |
| 444 static inline bool is_uint8(int x) { return is_uintn(x, 8); } | 445 static inline bool is_uint8(int x) { return is_uintn(x, 8); } |
| 445 static inline bool is_uint12(int x) { return is_uintn(x, 12); } | 446 static inline bool is_uint12(int x) { return is_uintn(x, 12); } |
| 446 static inline bool is_uint16(int x) { return is_uintn(x, 16); } | 447 static inline bool is_uint16(int x) { return is_uintn(x, 16); } |
| 447 static inline bool is_uint24(int x) { return is_uintn(x, 24); } | 448 static inline bool is_uint24(int x) { return is_uintn(x, 24); } |
| 448 | 449 |
| 449 } } // namespace v8::internal | 450 } } // namespace v8::internal |
| 450 | 451 |
| 451 #endif // V8_ASSEMBLER_H_ | 452 #endif // V8_ASSEMBLER_H_ |
| OLD | NEW |