| 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 PLATFORM_GLOBALS_H_ |
| 6 #define RUNTIME_PLATFORM_GLOBALS_H_ | 6 #define 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 |
| 11 #define __STDC_FORMAT_MACROS | 11 #define __STDC_FORMAT_MACROS |
| 12 #endif | 12 #endif |
| 13 | 13 |
| 14 #if defined(_WIN32) | 14 #if defined(_WIN32) |
| 15 // Cut down on the amount of stuff that gets included via windows.h. | 15 // Cut down on the amount of stuff that gets included via windows.h. |
| 16 #if !defined(WIN32_LEAN_AND_MEAN) | 16 #if !defined(WIN32_LEAN_AND_MEAN) |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 #else | 358 #else |
| 359 #error Unknown architecture. | 359 #error Unknown architecture. |
| 360 #endif | 360 #endif |
| 361 | 361 |
| 362 // Disable background threads by default on armv5te. The relevant | 362 // Disable background threads by default on armv5te. The relevant |
| 363 // implementations are uniprocessors. | 363 // implementations are uniprocessors. |
| 364 #if !defined(TARGET_ARCH_ARM_5TE) | 364 #if !defined(TARGET_ARCH_ARM_5TE) |
| 365 #define ARCH_IS_MULTI_CORE 1 | 365 #define ARCH_IS_MULTI_CORE 1 |
| 366 #endif | 366 #endif |
| 367 | 367 |
| 368 |
| 369 #if defined(TARGET_ARCH_ARM) |
| 370 #if defined(TARGET_ABI_IOS) && defined(TARGET_ABI_EABI) |
| 371 #error Both TARGET_ABI_IOS and TARGET_ABI_EABI defined. |
| 372 #elif !defined(TARGET_ABI_IOS) && !defined(TARGET_ABI_EABI) |
| 373 #if defined(TARGET_OS_MAC) |
| 374 #define TARGET_ABI_IOS 1 |
| 375 #else |
| 376 #define TARGET_ABI_EABI 1 |
| 377 #endif |
| 378 #endif |
| 379 #endif // TARGET_ARCH_ARM |
| 380 |
| 381 |
| 368 // Short form printf format specifiers | 382 // Short form printf format specifiers |
| 369 #define Pd PRIdPTR | 383 #define Pd PRIdPTR |
| 370 #define Pu PRIuPTR | 384 #define Pu PRIuPTR |
| 371 #define Px PRIxPTR | 385 #define Px PRIxPTR |
| 372 #define Pd64 PRId64 | 386 #define Pd64 PRId64 |
| 373 #define Pu64 PRIu64 | 387 #define Pu64 PRIu64 |
| 374 #define Px64 PRIx64 | 388 #define Px64 PRIx64 |
| 375 | 389 |
| 376 // Zero-padded pointer | 390 // Zero-padded pointer |
| 377 #if defined(ARCH_IS_32_BIT) | 391 #if defined(ARCH_IS_32_BIT) |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 676 // For checking deterministic graph generation, we can store instruction | 690 // For checking deterministic graph generation, we can store instruction |
| 677 // tag in the ICData and check it when recreating the flow graph in | 691 // tag in the ICData and check it when recreating the flow graph in |
| 678 // optimizing compiler. Enable it for other modes (product, release) if needed | 692 // optimizing compiler. Enable it for other modes (product, release) if needed |
| 679 // for debugging. | 693 // for debugging. |
| 680 #if defined(DEBUG) | 694 #if defined(DEBUG) |
| 681 #define TAG_IC_DATA | 695 #define TAG_IC_DATA |
| 682 #endif | 696 #endif |
| 683 | 697 |
| 684 } // namespace dart | 698 } // namespace dart |
| 685 | 699 |
| 686 #endif // RUNTIME_PLATFORM_GLOBALS_H_ | 700 #endif // PLATFORM_GLOBALS_H_ |
| OLD | NEW |