OLD | NEW |
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // CPU specific code for arm independent of OS goes here. | 5 // CPU specific code for arm independent of OS goes here. |
6 #ifdef __arm__ | 6 #ifdef __arm__ |
7 #ifdef __QNXNTO__ | 7 #ifdef __QNXNTO__ |
8 #include <sys/mman.h> // for cache flushing. | 8 #include <sys/mman.h> // for cache flushing. |
9 #undef MAP_TYPE | 9 #undef MAP_TYPE |
10 #else | 10 #else |
11 #include <sys/syscall.h> // for cache flushing. | 11 #include <sys/syscall.h> // for cache flushing. |
12 #endif | 12 #endif |
13 #endif | 13 #endif |
14 | 14 |
15 #include "v8.h" | 15 #include "src/v8.h" |
16 | 16 |
17 #if V8_TARGET_ARCH_ARM | 17 #if V8_TARGET_ARCH_ARM |
18 | 18 |
19 #include "cpu.h" | 19 #include "src/cpu.h" |
20 #include "macro-assembler.h" | 20 #include "src/macro-assembler.h" |
21 #include "simulator.h" // for cache flushing. | 21 #include "src/simulator.h" // for cache flushing. |
22 | 22 |
23 namespace v8 { | 23 namespace v8 { |
24 namespace internal { | 24 namespace internal { |
25 | 25 |
26 void CPU::FlushICache(void* start, size_t size) { | 26 void CPU::FlushICache(void* start, size_t size) { |
27 // Nothing to do flushing no instructions. | 27 // Nothing to do flushing no instructions. |
28 if (size == 0) { | 28 if (size == 0) { |
29 return; | 29 return; |
30 } | 30 } |
31 | 31 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 : "=r" (beg) | 76 : "=r" (beg) |
77 : "0" (beg), "r" (end), "r" (flg), "r" (__ARM_NR_cacheflush) | 77 : "0" (beg), "r" (end), "r" (flg), "r" (__ARM_NR_cacheflush) |
78 : "r3"); | 78 : "r3"); |
79 #endif | 79 #endif |
80 #endif | 80 #endif |
81 } | 81 } |
82 | 82 |
83 } } // namespace v8::internal | 83 } } // namespace v8::internal |
84 | 84 |
85 #endif // V8_TARGET_ARCH_ARM | 85 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |