OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium 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 import("//build/config/android/config.gni") | 5 import("//build/config/android/config.gni") |
6 import("//build/config/arm.gni") | 6 import("//build/config/arm.gni") |
7 import("//build/config/dcheck_always_on.gni") | 7 import("//build/config/dcheck_always_on.gni") |
8 import("//build/config/host_byteorder.gni") | 8 import("//build/config/host_byteorder.gni") |
9 import("//build/config/mips.gni") | 9 import("//build/config/mips.gni") |
10 import("//build/config/sanitizers/sanitizers.gni") | 10 import("//build/config/sanitizers/sanitizers.gni") |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 if (v8_current_cpu == "arm64") { | 320 if (v8_current_cpu == "arm64") { |
321 defines += [ "V8_TARGET_ARCH_ARM64" ] | 321 defines += [ "V8_TARGET_ARCH_ARM64" ] |
322 } | 322 } |
323 | 323 |
324 # Mips64el/mipsel simulators. | 324 # Mips64el/mipsel simulators. |
325 if (is_target_simulator && | 325 if (is_target_simulator && |
326 (v8_current_cpu == "mipsel" || v8_current_cpu == "mips64el")) { | 326 (v8_current_cpu == "mipsel" || v8_current_cpu == "mips64el")) { |
327 defines += [ "_MIPS_TARGET_SIMULATOR" ] | 327 defines += [ "_MIPS_TARGET_SIMULATOR" ] |
328 } | 328 } |
329 | 329 |
330 # TODO(jochen): Add support for mips. | 330 if (v8_current_cpu == "mipsel" || v8_current_cpu == "mips") { |
331 if (v8_current_cpu == "mipsel") { | |
332 defines += [ "V8_TARGET_ARCH_MIPS" ] | 331 defines += [ "V8_TARGET_ARCH_MIPS" ] |
333 if (v8_can_use_fpu_instructions) { | 332 if (v8_can_use_fpu_instructions) { |
334 defines += [ "CAN_USE_FPU_INSTRUCTIONS" ] | 333 defines += [ "CAN_USE_FPU_INSTRUCTIONS" ] |
335 } | 334 } |
336 if (v8_use_mips_abi_hardfloat) { | 335 if (v8_use_mips_abi_hardfloat) { |
337 defines += [ | 336 defines += [ |
338 "__mips_hard_float=1", | 337 "__mips_hard_float=1", |
339 "CAN_USE_FPU_INSTRUCTIONS", | 338 "CAN_USE_FPU_INSTRUCTIONS", |
340 ] | 339 ] |
341 } else { | 340 } else { |
(...skipping 13 matching lines...) Expand all Loading... |
355 } else if (mips_fpu_mode == "fp32") { | 354 } else if (mips_fpu_mode == "fp32") { |
356 defines += [ "FPU_MODE_FP32" ] | 355 defines += [ "FPU_MODE_FP32" ] |
357 } | 356 } |
358 } else if (mips_arch_variant == "r1") { | 357 } else if (mips_arch_variant == "r1") { |
359 defines += [ "FPU_MODE_FP32" ] | 358 defines += [ "FPU_MODE_FP32" ] |
360 } | 359 } |
361 | 360 |
362 # TODO(jochen): Add support for mips_arch_variant rx and loongson. | 361 # TODO(jochen): Add support for mips_arch_variant rx and loongson. |
363 } | 362 } |
364 | 363 |
365 # TODO(jochen): Add support for mips64. | 364 if (v8_current_cpu == "mips64el" || v8_current_cpu == "mips64") { |
366 if (v8_current_cpu == "mips64el") { | |
367 defines += [ "V8_TARGET_ARCH_MIPS64" ] | 365 defines += [ "V8_TARGET_ARCH_MIPS64" ] |
368 if (v8_can_use_fpu_instructions) { | 366 if (v8_can_use_fpu_instructions) { |
369 defines += [ "CAN_USE_FPU_INSTRUCTIONS" ] | 367 defines += [ "CAN_USE_FPU_INSTRUCTIONS" ] |
370 } | 368 } |
371 | 369 |
372 # TODO(jochen): Add support for big endian host byteorder. | 370 if (host_byteorder == "little") { |
373 defines += [ "V8_TARGET_ARCH_MIPS64_LE" ] | 371 defines += [ "V8_TARGET_ARCH_MIPS64_LE" ] |
| 372 } else if (host_byteorder == "big") { |
| 373 defines += [ "V8_TARGET_ARCH_MIPS64_BE" ] |
| 374 } |
374 if (v8_use_mips_abi_hardfloat) { | 375 if (v8_use_mips_abi_hardfloat) { |
375 defines += [ | 376 defines += [ |
376 "__mips_hard_float=1", | 377 "__mips_hard_float=1", |
377 "CAN_USE_FPU_INSTRUCTIONS", | 378 "CAN_USE_FPU_INSTRUCTIONS", |
378 ] | 379 ] |
379 } else { | 380 } else { |
380 defines += [ "__mips_soft_float=1" ] | 381 defines += [ "__mips_soft_float=1" ] |
381 } | 382 } |
382 if (mips_arch_variant == "r6") { | 383 if (mips_arch_variant == "r6") { |
383 defines += [ "_MIPS_ARCH_MIPS64R6" ] | 384 defines += [ "_MIPS_ARCH_MIPS64R6" ] |
(...skipping 2930 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3314 ] | 3315 ] |
3315 | 3316 |
3316 configs = [ | 3317 configs = [ |
3317 ":external_config", | 3318 ":external_config", |
3318 ":internal_config_base", | 3319 ":internal_config_base", |
3319 ] | 3320 ] |
3320 } | 3321 } |
3321 | 3322 |
3322 v8_fuzzer("wasm_compile_fuzzer") { | 3323 v8_fuzzer("wasm_compile_fuzzer") { |
3323 } | 3324 } |
OLD | NEW |