Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(108)

Side by Side Diff: src/base/cpu.cc

Issue 2637213002: AIX: Define Power9 macro (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "src/base/cpu.h" 5 #include "src/base/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_LINUX 10 #if V8_OS_LINUX
11 #include <linux/auxvec.h> // AT_HWCAP 11 #include <linux/auxvec.h> // AT_HWCAP
12 #endif 12 #endif
13 #if V8_GLIBC_PREREQ(2, 16) 13 #if V8_GLIBC_PREREQ(2, 16)
14 #include <sys/auxv.h> // getauxval() 14 #include <sys/auxv.h> // getauxval()
15 #endif 15 #endif
16 #if V8_OS_QNX 16 #if V8_OS_QNX
17 #include <sys/syspage.h> // cpuinfo 17 #include <sys/syspage.h> // cpuinfo
18 #endif 18 #endif
19 #if V8_OS_LINUX && V8_HOST_ARCH_PPC 19 #if V8_OS_LINUX && V8_HOST_ARCH_PPC
20 #include <elf.h> 20 #include <elf.h>
21 #endif 21 #endif
22 #if V8_OS_AIX 22 #if V8_OS_AIX
23 #include <sys/systemcfg.h> // _system_configuration 23 #include <sys/systemcfg.h> // _system_configuration
24 #ifndef POWER_8 24 #ifndef POWER_8
25 #define POWER_8 0x10000 25 #define POWER_8 0x10000
26 #endif 26 #endif
27 #ifndef POWER_9
28 #define POWER_9 0x20000
29 #endif
27 #endif 30 #endif
28 #if V8_OS_POSIX 31 #if V8_OS_POSIX
29 #include <unistd.h> // sysconf() 32 #include <unistd.h> // sysconf()
30 #endif 33 #endif
31 34
32 #include <ctype.h> 35 #include <ctype.h>
33 #include <limits.h> 36 #include <limits.h>
34 #include <stdio.h> 37 #include <stdio.h>
35 #include <stdlib.h> 38 #include <stdlib.h>
36 #include <string.h> 39 #include <string.h>
(...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after
707 part_ = PPC_POWER5; 710 part_ = PPC_POWER5;
708 break; 711 break;
709 } 712 }
710 #endif // V8_OS_AIX 713 #endif // V8_OS_AIX
711 #endif // !USE_SIMULATOR 714 #endif // !USE_SIMULATOR
712 #endif // V8_HOST_ARCH_PPC 715 #endif // V8_HOST_ARCH_PPC
713 } 716 }
714 717
715 } // namespace base 718 } // namespace base
716 } // namespace v8 719 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698