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 #include "vm/globals.h" | 5 #include "vm/globals.h" |
6 #if defined(TARGET_ARCH_ARM) | 6 #if defined(TARGET_ARCH_ARM) |
7 | 7 |
8 #include "vm/cpu.h" | 8 #include "vm/cpu.h" |
9 #include "vm/cpu_arm.h" | 9 #include "vm/cpu_arm.h" |
10 | 10 |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 | 141 |
142 #if !defined(USING_SIMULATOR) | 142 #if !defined(USING_SIMULATOR) |
143 #if HOST_OS_IOS | 143 #if HOST_OS_IOS |
144 void HostCPUFeatures::InitOnce() { | 144 void HostCPUFeatures::InitOnce() { |
145 // TODO(24743): Actually check the CPU features and fail if we're missing | 145 // TODO(24743): Actually check the CPU features and fail if we're missing |
146 // something assumed in a precompiled snapshot. | 146 // something assumed in a precompiled snapshot. |
147 hardware_ = ""; | 147 hardware_ = ""; |
148 // When the VM is targetted to ARMv7, pretend that the CPU is ARMv7 even if | 148 // When the VM is targetted to ARMv7, pretend that the CPU is ARMv7 even if |
149 // the CPU is actually AArch64. | 149 // the CPU is actually AArch64. |
150 arm_version_ = ARMv7; | 150 arm_version_ = ARMv7; |
151 // Always assume we have floating point unit since we dont support ARMv6 in | 151 // Always assume we have floating point unit since we don't support ARMv6 in |
152 // this path. | 152 // this path. |
153 vfp_supported_ = FLAG_use_vfp; | 153 vfp_supported_ = FLAG_use_vfp; |
154 integer_division_supported_ = FLAG_use_integer_division; | 154 integer_division_supported_ = FLAG_use_integer_division; |
155 neon_supported_ = FLAG_use_neon; | 155 neon_supported_ = FLAG_use_neon; |
156 hardfp_supported_ = true; | 156 hardfp_supported_ = true; |
157 #if defined(DEBUG) | 157 #if defined(DEBUG) |
158 initialized_ = true; | 158 initialized_ = true; |
159 #endif | 159 #endif |
160 } | 160 } |
161 #else // HOST_OS_IOS | 161 #else // HOST_OS_IOS |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 ASSERT(hardware_ != NULL); | 293 ASSERT(hardware_ != NULL); |
294 free(const_cast<char*>(hardware_)); | 294 free(const_cast<char*>(hardware_)); |
295 hardware_ = NULL; | 295 hardware_ = NULL; |
296 CpuInfo::Cleanup(); | 296 CpuInfo::Cleanup(); |
297 } | 297 } |
298 #endif // !defined(USING_SIMULATOR) | 298 #endif // !defined(USING_SIMULATOR) |
299 | 299 |
300 } // namespace dart | 300 } // namespace dart |
301 | 301 |
302 #endif // defined TARGET_ARCH_ARM | 302 #endif // defined TARGET_ARCH_ARM |
OLD | NEW |