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 RUNTIME_PLATFORM_GLOBALS_H_ |
6 #define 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 |
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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 #else // defined(PRODUCT) | 129 #else // defined(PRODUCT) |
130 #define NOT_IN_PRODUCT(code) code | 130 #define NOT_IN_PRODUCT(code) code |
131 #if defined(DEBUG) | 131 #if defined(DEBUG) |
132 #define DEBUG_ONLY(code) code | 132 #define DEBUG_ONLY(code) code |
133 #else // defined(DEBUG) | 133 #else // defined(DEBUG) |
134 #define DEBUG_ONLY(code) | 134 #define DEBUG_ONLY(code) |
135 #endif // defined(DEBUG) | 135 #endif // defined(DEBUG) |
136 #endif // defined(PRODUCT) | 136 #endif // defined(PRODUCT) |
137 | 137 |
138 | 138 |
| 139 #if defined(DART_PRECOMPILED_RUNTIME) && defined(DART_PRECOMPILER) |
| 140 #error DART_PRECOMPILED_RUNTIME and DART_PRECOMPILER are mutually exclusive |
| 141 #endif // defined(DART_PRECOMPILED_RUNTIME) && defined(DART_PRECOMPILER) |
| 142 |
139 namespace dart { | 143 namespace dart { |
140 | 144 |
141 struct simd128_value_t { | 145 struct simd128_value_t { |
142 union { | 146 union { |
143 int32_t int_storage[4]; | 147 int32_t int_storage[4]; |
144 float float_storage[4]; | 148 float float_storage[4]; |
145 double double_storage[2]; | 149 double double_storage[2]; |
146 }; | 150 }; |
147 simd128_value_t& readFrom(const float* v) { | 151 simd128_value_t& readFrom(const float* v) { |
148 float_storage[0] = v[0]; | 152 float_storage[0] = v[0]; |
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
667 // For checking deterministic graph generation, we can store instruction | 671 // For checking deterministic graph generation, we can store instruction |
668 // tag in the ICData and check it when recreating the flow graph in | 672 // tag in the ICData and check it when recreating the flow graph in |
669 // optimizing compiler. Enable it for other modes (product, release) if needed | 673 // optimizing compiler. Enable it for other modes (product, release) if needed |
670 // for debugging. | 674 // for debugging. |
671 #if defined(DEBUG) | 675 #if defined(DEBUG) |
672 #define TAG_IC_DATA | 676 #define TAG_IC_DATA |
673 #endif | 677 #endif |
674 | 678 |
675 } // namespace dart | 679 } // namespace dart |
676 | 680 |
677 #endif // PLATFORM_GLOBALS_H_ | 681 #endif // RUNTIME_PLATFORM_GLOBALS_H_ |
OLD | NEW |