| 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 reinterpret_cast<simd_value_t *>(addr)->data_[1] = value.data_[1]; \ | 160 reinterpret_cast<simd_value_t *>(addr)->data_[1] = value.data_[1]; \ |
| 161 reinterpret_cast<simd_value_t *>(addr)->data_[2] = value.data_[2]; \ | 161 reinterpret_cast<simd_value_t *>(addr)->data_[2] = value.data_[2]; \ |
| 162 reinterpret_cast<simd_value_t *>(addr)->data_[3] = value.data_[3]; \ | 162 reinterpret_cast<simd_value_t *>(addr)->data_[3] = value.data_[3]; \ |
| 163 } while (0) | 163 } while (0) |
| 164 | 164 |
| 165 #elif defined(__MIPSEL__) | 165 #elif defined(__MIPSEL__) |
| 166 #define HOST_ARCH_MIPS 1 | 166 #define HOST_ARCH_MIPS 1 |
| 167 #define ARCH_IS_32_BIT 1 | 167 #define ARCH_IS_32_BIT 1 |
| 168 #define kFpuRegisterSize 8 | 168 #define kFpuRegisterSize 8 |
| 169 typedef double fpu_register_t; | 169 typedef double fpu_register_t; |
| 170 #elif defined(__aarch64__) |
| 171 #define HOST_ARCH_ARM64 1 |
| 172 #define ARCH_IS_64_BIT 1 |
| 173 #define kFpuRegisterSize 16 |
| 174 typedef simd128_value_t fpu_register_t; |
| 170 #else | 175 #else |
| 171 #error Architecture was not detected as supported by Dart. | 176 #error Architecture was not detected as supported by Dart. |
| 172 #endif | 177 #endif |
| 173 | 178 |
| 174 // DART_FORCE_INLINE strongly hints to the compiler that a function should | 179 // DART_FORCE_INLINE strongly hints to the compiler that a function should |
| 175 // be inlined. Your function is not guaranteed to be inlined but this is | 180 // be inlined. Your function is not guaranteed to be inlined but this is |
| 176 // stronger than just using "inline". | 181 // stronger than just using "inline". |
| 177 // See: http://msdn.microsoft.com/en-us/library/z8y1yy88.aspx for an | 182 // See: http://msdn.microsoft.com/en-us/library/z8y1yy88.aspx for an |
| 178 // explanation of some the cases when a function can never be inlined. | 183 // explanation of some the cases when a function can never be inlined. |
| 179 #ifdef _MSC_VER | 184 #ifdef _MSC_VER |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 496 // N.B.: As the GCC manual states, "[s]ince non-static C++ methods | 501 // N.B.: As the GCC manual states, "[s]ince non-static C++ methods |
| 497 // have an implicit 'this' argument, the arguments of such methods | 502 // have an implicit 'this' argument, the arguments of such methods |
| 498 // should be counted from two, not one." | 503 // should be counted from two, not one." |
| 499 #define PRINTF_ATTRIBUTE(string_index, first_to_check) \ | 504 #define PRINTF_ATTRIBUTE(string_index, first_to_check) \ |
| 500 __attribute__((__format__(__printf__, string_index, first_to_check))) | 505 __attribute__((__format__(__printf__, string_index, first_to_check))) |
| 501 #else | 506 #else |
| 502 #define PRINTF_ATTRIBUTE(string_index, first_to_check) | 507 #define PRINTF_ATTRIBUTE(string_index, first_to_check) |
| 503 #endif | 508 #endif |
| 504 | 509 |
| 505 #endif // PLATFORM_GLOBALS_H_ | 510 #endif // PLATFORM_GLOBALS_H_ |
| OLD | NEW |