| 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 PLATFORM_GLOBALS_H_ | 5 #ifndef PLATFORM_GLOBALS_H_ |
| 6 #define 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 |
| (...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 643 #else | 643 #else |
| 644 #define PRINTF_ATTRIBUTE(string_index, first_to_check) | 644 #define PRINTF_ATTRIBUTE(string_index, first_to_check) |
| 645 #endif | 645 #endif |
| 646 | 646 |
| 647 #if defined(_WIN32) | 647 #if defined(_WIN32) |
| 648 #define STDIN_FILENO 0 | 648 #define STDIN_FILENO 0 |
| 649 #define STDOUT_FILENO 1 | 649 #define STDOUT_FILENO 1 |
| 650 #define STDERR_FILENO 2 | 650 #define STDERR_FILENO 2 |
| 651 #endif | 651 #endif |
| 652 | 652 |
| 653 // For checking deterministic graph generation, we can store instruction |
| 654 // tag in the ICData and check it when recreating the flow graph in |
| 655 // optimizing compiler. Enable it for other modes (product, release) if needed |
| 656 // for debugging. |
| 657 #if defined(DEBUG) |
| 658 #define TAG_IC_DATA |
| 659 #endif |
| 660 |
| 653 } // namespace dart | 661 } // namespace dart |
| 654 | 662 |
| 655 #endif // PLATFORM_GLOBALS_H_ | 663 #endif // PLATFORM_GLOBALS_H_ |
| OLD | NEW |