| 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 #define DEBUG_ONLY(code) | 131 #define DEBUG_ONLY(code) |
| 132 #else // defined(PRODUCT) | 132 #else // defined(PRODUCT) |
| 133 #define NOT_IN_PRODUCT(code) code | 133 #define NOT_IN_PRODUCT(code) code |
| 134 #if defined(DEBUG) | 134 #if defined(DEBUG) |
| 135 #define DEBUG_ONLY(code) code | 135 #define DEBUG_ONLY(code) code |
| 136 #else // defined(DEBUG) | 136 #else // defined(DEBUG) |
| 137 #define DEBUG_ONLY(code) | 137 #define DEBUG_ONLY(code) |
| 138 #endif // defined(DEBUG) | 138 #endif // defined(DEBUG) |
| 139 #endif // defined(PRODUCT) | 139 #endif // defined(PRODUCT) |
| 140 | 140 |
| 141 | |
| 142 #if defined(DART_PRECOMPILED_RUNTIME) && defined(DART_PRECOMPILER) | 141 #if defined(DART_PRECOMPILED_RUNTIME) && defined(DART_PRECOMPILER) |
| 143 #error DART_PRECOMPILED_RUNTIME and DART_PRECOMPILER are mutually exclusive | 142 #error DART_PRECOMPILED_RUNTIME and DART_PRECOMPILER are mutually exclusive |
| 144 #endif // defined(DART_PRECOMPILED_RUNTIME) && defined(DART_PRECOMPILER) | 143 #endif // defined(DART_PRECOMPILED_RUNTIME) && defined(DART_PRECOMPILER) |
| 145 | 144 |
| 145 #if defined(DART_PRECOMPILED_RUNTIME) |
| 146 #define NOT_IN_PRECOMPILED(code) |
| 147 #else |
| 148 #define NOT_IN_PRECOMPILED(code) code |
| 149 #endif // defined(DART_PRECOMPILED_RUNTIME) |
| 150 |
| 146 namespace dart { | 151 namespace dart { |
| 147 | 152 |
| 148 struct simd128_value_t { | 153 struct simd128_value_t { |
| 149 union { | 154 union { |
| 150 int32_t int_storage[4]; | 155 int32_t int_storage[4]; |
| 151 float float_storage[4]; | 156 float float_storage[4]; |
| 152 double double_storage[2]; | 157 double double_storage[2]; |
| 153 }; | 158 }; |
| 154 simd128_value_t& readFrom(const float* v) { | 159 simd128_value_t& readFrom(const float* v) { |
| 155 float_storage[0] = v[0]; | 160 float_storage[0] = v[0]; |
| (...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 694 // tag in the ICData and check it when recreating the flow graph in | 699 // tag in the ICData and check it when recreating the flow graph in |
| 695 // optimizing compiler. Enable it for other modes (product, release) if needed | 700 // optimizing compiler. Enable it for other modes (product, release) if needed |
| 696 // for debugging. | 701 // for debugging. |
| 697 #if defined(DEBUG) | 702 #if defined(DEBUG) |
| 698 #define TAG_IC_DATA | 703 #define TAG_IC_DATA |
| 699 #endif | 704 #endif |
| 700 | 705 |
| 701 } // namespace dart | 706 } // namespace dart |
| 702 | 707 |
| 703 #endif // PLATFORM_GLOBALS_H_ | 708 #endif // PLATFORM_GLOBALS_H_ |
| OLD | NEW |