OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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_ARM64) | 6 #if defined(TARGET_ARCH_ARM64) |
7 | 7 |
8 #include "vm/cpu.h" | 8 #include "vm/cpu.h" |
9 #include "vm/cpu_arm64.h" | 9 #include "vm/cpu_arm64.h" |
10 | 10 |
11 #include "vm/cpuinfo.h" | 11 #include "vm/cpuinfo.h" |
12 #include "vm/simulator.h" | 12 #include "vm/simulator.h" |
13 | 13 |
14 #if !defined(USING_SIMULATOR) | 14 #if !defined(USING_SIMULATOR) |
| 15 #if !defined(HOST_OS_FUCHSIA) |
15 #include <sys/syscall.h> /* NOLINT */ | 16 #include <sys/syscall.h> /* NOLINT */ |
| 17 #endif |
16 #include <unistd.h> /* NOLINT */ | 18 #include <unistd.h> /* NOLINT */ |
17 #endif | 19 #endif |
18 | 20 |
19 namespace dart { | 21 namespace dart { |
20 | 22 |
21 void CPU::FlushICache(uword start, uword size) { | 23 void CPU::FlushICache(uword start, uword size) { |
22 #if HOST_OS_IOS | 24 #if HOST_OS_IOS |
23 // Precompilation never patches code so there should be no I cache flushes. | 25 // Precompilation never patches code so there should be no I cache flushes. |
24 UNREACHABLE(); | 26 UNREACHABLE(); |
25 #endif | 27 #endif |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 ASSERT(hardware_ != NULL); | 103 ASSERT(hardware_ != NULL); |
102 free(const_cast<char*>(hardware_)); | 104 free(const_cast<char*>(hardware_)); |
103 hardware_ = NULL; | 105 hardware_ = NULL; |
104 CpuInfo::Cleanup(); | 106 CpuInfo::Cleanup(); |
105 } | 107 } |
106 #endif // !defined(USING_SIMULATOR) | 108 #endif // !defined(USING_SIMULATOR) |
107 | 109 |
108 } // namespace dart | 110 } // namespace dart |
109 | 111 |
110 #endif // defined TARGET_ARCH_ARM64 | 112 #endif // defined TARGET_ARCH_ARM64 |
OLD | NEW |