@@ -1416,14 +1416,11 @@ config("toolchain") {
14161416 defines += [ " V8_TARGET_ARCH_LOONG64" ]
14171417 }
14181418
1419- if (v8_current_cpu == " s390" || v8_current_cpu == " s390x" ) {
1420- defines += [ " V8_TARGET_ARCH_S390" ]
1419+ if (v8_current_cpu == " s390x" ) {
14211420 cflags += [ " -ffp-contract=off" ]
1422- if (v8_current_cpu == " s390x" ) {
1423- defines += [ " V8_TARGET_ARCH_S390X" ]
1424- }
1421+ defines += [ " V8_TARGET_ARCH_S390X" ]
14251422 if (host_byteorder == " little" ) {
1426- defines += [ " V8_TARGET_ARCH_S390_LE_SIM " ]
1423+ defines += [ " V8_TARGET_ARCH_S390X_LE_SIM " ]
14271424 } else if (current_os != " zos" ) {
14281425 cflags += [ " -march=z196" ]
14291426 }
@@ -3086,7 +3083,7 @@ v8_source_set("v8_initializers") {
30863083 # ## gcmole(ppc64) ###
30873084 " src/builtins/ppc/builtins-ppc.cc" ,
30883085 ]
3089- } else if (v8_current_cpu == " s390 " || v8_current_cpu == " s390x" ) {
3086+ } else if (v8_current_cpu == " s390x" ) {
30903087 sources += [
30913088 # ## gcmole(s390) ###
30923089 " src/builtins/s390/builtins-s390.cc" ,
@@ -4781,7 +4778,7 @@ v8_header_set("v8_internal_headers") {
47814778 " src/baseline/ppc/baseline-compiler-ppc-inl.h" ,
47824779 ]
47834780 }
4784- } else if (v8_current_cpu == " s390 " || v8_current_cpu == " s390x" ) {
4781+ } else if (v8_current_cpu == " s390x" ) {
47854782 sources += [
47864783 # ## gcmole(s390) ###
47874784 " src/codegen/s390/assembler-s390-inl.h" ,
@@ -5103,7 +5100,7 @@ if (v8_current_cpu == "x86") {
51035100 " src/compiler/backend/ppc/instruction-selector-ppc.cc" ,
51045101 " src/compiler/backend/ppc/unwinding-info-writer-ppc.cc" ,
51055102 ]
5106- } else if (v8_current_cpu == " s390 " || v8_current_cpu == " s390x" ) {
5103+ } else if (v8_current_cpu == " s390x" ) {
51075104 v8_compiler_sources += [
51085105 # ## gcmole(s390) ###
51095106 " src/compiler/backend/s390/code-generator-s390.cc" ,
@@ -6139,7 +6136,7 @@ v8_source_set("v8_base_without_compiler") {
61396136 " src/execution/ppc/simulator-ppc.cc" ,
61406137 " src/regexp/ppc/regexp-macro-assembler-ppc.cc" ,
61416138 ]
6142- } else if (v8_current_cpu == " s390 " || v8_current_cpu == " s390x" ) {
6139+ } else if (v8_current_cpu == " s390x" ) {
61436140 sources += [
61446141 # ## gcmole(s390) ###
61456142 " src/codegen/s390/assembler-s390.cc" ,
@@ -6315,8 +6312,7 @@ v8_source_set("v8_base_without_compiler") {
63156312 # to implement atomic memory access
63166313 if (v8_current_cpu == " mips64" || v8_current_cpu == " mips64el" ||
63176314 v8_current_cpu == " ppc64" ||
6318- (current_os != " zos" &&
6319- (v8_current_cpu == " s390" || v8_current_cpu == " s390x" )) ||
6315+ (current_os != " zos" && v8_current_cpu == " s390x" ) ||
63206316 v8_current_cpu == " riscv64" || v8_current_cpu == " riscv32" ) {
63216317 if (! is_clang ) {
63226318 libs += [ " atomic" ]
0 commit comments