| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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/assembler.h" | 8 #include "vm/assembler.h" |
| 9 #include "vm/longjump.h" | 9 #include "vm/longjump.h" |
| 10 #include "vm/runtime_entry.h" | 10 #include "vm/runtime_entry.h" |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 | 93 |
| 94 | 94 |
| 95 void CPUFeatures::InitOnce() { | 95 void CPUFeatures::InitOnce() { |
| 96 #if defined(USING_SIMULATOR) | 96 #if defined(USING_SIMULATOR) |
| 97 integer_division_supported_ = true; | 97 integer_division_supported_ = true; |
| 98 neon_supported_ = true; | 98 neon_supported_ = true; |
| 99 #else | 99 #else |
| 100 ASSERT(CPUInfoContainsString("ARMv7")); // Implements ARMv7. | 100 ASSERT(CPUInfoContainsString("ARMv7")); // Implements ARMv7. |
| 101 ASSERT(CPUInfoContainsString("vfp")); // Has floating point unit. | 101 ASSERT(CPUInfoContainsString("vfp")); // Has floating point unit. |
| 102 // Has integer division. | 102 // Has integer division. |
| 103 integer_division_supported_ = CPUInfoContainsString("idiva"); | 103 if (CPUInfoContainsString("QCT APQ8064")) { |
| 104 // Special case for Qualcomm Krait CPUs in Nexus 4 and 7. |
| 105 integer_division_supported_ = true; |
| 106 } else { |
| 107 integer_division_supported_ = CPUInfoContainsString("idiva"); |
| 108 } |
| 104 neon_supported_ = CPUInfoContainsString("neon"); | 109 neon_supported_ = CPUInfoContainsString("neon"); |
| 105 #endif // defined(USING_SIMULATOR) | 110 #endif // defined(USING_SIMULATOR) |
| 106 #if defined(DEBUG) | 111 #if defined(DEBUG) |
| 107 initialized_ = true; | 112 initialized_ = true; |
| 108 #endif | 113 #endif |
| 109 } | 114 } |
| 110 | 115 |
| 111 | 116 |
| 112 // Instruction encoding bits. | 117 // Instruction encoding bits. |
| 113 enum { | 118 enum { |
| (...skipping 2621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2735 | 2740 |
| 2736 const char* Assembler::FpuRegisterName(FpuRegister reg) { | 2741 const char* Assembler::FpuRegisterName(FpuRegister reg) { |
| 2737 ASSERT((0 <= reg) && (reg < kNumberOfFpuRegisters)); | 2742 ASSERT((0 <= reg) && (reg < kNumberOfFpuRegisters)); |
| 2738 return fpu_reg_names[reg]; | 2743 return fpu_reg_names[reg]; |
| 2739 } | 2744 } |
| 2740 | 2745 |
| 2741 } // namespace dart | 2746 } // namespace dart |
| 2742 | 2747 |
| 2743 #endif // defined TARGET_ARCH_ARM | 2748 #endif // defined TARGET_ARCH_ARM |
| 2744 | 2749 |
| OLD | NEW |