OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 ia32 independent of OS goes here. | 5 // CPU specific code for ia32 independent of OS goes here. |
6 | 6 |
7 #ifdef __GNUC__ | 7 #ifdef __GNUC__ |
8 #include "src/third_party/valgrind/valgrind.h" | 8 #include "src/third_party/valgrind/valgrind.h" |
9 #endif | 9 #endif |
10 | 10 |
11 #include "src/v8.h" | |
12 | |
13 #if V8_TARGET_ARCH_IA32 | 11 #if V8_TARGET_ARCH_IA32 |
14 | 12 |
15 #include "src/assembler.h" | 13 #include "src/assembler.h" |
16 #include "src/macro-assembler.h" | 14 #include "src/macro-assembler.h" |
17 | 15 |
18 namespace v8 { | 16 namespace v8 { |
19 namespace internal { | 17 namespace internal { |
20 | 18 |
21 void CpuFeatures::FlushICache(void* start, size_t size) { | 19 void CpuFeatures::FlushICache(void* start, size_t size) { |
22 // No need to flush the instruction cache on Intel. On Intel instruction | 20 // No need to flush the instruction cache on Intel. On Intel instruction |
(...skipping 13 matching lines...) Expand all Loading... |
36 #ifdef VALGRIND_DISCARD_TRANSLATIONS | 34 #ifdef VALGRIND_DISCARD_TRANSLATIONS |
37 unsigned res = VALGRIND_DISCARD_TRANSLATIONS(start, size); | 35 unsigned res = VALGRIND_DISCARD_TRANSLATIONS(start, size); |
38 USE(res); | 36 USE(res); |
39 #endif | 37 #endif |
40 } | 38 } |
41 | 39 |
42 } // namespace internal | 40 } // namespace internal |
43 } // namespace v8 | 41 } // namespace v8 |
44 | 42 |
45 #endif // V8_TARGET_ARCH_IA32 | 43 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |