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 # TODO(jochen): These will need to be user-settable to support standalone V8 | 5 # TODO(jochen): These will need to be user-settable to support standalone V8 |
6 # builds. | 6 # builds. |
7 v8_compress_startup_data = "off" | 7 v8_compress_startup_data = "off" |
8 v8_deprecation_warnings = false | 8 v8_deprecation_warnings = false |
9 v8_enable_disassembler = false | 9 v8_enable_disassembler = false |
10 v8_enable_gdbjit = false | 10 v8_enable_gdbjit = false |
11 v8_enable_handle_zapping = true | 11 v8_enable_handle_zapping = true |
12 v8_enable_i18n_support = true | 12 v8_enable_i18n_support = true |
13 v8_enable_verify_heap = false | 13 v8_enable_verify_heap = false |
14 v8_interpreted_regexp = false | 14 v8_interpreted_regexp = false |
15 v8_object_print = false | 15 v8_object_print = false |
16 v8_postmortem_support = false | 16 v8_postmortem_support = false |
17 v8_use_default_platform = true | 17 v8_use_default_platform = true |
18 v8_use_snapshot = true | 18 v8_use_snapshot = true |
| 19 v8_use_external_startup_data = false |
19 | 20 |
20 if (is_debug) { | 21 if (is_debug) { |
21 v8_enable_extra_checks = true | 22 v8_enable_extra_checks = true |
22 } else { | 23 } else { |
23 v8_enable_extra_checks = false | 24 v8_enable_extra_checks = false |
24 } | 25 } |
25 | 26 |
26 # TODO(jochen): Add support for want_seperate_host_toolset. | 27 # TODO(jochen): Add support for want_seperate_host_toolset. |
27 # TODO(jochen): Add toolchain.gypi support. | 28 # TODO(jochen): Add toolchain.gypi support. |
28 | 29 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 if (v8_enable_extra_checks == true) { | 97 if (v8_enable_extra_checks == true) { |
97 defines += [ | 98 defines += [ |
98 "ENABLE_EXTRA_CHECKS", | 99 "ENABLE_EXTRA_CHECKS", |
99 ] | 100 ] |
100 } | 101 } |
101 if (v8_enable_handle_zapping == true) { | 102 if (v8_enable_handle_zapping == true) { |
102 defines += [ | 103 defines += [ |
103 "ENABLE_HANDLE_ZAPPING", | 104 "ENABLE_HANDLE_ZAPPING", |
104 ] | 105 ] |
105 } | 106 } |
| 107 if (v8_use_external_startup_data == true) { |
| 108 defines += [ |
| 109 "V8_USE_EXTERNAL_STARTUP_DATA", |
| 110 ] |
| 111 } |
106 } | 112 } |
107 | 113 |
108 ############################################################################### | 114 ############################################################################### |
109 # Actions | 115 # Actions |
110 # | 116 # |
111 | 117 |
112 # TODO(jochen): Do actions need visibility settings as well? | 118 # TODO(jochen): Do actions need visibility settings as well? |
113 action("generate_trig_table") { | 119 action("generate_trig_table") { |
114 visibility = ":*" # Only targets in this file can depend on this. | 120 visibility = ":*" # Only targets in this file can depend on this. |
115 | 121 |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 ":js2c_experimental", | 236 ":js2c_experimental", |
231 ":generate_trig_table", | 237 ":generate_trig_table", |
232 ":v8_base", | 238 ":v8_base", |
233 ] | 239 ] |
234 | 240 |
235 sources = [ | 241 sources = [ |
236 "$target_gen_dir/libraries.cc", | 242 "$target_gen_dir/libraries.cc", |
237 "$target_gen_dir/experimental-libraries.cc", | 243 "$target_gen_dir/experimental-libraries.cc", |
238 "$target_gen_dir/trig-table.cc", | 244 "$target_gen_dir/trig-table.cc", |
239 "src/snapshot-empty.cc", | 245 "src/snapshot-empty.cc", |
| 246 "src/snapshot-common.cc", |
240 ] | 247 ] |
241 | 248 |
242 configs -= [ "//build/config/compiler:chromium_code" ] | 249 configs -= [ "//build/config/compiler:chromium_code" ] |
243 configs += [ "//build/config/compiler:no_chromium_code" ] | 250 configs += [ "//build/config/compiler:no_chromium_code" ] |
244 configs += [ ":internal_config", ":features" ] | 251 configs += [ ":internal_config", ":features" ] |
245 } | 252 } |
246 | 253 |
247 source_set("v8_base") { | 254 source_set("v8_base") { |
248 visibility = ":*" # Only targets in this file can depend on this. | 255 visibility = ":*" # Only targets in this file can depend on this. |
249 | 256 |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
538 "src/scanner.cc", | 545 "src/scanner.cc", |
539 "src/scanner.h", | 546 "src/scanner.h", |
540 "src/scopeinfo.cc", | 547 "src/scopeinfo.cc", |
541 "src/scopeinfo.h", | 548 "src/scopeinfo.h", |
542 "src/scopes.cc", | 549 "src/scopes.cc", |
543 "src/scopes.h", | 550 "src/scopes.h", |
544 "src/serialize.cc", | 551 "src/serialize.cc", |
545 "src/serialize.h", | 552 "src/serialize.h", |
546 "src/small-pointer-list.h", | 553 "src/small-pointer-list.h", |
547 "src/smart-pointers.h", | 554 "src/smart-pointers.h", |
548 "src/snapshot-common.cc", | 555 "src/snapshot-source-sink.cc", |
| 556 "src/snapshot-source-sink.h", |
549 "src/snapshot.h", | 557 "src/snapshot.h", |
550 "src/spaces-inl.h", | 558 "src/spaces-inl.h", |
551 "src/spaces.cc", | 559 "src/spaces.cc", |
552 "src/spaces.h", | 560 "src/spaces.h", |
553 "src/store-buffer-inl.h", | 561 "src/store-buffer-inl.h", |
554 "src/store-buffer.cc", | 562 "src/store-buffer.cc", |
555 "src/store-buffer.h", | 563 "src/store-buffer.h", |
556 "src/string-search.cc", | 564 "src/string-search.cc", |
557 "src/string-search.h", | 565 "src/string-search.h", |
558 "src/string-stream.cc", | 566 "src/string-stream.cc", |
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
865 ":v8_base", | 873 ":v8_base", |
866 ":v8_nosnapshot", | 874 ":v8_nosnapshot", |
867 ] | 875 ] |
868 | 876 |
869 if (v8_compress_startup_data == "bz2") { | 877 if (v8_compress_startup_data == "bz2") { |
870 libs = [ "bz2" ] | 878 libs = [ "bz2" ] |
871 } | 879 } |
872 } | 880 } |
873 | 881 |
874 } | 882 } |
OLD | NEW |