@@ -1422,27 +1422,18 @@ config("toolchain") {
14221422 cflags += [ " -march=z196" ]
14231423 }
14241424 }
1425- if (v8_current_cpu == " ppc" || v8_current_cpu == " ppc64" ) {
1426- if (v8_current_cpu == " ppc" ) {
1427- defines += [ " V8_TARGET_ARCH_PPC" ]
1428- } else if (v8_current_cpu == " ppc64" ) {
1429- defines += [ " V8_TARGET_ARCH_PPC64" ]
1430- cflags += [ " -ffp-contract=off" ]
1431- }
1432- if (host_byteorder == " little" ) {
1433- defines += [ " V8_TARGET_ARCH_PPC_LE" ]
1434- } else if (host_byteorder == " big" ) {
1435- defines += [ " V8_TARGET_ARCH_PPC_BE" ]
1436- if (current_os == " aix" ) {
1437- cflags += [
1438- # Work around AIX ceil, trunc and round oddities.
1439- " -mcpu=power5+" ,
1440- " -mfprnd" ,
1441-
1442- # Work around AIX assembler popcntb bug.
1443- " -mno-popcntb" ,
1444- ]
1445- }
1425+ if (v8_current_cpu == " ppc64" ) {
1426+ defines += [ " V8_TARGET_ARCH_PPC64" ]
1427+ cflags += [ " -ffp-contract=off" ]
1428+ if (current_os == " aix" ) {
1429+ cflags += [
1430+ # Work around AIX ceil, trunc and round oddities.
1431+ " -mcpu=power5+" ,
1432+ " -mfprnd" ,
1433+
1434+ # Work around AIX assembler popcntb bug.
1435+ " -mno-popcntb" ,
1436+ ]
14461437 }
14471438 }
14481439
@@ -3029,11 +3020,6 @@ v8_source_set("v8_initializers") {
30293020 # ## gcmole(loong64) ###
30303021 " src/builtins/loong64/builtins-loong64.cc" ,
30313022 ]
3032- } else if (v8_current_cpu == " ppc" ) {
3033- sources += [
3034- # ## gcmole(ppc) ###
3035- " src/builtins/ppc/builtins-ppc.cc" ,
3036- ]
30373023 } else if (v8_current_cpu == " ppc64" ) {
30383024 sources += [
30393025 # ## gcmole(ppc64) ###
@@ -4706,23 +4692,6 @@ v8_header_set("v8_internal_headers") {
47064692 sources += [ " src/trap-handler/trap-handler-simulator.h" ]
47074693 }
47084694 }
4709- } else if (v8_current_cpu == " ppc" ) {
4710- sources += [
4711- # ## gcmole(ppc) ###
4712- " src/codegen/ppc/assembler-ppc-inl.h" ,
4713- " src/codegen/ppc/assembler-ppc.h" ,
4714- " src/codegen/ppc/constants-ppc.h" ,
4715- " src/codegen/ppc/interface-descriptors-ppc-inl.h" ,
4716- " src/codegen/ppc/macro-assembler-ppc.h" ,
4717- " src/codegen/ppc/register-ppc.h" ,
4718- " src/codegen/ppc/reglist-ppc.h" ,
4719- " src/compiler/backend/ppc/instruction-codes-ppc.h" ,
4720- " src/compiler/backend/ppc/unwinding-info-writer-ppc.h" ,
4721- " src/execution/ppc/frame-constants-ppc.h" ,
4722- " src/execution/ppc/simulator-ppc.h" ,
4723- " src/regexp/ppc/regexp-macro-assembler-ppc.h" ,
4724- " src/wasm/baseline/ppc/liftoff-assembler-ppc-inl.h" ,
4725- ]
47264695 } else if (v8_current_cpu == " ppc64" ) {
47274696 sources += [
47284697 # ## gcmole(ppc64) ###
@@ -5060,14 +5029,6 @@ if (v8_current_cpu == "x86") {
50605029 " src/compiler/backend/loong64/instruction-scheduler-loong64.cc" ,
50615030 " src/compiler/backend/loong64/instruction-selector-loong64.cc" ,
50625031 ]
5063- } else if (v8_current_cpu == " ppc" ) {
5064- v8_compiler_sources += [
5065- # ## gcmole(ppc) ###
5066- " src/compiler/backend/ppc/code-generator-ppc.cc" ,
5067- " src/compiler/backend/ppc/instruction-scheduler-ppc.cc" ,
5068- " src/compiler/backend/ppc/instruction-selector-ppc.cc" ,
5069- " src/compiler/backend/ppc/unwinding-info-writer-ppc.cc" ,
5070- ]
50715032} else if (v8_current_cpu == " ppc64" ) {
50725033 v8_compiler_sources += [
50735034 # ## gcmole(ppc64) ###
@@ -6094,21 +6055,6 @@ v8_source_set("v8_base_without_compiler") {
60946055 sources += [ " src/trap-handler/handler-outside-simulator.cc" ]
60956056 }
60966057 }
6097- } else if (v8_current_cpu == " ppc" ) {
6098- sources += [
6099- # ## gcmole(ppc) ###
6100- " src/codegen/ppc/assembler-ppc.cc" ,
6101- " src/codegen/ppc/constants-ppc.cc" ,
6102- " src/codegen/ppc/cpu-ppc.cc" ,
6103- " src/codegen/ppc/macro-assembler-ppc.cc" ,
6104- " src/deoptimizer/ppc/deoptimizer-ppc.cc" ,
6105- " src/diagnostics/ppc/disasm-ppc.cc" ,
6106- " src/diagnostics/ppc/eh-frame-ppc.cc" ,
6107- " src/diagnostics/ppc/unwinder-ppc.cc" ,
6108- " src/execution/ppc/frame-constants-ppc.cc" ,
6109- " src/execution/ppc/simulator-ppc.cc" ,
6110- " src/regexp/ppc/regexp-macro-assembler-ppc.cc" ,
6111- ]
61126058 } else if (v8_current_cpu == " ppc64" ) {
61136059 sources += [
61146060 # ## gcmole(ppc64) ###
@@ -6299,7 +6245,7 @@ v8_source_set("v8_base_without_compiler") {
62996245 # Platforms that don't have CAS support need to link atomic library
63006246 # to implement atomic memory access
63016247 if (v8_current_cpu == " mips64" || v8_current_cpu == " mips64el" ||
6302- v8_current_cpu == " ppc " || v8_current_cpu == " ppc64" ||
6248+ v8_current_cpu == " ppc64" ||
63036249 (current_os != " zos" &&
63046250 (v8_current_cpu == " s390" || v8_current_cpu == " s390x" )) ||
63056251 v8_current_cpu == " riscv64" || v8_current_cpu == " riscv32" ) {
0 commit comments