OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 #include "cpu.h" | 5 #include "src/cpu.h" |
6 | 6 |
7 #if V8_LIBC_MSVCRT | 7 #if V8_LIBC_MSVCRT |
8 #include <intrin.h> // __cpuid() | 8 #include <intrin.h> // __cpuid() |
9 #endif | 9 #endif |
10 #if V8_OS_POSIX | 10 #if V8_OS_POSIX |
11 #include <unistd.h> // sysconf() | 11 #include <unistd.h> // sysconf() |
12 #endif | 12 #endif |
13 #if V8_OS_QNX | 13 #if V8_OS_QNX |
14 #include <sys/syspage.h> // cpuinfo | 14 #include <sys/syspage.h> // cpuinfo |
15 #endif | 15 #endif |
16 | 16 |
17 #include <ctype.h> | 17 #include <ctype.h> |
18 #include <limits.h> | 18 #include <limits.h> |
19 #include <stdio.h> | 19 #include <stdio.h> |
20 #include <stdlib.h> | 20 #include <stdlib.h> |
21 #include <string.h> | 21 #include <string.h> |
22 #include <algorithm> | 22 #include <algorithm> |
23 | 23 |
24 #include "checks.h" | 24 #include "src/checks.h" |
25 #if V8_OS_WIN | 25 #if V8_OS_WIN |
26 #include "win32-headers.h" | 26 #include "src/win32-headers.h" |
27 #endif | 27 #endif |
28 | 28 |
29 namespace v8 { | 29 namespace v8 { |
30 namespace internal { | 30 namespace internal { |
31 | 31 |
32 #if V8_HOST_ARCH_IA32 || V8_HOST_ARCH_X64 | 32 #if V8_HOST_ARCH_IA32 || V8_HOST_ARCH_X64 |
33 | 33 |
34 // Define __cpuid() for non-MSVC libraries. | 34 // Define __cpuid() for non-MSVC libraries. |
35 #if !V8_LIBC_MSVCRT | 35 #if !V8_LIBC_MSVCRT |
36 | 36 |
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
490 if (end == part) { | 490 if (end == part) { |
491 part_ = 0; | 491 part_ = 0; |
492 } | 492 } |
493 delete[] part; | 493 delete[] part; |
494 } | 494 } |
495 | 495 |
496 #endif | 496 #endif |
497 } | 497 } |
498 | 498 |
499 } } // namespace v8::internal | 499 } } // namespace v8::internal |
OLD | NEW |