OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_BASE_MACROS_H_ | 5 #ifndef V8_BASE_MACROS_H_ |
6 #define V8_BASE_MACROS_H_ | 6 #define V8_BASE_MACROS_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 # else | 326 # else |
327 # define V8_INTPTR_C(x) (x) | 327 # define V8_INTPTR_C(x) (x) |
328 # define V8_PTR_PREFIX "" | 328 # define V8_PTR_PREFIX "" |
329 # endif // V8_HOST_ARCH_64_BIT | 329 # endif // V8_HOST_ARCH_64_BIT |
330 #elif V8_CC_MINGW64 | 330 #elif V8_CC_MINGW64 |
331 # define V8_UINT64_C(x) (x ## ULL) | 331 # define V8_UINT64_C(x) (x ## ULL) |
332 # define V8_INT64_C(x) (x ## LL) | 332 # define V8_INT64_C(x) (x ## LL) |
333 # define V8_INTPTR_C(x) (x ## LL) | 333 # define V8_INTPTR_C(x) (x ## LL) |
334 # define V8_PTR_PREFIX "I64" | 334 # define V8_PTR_PREFIX "I64" |
335 #elif V8_HOST_ARCH_64_BIT | 335 #elif V8_HOST_ARCH_64_BIT |
336 # if V8_OS_MACOSX | 336 # if V8_OS_MACOSX || V8_OS_OPENBSD |
337 # define V8_UINT64_C(x) (x ## ULL) | 337 # define V8_UINT64_C(x) (x ## ULL) |
338 # define V8_INT64_C(x) (x ## LL) | 338 # define V8_INT64_C(x) (x ## LL) |
339 # else | 339 # else |
340 # define V8_UINT64_C(x) (x ## UL) | 340 # define V8_UINT64_C(x) (x ## UL) |
341 # define V8_INT64_C(x) (x ## L) | 341 # define V8_INT64_C(x) (x ## L) |
342 # endif | 342 # endif |
343 # define V8_INTPTR_C(x) (x ## L) | 343 # define V8_INTPTR_C(x) (x ## L) |
344 # define V8_PTR_PREFIX "l" | 344 # define V8_PTR_PREFIX "l" |
345 #else | 345 #else |
346 # define V8_UINT64_C(x) (x ## ULL) | 346 # define V8_UINT64_C(x) (x ## ULL) |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 } | 409 } |
410 | 410 |
411 template <> | 411 template <> |
412 inline bool is_fundamental<uint8_t>() { | 412 inline bool is_fundamental<uint8_t>() { |
413 return true; | 413 return true; |
414 } | 414 } |
415 } | 415 } |
416 } // namespace v8::base | 416 } // namespace v8::base |
417 | 417 |
418 #endif // V8_BASE_MACROS_H_ | 418 #endif // V8_BASE_MACROS_H_ |
OLD | NEW |