8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 499e56b commit 93a1a3cCopy full SHA for 93a1a3c
common.gypi
@@ -34,7 +34,7 @@
34
35
# Reset this number to 0 on major V8 upgrades.
36
# Increment by one for each non-official patch applied to deps/v8.
37
- 'v8_embedder_string': '-node.46',
+ 'v8_embedder_string': '-node.47',
38
39
##### V8 defaults for Node.js #####
40
deps/v8/src/base/cpu.cc
@@ -27,6 +27,9 @@
27
#ifndef POWER_9
28
#define POWER_9 0x20000
29
#endif
30
+#ifndef POWER_10
31
+#define POWER_10 0x40000
32
+#endif
33
#if V8_OS_POSIX
#include <unistd.h> // sysconf()
@@ -639,7 +642,10 @@ CPU::CPU()
639
642
640
643
part_ = -1;
641
644
if (auxv_cpu_type) {
- if (strcmp(auxv_cpu_type, "power9") == 0) {
645
+ if (strcmp(auxv_cpu_type, "power10") == 0) {
646
+ part_ = PPC_POWER10;
647
+ }
648
+ else if (strcmp(auxv_cpu_type, "power9") == 0) {
649
part_ = PPC_POWER9;
650
} else if (strcmp(auxv_cpu_type, "power8") == 0) {
651
part_ = PPC_POWER8;
@@ -660,6 +666,9 @@ CPU::CPU()
660
666
661
667
#elif V8_OS_AIX
662
668
switch (_system_configuration.implementation) {
669
+ case POWER_10:
670
671
+ break;
663
672
case POWER_9:
664
673
665
674
break;
deps/v8/src/base/cpu.h
@@ -70,6 +70,7 @@ class V8_BASE_EXPORT CPU final {
70
PPC_POWER7,
71
PPC_POWER8,
72
PPC_POWER9,
73
+ PPC_POWER10,
74
PPC_G4,
75
PPC_G5,
76
PPC_PA6T
deps/v8/src/codegen/ppc/assembler-ppc.cc
@@ -67,21 +67,28 @@ void CpuFeatures::ProbeImpl(bool cross_compile) {
67
#ifndef USE_SIMULATOR
68
// Probe for additional features at runtime.
69
base::CPU cpu;
- if (cpu.part() == base::CPU::PPC_POWER9) {
+ if (cpu.part() == base::CPU::PPC_POWER9 ||
+ cpu.part() == base::CPU::PPC_POWER10) {
supported_ |= (1u << MODULO);
}
#if V8_TARGET_ARCH_PPC64
- if (cpu.part() == base::CPU::PPC_POWER8) {
+ if (cpu.part() == base::CPU::PPC_POWER8 ||
+ cpu.part() == base::CPU::PPC_POWER9 ||
77
78
supported_ |= (1u << FPR_GPR_MOV);
79
80
81
if (cpu.part() == base::CPU::PPC_POWER6 ||
82
cpu.part() == base::CPU::PPC_POWER7 ||
- cpu.part() == base::CPU::PPC_POWER8) {
83
+ cpu.part() == base::CPU::PPC_POWER8 ||
84
85
86
supported_ |= (1u << LWSYNC);
87
88
if (cpu.part() == base::CPU::PPC_POWER7 ||
89
90
91
92
supported_ |= (1u << ISELECT);
93
supported_ |= (1u << VSX);
94