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 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 #define USING_SIMULATOR 1 | 352 #define USING_SIMULATOR 1 |
353 #endif | 353 #endif |
354 | 354 |
355 #elif defined(TARGET_ARCH_DBC) | 355 #elif defined(TARGET_ARCH_DBC) |
356 #define USING_SIMULATOR 1 | 356 #define USING_SIMULATOR 1 |
357 | 357 |
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 |
| 363 // implementations are uniprocessors. |
| 364 #if !defined(TARGET_ARCH_ARM_5TE) |
| 365 #define ARCH_IS_MULTI_CORE 1 |
| 366 #endif |
362 | 367 |
363 // Short form printf format specifiers | 368 // Short form printf format specifiers |
364 #define Pd PRIdPTR | 369 #define Pd PRIdPTR |
365 #define Pu PRIuPTR | 370 #define Pu PRIuPTR |
366 #define Px PRIxPTR | 371 #define Px PRIxPTR |
367 #define Pd64 PRId64 | 372 #define Pd64 PRId64 |
368 #define Pu64 PRIu64 | 373 #define Pu64 PRIu64 |
369 #define Px64 PRIx64 | 374 #define Px64 PRIx64 |
370 | 375 |
371 // Zero-padded pointer | 376 // Zero-padded pointer |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
672 // tag in the ICData and check it when recreating the flow graph in | 677 // tag in the ICData and check it when recreating the flow graph in |
673 // optimizing compiler. Enable it for other modes (product, release) if needed | 678 // optimizing compiler. Enable it for other modes (product, release) if needed |
674 // for debugging. | 679 // for debugging. |
675 #if defined(DEBUG) | 680 #if defined(DEBUG) |
676 #define TAG_IC_DATA | 681 #define TAG_IC_DATA |
677 #endif | 682 #endif |
678 | 683 |
679 } // namespace dart | 684 } // namespace dart |
680 | 685 |
681 #endif // RUNTIME_PLATFORM_GLOBALS_H_ | 686 #endif // RUNTIME_PLATFORM_GLOBALS_H_ |
OLD | NEW |