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/mips.gni") | 8 import("//build/config/mips.gni") |
9 import("//build/config/sanitizers/sanitizers.gni") | 9 import("//build/config/sanitizers/sanitizers.gni") |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 declare_args() { | 21 declare_args() { |
22 # Sets -DVERIFY_HEAP. | 22 # Sets -DVERIFY_HEAP. |
23 v8_enable_verify_heap = false | 23 v8_enable_verify_heap = false |
24 | 24 |
25 # Enable compiler warnings when using V8_DEPRECATED apis. | 25 # Enable compiler warnings when using V8_DEPRECATED apis. |
26 v8_deprecation_warnings = false | 26 v8_deprecation_warnings = false |
27 | 27 |
28 # Enable compiler warnings when using V8_DEPRECATE_SOON apis. | 28 # Enable compiler warnings when using V8_DEPRECATE_SOON apis. |
29 v8_imminent_deprecation_warnings = false | 29 v8_imminent_deprecation_warnings = false |
30 | 30 |
| 31 # Embeds the given script into the snapshot. |
| 32 v8_embed_script = "" |
| 33 |
31 # Sets -dENABLE_DISASSEMBLER. | 34 # Sets -dENABLE_DISASSEMBLER. |
32 v8_enable_disassembler = false | 35 v8_enable_disassembler = false |
33 | 36 |
34 # Sets -dENABLE_GDB_JIT_INTERFACE. | 37 # Sets -dENABLE_GDB_JIT_INTERFACE. |
35 v8_enable_gdbjit = false | 38 v8_enable_gdbjit = false |
36 | 39 |
37 # Sets -dENABLE_HANDLE_ZAPPING. | 40 # Sets -dENABLE_HANDLE_ZAPPING. |
38 v8_enable_handle_zapping = true | 41 v8_enable_handle_zapping = true |
39 | 42 |
40 # Enable ECMAScript Internationalization API. Enabling this feature will | 43 # Enable ECMAScript Internationalization API. Enabling this feature will |
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
581 | 584 |
582 action("run_mksnapshot") { | 585 action("run_mksnapshot") { |
583 visibility = [ ":*" ] # Only targets in this file can depend on this. | 586 visibility = [ ":*" ] # Only targets in this file can depend on this. |
584 | 587 |
585 deps = [ | 588 deps = [ |
586 ":mksnapshot($v8_snapshot_toolchain)", | 589 ":mksnapshot($v8_snapshot_toolchain)", |
587 ] | 590 ] |
588 | 591 |
589 script = "tools/run.py" | 592 script = "tools/run.py" |
590 | 593 |
| 594 sources = [] |
| 595 |
591 outputs = [ | 596 outputs = [ |
592 "$target_gen_dir/snapshot.cc", | 597 "$target_gen_dir/snapshot.cc", |
593 ] | 598 ] |
594 | 599 |
595 args = [ | 600 args = [ |
596 "./" + rebase_path(get_label_info(":mksnapshot($v8_snapshot_toolchain)", | 601 "./" + rebase_path(get_label_info(":mksnapshot($v8_snapshot_toolchain)", |
597 "root_out_dir") + "/mksnapshot", | 602 "root_out_dir") + "/mksnapshot", |
598 root_build_dir), | 603 root_build_dir), |
599 "--startup_src", | 604 "--startup_src", |
600 rebase_path("$target_gen_dir/snapshot.cc", root_build_dir), | 605 rebase_path("$target_gen_dir/snapshot.cc", root_build_dir), |
601 ] | 606 ] |
602 | 607 |
603 if (v8_random_seed != "0") { | 608 if (v8_random_seed != "0") { |
604 args += [ | 609 args += [ |
605 "--random-seed", | 610 "--random-seed", |
606 v8_random_seed, | 611 v8_random_seed, |
607 ] | 612 ] |
608 } | 613 } |
609 | 614 |
610 if (v8_use_external_startup_data) { | 615 if (v8_use_external_startup_data) { |
611 outputs += [ "$root_out_dir/snapshot_blob.bin" ] | 616 outputs += [ "$root_out_dir/snapshot_blob.bin" ] |
612 args += [ | 617 args += [ |
613 "--startup_blob", | 618 "--startup_blob", |
614 rebase_path("$root_out_dir/snapshot_blob.bin", root_build_dir), | 619 rebase_path("$root_out_dir/snapshot_blob.bin", root_build_dir), |
615 ] | 620 ] |
616 } | 621 } |
| 622 |
| 623 if (v8_embed_script != "") { |
| 624 sources += [ v8_embed_script ] |
| 625 args += [ rebase_path(v8_embed_script, root_build_dir) ] |
| 626 } |
617 } | 627 } |
618 | 628 |
619 ############################################################################### | 629 ############################################################################### |
620 # Source Sets (aka static libraries) | 630 # Source Sets (aka static libraries) |
621 # | 631 # |
622 | 632 |
623 source_set("v8_maybe_snapshot") { | 633 source_set("v8_maybe_snapshot") { |
624 if (v8_use_snapshot && v8_use_external_startup_data) { | 634 if (v8_use_snapshot && v8_use_external_startup_data) { |
625 public_deps = [ | 635 public_deps = [ |
626 ":v8_external_snapshot", | 636 ":v8_external_snapshot", |
(...skipping 1719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2346 | 2356 |
2347 deps = [ | 2357 deps = [ |
2348 ":fuzzer_support", | 2358 ":fuzzer_support", |
2349 ] | 2359 ] |
2350 | 2360 |
2351 configs = [ ":internal_config" ] | 2361 configs = [ ":internal_config" ] |
2352 } | 2362 } |
2353 | 2363 |
2354 v8_fuzzer("wasm_asmjs_fuzzer") { | 2364 v8_fuzzer("wasm_asmjs_fuzzer") { |
2355 } | 2365 } |
OLD | NEW |