OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #ifndef RUNTIME_PLATFORM_GLOBALS_H_ | 5 #ifndef RUNTIME_PLATFORM_GLOBALS_H_ |
6 #define RUNTIME_PLATFORM_GLOBALS_H_ | 6 #define RUNTIME_PLATFORM_GLOBALS_H_ |
7 | 7 |
8 // __STDC_FORMAT_MACROS has to be defined before including <inttypes.h> to | 8 // __STDC_FORMAT_MACROS has to be defined before including <inttypes.h> to |
9 // enable platform independent printf format specifiers. | 9 // enable platform independent printf format specifiers. |
10 #ifndef __STDC_FORMAT_MACROS | 10 #ifndef __STDC_FORMAT_MACROS |
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
378 #define TARGET_OS_WINDOWS 1 | 378 #define TARGET_OS_WINDOWS 1 |
379 #else | 379 #else |
380 #error Automatic target OS detection failed. | 380 #error Automatic target OS detection failed. |
381 #endif | 381 #endif |
382 #endif | 382 #endif |
383 | 383 |
384 // Short form printf format specifiers | 384 // Short form printf format specifiers |
385 #define Pd PRIdPTR | 385 #define Pd PRIdPTR |
386 #define Pu PRIuPTR | 386 #define Pu PRIuPTR |
387 #define Px PRIxPTR | 387 #define Px PRIxPTR |
| 388 #define PX PRIXPTR |
388 #define Pd64 PRId64 | 389 #define Pd64 PRId64 |
389 #define Pu64 PRIu64 | 390 #define Pu64 PRIu64 |
390 #define Px64 PRIx64 | 391 #define Px64 PRIx64 |
| 392 #define PX64 PRIX64 |
391 | 393 |
392 // Zero-padded pointer | 394 // Zero-padded pointer |
393 #if defined(ARCH_IS_32_BIT) | 395 #if defined(ARCH_IS_32_BIT) |
394 #define Pp "08" PRIxPTR | 396 #define Pp "08" PRIxPTR |
395 #else | 397 #else |
396 #define Pp "016" PRIxPTR | 398 #define Pp "016" PRIxPTR |
397 #endif | 399 #endif |
398 | 400 |
399 // Suffixes for 64-bit integer literals. | 401 // Suffixes for 64-bit integer literals. |
400 #ifdef _MSC_VER | 402 #ifdef _MSC_VER |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
704 // tag in the ICData and check it when recreating the flow graph in | 706 // tag in the ICData and check it when recreating the flow graph in |
705 // optimizing compiler. Enable it for other modes (product, release) if needed | 707 // optimizing compiler. Enable it for other modes (product, release) if needed |
706 // for debugging. | 708 // for debugging. |
707 #if defined(DEBUG) | 709 #if defined(DEBUG) |
708 #define TAG_IC_DATA | 710 #define TAG_IC_DATA |
709 #endif | 711 #endif |
710 | 712 |
711 } // namespace dart | 713 } // namespace dart |
712 | 714 |
713 #endif // RUNTIME_PLATFORM_GLOBALS_H_ | 715 #endif // RUNTIME_PLATFORM_GLOBALS_H_ |
OLD | NEW |