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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 reinterpret_cast<simd_value_t*>(addr)->data_[1] = value.data_[1]; \ | 241 reinterpret_cast<simd_value_t*>(addr)->data_[1] = value.data_[1]; \ |
242 reinterpret_cast<simd_value_t*>(addr)->data_[2] = value.data_[2]; \ | 242 reinterpret_cast<simd_value_t*>(addr)->data_[2] = value.data_[2]; \ |
243 reinterpret_cast<simd_value_t*>(addr)->data_[3] = value.data_[3]; \ | 243 reinterpret_cast<simd_value_t*>(addr)->data_[3] = value.data_[3]; \ |
244 } while (0) | 244 } while (0) |
245 | 245 |
246 #elif defined(__MIPSEL__) | 246 #elif defined(__MIPSEL__) |
247 #define HOST_ARCH_MIPS 1 | 247 #define HOST_ARCH_MIPS 1 |
248 #define ARCH_IS_32_BIT 1 | 248 #define ARCH_IS_32_BIT 1 |
249 #define kFpuRegisterSize 8 | 249 #define kFpuRegisterSize 8 |
250 typedef double fpu_register_t; | 250 typedef double fpu_register_t; |
| 251 #elif defined(__MIPSEB__) |
| 252 #error Big-endian MIPS is not supported by Dart. Try passing -EL to your \ |
| 253 compiler. |
251 #elif defined(__aarch64__) | 254 #elif defined(__aarch64__) |
252 #define HOST_ARCH_ARM64 1 | 255 #define HOST_ARCH_ARM64 1 |
253 #define ARCH_IS_64_BIT 1 | 256 #define ARCH_IS_64_BIT 1 |
254 #define kFpuRegisterSize 16 | 257 #define kFpuRegisterSize 16 |
255 typedef simd128_value_t fpu_register_t; | 258 typedef simd128_value_t fpu_register_t; |
256 #else | 259 #else |
257 #error Architecture was not detected as supported by Dart. | 260 #error Architecture was not detected as supported by Dart. |
258 #endif | 261 #endif |
259 | 262 |
260 // DART_FORCE_INLINE strongly hints to the compiler that a function should | 263 // DART_FORCE_INLINE strongly hints to the compiler that a function should |
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
706 // tag in the ICData and check it when recreating the flow graph in | 709 // tag in the ICData and check it when recreating the flow graph in |
707 // optimizing compiler. Enable it for other modes (product, release) if needed | 710 // optimizing compiler. Enable it for other modes (product, release) if needed |
708 // for debugging. | 711 // for debugging. |
709 #if defined(DEBUG) | 712 #if defined(DEBUG) |
710 #define TAG_IC_DATA | 713 #define TAG_IC_DATA |
711 #endif | 714 #endif |
712 | 715 |
713 } // namespace dart | 716 } // namespace dart |
714 | 717 |
715 #endif // RUNTIME_PLATFORM_GLOBALS_H_ | 718 #endif // RUNTIME_PLATFORM_GLOBALS_H_ |
OLD | NEW |