| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 #else | 75 #else |
| 76 DEFINE_FLAG(bool, use_vfp, true, "Use vfp instructions if supported"); | 76 DEFINE_FLAG(bool, use_vfp, true, "Use vfp instructions if supported"); |
| 77 DEFINE_FLAG(bool, use_neon, true, "Use neon instructions if supported"); | 77 DEFINE_FLAG(bool, use_neon, true, "Use neon instructions if supported"); |
| 78 DEFINE_FLAG(bool, | 78 DEFINE_FLAG(bool, |
| 79 use_integer_division, | 79 use_integer_division, |
| 80 true, | 80 true, |
| 81 "Use integer division instruction if supported"); | 81 "Use integer division instruction if supported"); |
| 82 #endif | 82 #endif |
| 83 | 83 |
| 84 #if defined(USING_SIMULATOR) | 84 #if defined(USING_SIMULATOR) |
| 85 #if defined(TARGET_ARCH_ARM_5TE) | 85 #if defined(TARGET_ARCH_ARM_5TE) || defined(TARGET_OS_ANDROID) |
| 86 DEFINE_FLAG(bool, sim_use_hardfp, false, "Use the softfp ABI."); | 86 DEFINE_FLAG(bool, sim_use_hardfp, false, "Use the hardfp ABI."); |
| 87 #else | 87 #else |
| 88 DEFINE_FLAG(bool, sim_use_hardfp, true, "Use the softfp ABI."); | 88 DEFINE_FLAG(bool, sim_use_hardfp, true, "Use the hardfp ABI."); |
| 89 #endif | 89 #endif |
| 90 #endif | 90 #endif |
| 91 | 91 |
| 92 void CPU::FlushICache(uword start, uword size) { | 92 void CPU::FlushICache(uword start, uword size) { |
| 93 #if HOST_OS_IOS | 93 #if HOST_OS_IOS |
| 94 // Precompilation never patches code so there should be no I cache flushes. | 94 // Precompilation never patches code so there should be no I cache flushes. |
| 95 UNREACHABLE(); | 95 UNREACHABLE(); |
| 96 #endif | 96 #endif |
| 97 | 97 |
| 98 #if !defined(USING_SIMULATOR) && !HOST_OS_IOS | 98 #if !defined(USING_SIMULATOR) && !HOST_OS_IOS |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 ASSERT(hardware_ != NULL); | 283 ASSERT(hardware_ != NULL); |
| 284 free(const_cast<char*>(hardware_)); | 284 free(const_cast<char*>(hardware_)); |
| 285 hardware_ = NULL; | 285 hardware_ = NULL; |
| 286 CpuInfo::Cleanup(); | 286 CpuInfo::Cleanup(); |
| 287 } | 287 } |
| 288 #endif // !defined(USING_SIMULATOR) | 288 #endif // !defined(USING_SIMULATOR) |
| 289 | 289 |
| 290 } // namespace dart | 290 } // namespace dart |
| 291 | 291 |
| 292 #endif // defined TARGET_ARCH_ARM | 292 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |