| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 #define V8_PTR_PREFIX "" | 196 #define V8_PTR_PREFIX "" |
| 197 #endif // V8_HOST_ARCH_64_BIT | 197 #endif // V8_HOST_ARCH_64_BIT |
| 198 | 198 |
| 199 // The following macro works on both 32 and 64-bit platforms. | 199 // The following macro works on both 32 and 64-bit platforms. |
| 200 // Usage: instead of writing 0x1234567890123456 | 200 // Usage: instead of writing 0x1234567890123456 |
| 201 // write V8_2PART_UINT64_C(0x12345678,90123456); | 201 // write V8_2PART_UINT64_C(0x12345678,90123456); |
| 202 #define V8_2PART_UINT64_C(a, b) (((static_cast<uint64_t>(a) << 32) + 0x##b##u)) | 202 #define V8_2PART_UINT64_C(a, b) (((static_cast<uint64_t>(a) << 32) + 0x##b##u)) |
| 203 | 203 |
| 204 #define V8PRIxPTR V8_PTR_PREFIX "x" | 204 #define V8PRIxPTR V8_PTR_PREFIX "x" |
| 205 #define V8PRIdPTR V8_PTR_PREFIX "d" | 205 #define V8PRIdPTR V8_PTR_PREFIX "d" |
| 206 #define V8PRIuPTR V8_PTR_PREFIX "u" |
| 206 | 207 |
| 207 // Fix for Mac OS X defining uintptr_t as "unsigned long": | 208 // Fix for Mac OS X defining uintptr_t as "unsigned long": |
| 208 #if defined(__APPLE__) && defined(__MACH__) | 209 #if defined(__APPLE__) && defined(__MACH__) |
| 209 #undef V8PRIxPTR | 210 #undef V8PRIxPTR |
| 210 #define V8PRIxPTR "lx" | 211 #define V8PRIxPTR "lx" |
| 211 #endif | 212 #endif |
| 212 | 213 |
| 213 #if (defined(__APPLE__) && defined(__MACH__)) || \ | 214 #if (defined(__APPLE__) && defined(__MACH__)) || \ |
| 214 defined(__FreeBSD__) || defined(__OpenBSD__) | 215 defined(__FreeBSD__) || defined(__OpenBSD__) |
| 215 #define USING_BSD_ABI | 216 #define USING_BSD_ABI |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 // the backend, so both modes are represented by the kStrictMode value. | 397 // the backend, so both modes are represented by the kStrictMode value. |
| 397 enum StrictModeFlag { | 398 enum StrictModeFlag { |
| 398 kNonStrictMode, | 399 kNonStrictMode, |
| 399 kStrictMode | 400 kStrictMode |
| 400 }; | 401 }; |
| 401 | 402 |
| 402 | 403 |
| 403 } } // namespace v8::internal | 404 } } // namespace v8::internal |
| 404 | 405 |
| 405 #endif // V8_GLOBALS_H_ | 406 #endif // V8_GLOBALS_H_ |
| OLD | NEW |