Chromium Code Reviews| 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/mips.gni") | 7 import("//build/config/mips.gni") |
| 8 | 8 |
| 9 # Because standalone V8 builds are not supported, assume this is part of a | 9 # Because standalone V8 builds are not supported, assume this is part of a |
| 10 # Chromium build. | 10 # Chromium build. |
| 11 import("//build/module_args/v8.gni") | 11 import("//build/module_args/v8.gni") |
| 12 | 12 |
| 13 # TODO(jochen): These will need to be user-settable to support standalone V8 | 13 # TODO(jochen): These will need to be user-settable to support standalone V8 |
| 14 # builds. | 14 # builds. |
| 15 v8_deprecation_warnings = false | 15 v8_deprecation_warnings = false |
| 16 v8_enable_disassembler = false | 16 v8_enable_disassembler = false |
| 17 v8_enable_gdbjit = false | 17 v8_enable_gdbjit = false |
| 18 v8_enable_handle_zapping = true | 18 v8_enable_handle_zapping = true |
| 19 v8_enable_i18n_support = true | 19 v8_enable_i18n_support = true |
| 20 v8_enable_verify_heap = false | 20 v8_enable_verify_heap = false |
| 21 v8_interpreted_regexp = false | 21 v8_interpreted_regexp = false |
| 22 v8_object_print = false | 22 v8_object_print = false |
| 23 v8_postmortem_support = false | 23 v8_postmortem_support = false |
| 24 v8_use_snapshot = true | 24 v8_use_snapshot = true |
| 25 v8_target_arch = target_cpu | |
| 26 v8_random_seed = "314159265" | 25 v8_random_seed = "314159265" |
| 27 v8_toolset_for_d8 = "host" | 26 v8_toolset_for_d8 = "host" |
| 28 | 27 |
| 28 if (is_msan) { | |
|
adamk
2015/09/01 21:48:32
Why is this arm64 only? My gyp-fu is weak, but I d
| |
| 29 v8_target_arch = "arm64" | |
| 30 } else { | |
| 31 v8_target_arch = target_cpu | |
| 32 } | |
| 33 | |
| 29 # The snapshot needs to be compiled for the host, but compiled with | 34 # The snapshot needs to be compiled for the host, but compiled with |
| 30 # a toolchain that matches the bit-width of the target. | 35 # a toolchain that matches the bit-width of the target. |
| 31 # | 36 # |
| 32 # TODO(GYP): For now we only support 32-bit little-endian target builds from an | 37 # TODO(GYP): For now we only support 32-bit little-endian target builds from an |
| 33 # x64 Linux host. Eventually we need to support all of the host/target | 38 # x64 Linux host. Eventually we need to support all of the host/target |
| 34 # configurations v8 runs on. | 39 # configurations v8 runs on. |
| 35 if (host_cpu == "x64" && host_os == "linux") { | 40 if (host_cpu == "x64" && host_os == "linux") { |
| 36 if (target_cpu == "arm" || target_cpu == "mipsel" || target_cpu == "x86") { | 41 if (target_cpu == "arm" || target_cpu == "mipsel" || target_cpu == "x86") { |
| 37 snapshot_toolchain = "//build/toolchain/linux:clang_x86" | 42 snapshot_toolchain = "//build/toolchain/linux:clang_x86" |
| 38 } else if (target_cpu == "x64") { | 43 } else if (target_cpu == "x64") { |
| (...skipping 1334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1373 "src/arm64/builtins-arm64.cc", | 1378 "src/arm64/builtins-arm64.cc", |
| 1374 "src/arm64/codegen-arm64.cc", | 1379 "src/arm64/codegen-arm64.cc", |
| 1375 "src/arm64/codegen-arm64.h", | 1380 "src/arm64/codegen-arm64.h", |
| 1376 "src/arm64/code-stubs-arm64.cc", | 1381 "src/arm64/code-stubs-arm64.cc", |
| 1377 "src/arm64/code-stubs-arm64.h", | 1382 "src/arm64/code-stubs-arm64.h", |
| 1378 "src/arm64/constants-arm64.h", | 1383 "src/arm64/constants-arm64.h", |
| 1379 "src/arm64/cpu-arm64.cc", | 1384 "src/arm64/cpu-arm64.cc", |
| 1380 "src/arm64/decoder-arm64.cc", | 1385 "src/arm64/decoder-arm64.cc", |
| 1381 "src/arm64/decoder-arm64.h", | 1386 "src/arm64/decoder-arm64.h", |
| 1382 "src/arm64/decoder-arm64-inl.h", | 1387 "src/arm64/decoder-arm64-inl.h", |
| 1388 "src/arm64/delayed-masm-arm64.cc", | |
| 1389 "src/arm64/delayed-masm-arm64.h", | |
| 1390 "src/arm64/delayed-masm-arm64-inl.h", | |
| 1383 "src/arm64/deoptimizer-arm64.cc", | 1391 "src/arm64/deoptimizer-arm64.cc", |
| 1384 "src/arm64/disasm-arm64.cc", | 1392 "src/arm64/disasm-arm64.cc", |
| 1385 "src/arm64/disasm-arm64.h", | 1393 "src/arm64/disasm-arm64.h", |
| 1386 "src/arm64/frames-arm64.cc", | 1394 "src/arm64/frames-arm64.cc", |
| 1387 "src/arm64/frames-arm64.h", | 1395 "src/arm64/frames-arm64.h", |
| 1388 "src/arm64/instructions-arm64.cc", | 1396 "src/arm64/instructions-arm64.cc", |
| 1389 "src/arm64/instructions-arm64.h", | 1397 "src/arm64/instructions-arm64.h", |
| 1390 "src/arm64/instrument-arm64.cc", | 1398 "src/arm64/instrument-arm64.cc", |
| 1391 "src/arm64/instrument-arm64.h", | 1399 "src/arm64/instrument-arm64.h", |
| 1392 "src/arm64/interface-descriptors-arm64.cc", | 1400 "src/arm64/interface-descriptors-arm64.cc", |
| (...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1823 if (!is_component_build) { | 1831 if (!is_component_build) { |
| 1824 sources += [ | 1832 sources += [ |
| 1825 "$target_gen_dir/d8-js.cc", | 1833 "$target_gen_dir/d8-js.cc", |
| 1826 ] | 1834 ] |
| 1827 } | 1835 } |
| 1828 if (v8_enable_i18n_support) { | 1836 if (v8_enable_i18n_support) { |
| 1829 deps += [ "//third_party/icu" ] | 1837 deps += [ "//third_party/icu" ] |
| 1830 } | 1838 } |
| 1831 } | 1839 } |
| 1832 } | 1840 } |
| OLD | NEW |