blob: 5f3baf23c9cff6356d57e951dfeed4f138725536 [file] [log] [blame]
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001# Copyright 2014 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00005import("//build/config/android/config.gni")
6import("//build/config/arm.gni")
7import("//build/config/mips.gni")
8import("//build/config/sanitizers/sanitizers.gni")
9
10if (is_android) {
11 import("//build/config/android/rules.gni")
12}
13
Emily Bernierd0a1eb72015-03-24 16:35:39 -040014# Because standalone V8 builds are not supported, assume this is part of a
15# Chromium build.
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000016import("//build_overrides/v8.gni")
17
18import("snapshot_toolchain.gni")
19
20declare_args() {
21 # Enable the snapshot feature, for fast context creation.
22 # http://v8project.blogspot.com/2015/09/custom-startup-snapshots.html
23 v8_use_snapshot = true
24}
Emily Bernierd0a1eb72015-03-24 16:35:39 -040025
Ben Murdochb8a8cc12014-11-26 15:28:44 +000026# TODO(jochen): These will need to be user-settable to support standalone V8
27# builds.
Ben Murdochb8a8cc12014-11-26 15:28:44 +000028v8_deprecation_warnings = false
29v8_enable_disassembler = false
30v8_enable_gdbjit = false
Ben Murdoch097c5b22016-05-18 11:27:45 +010031v8_enable_handle_zapping = is_debug
Ben Murdochb8a8cc12014-11-26 15:28:44 +000032v8_enable_i18n_support = true
33v8_enable_verify_heap = false
34v8_interpreted_regexp = false
35v8_object_print = false
36v8_postmortem_support = false
Ben Murdochb8a8cc12014-11-26 15:28:44 +000037v8_random_seed = "314159265"
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000038v8_toolset_for_d8 = "host"
Ben Murdochb8a8cc12014-11-26 15:28:44 +000039
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000040if (is_msan) {
41 # Running the V8-generated code on an ARM simulator is a powerful hack that
42 # allows the tool to see the memory accesses from JITted code. Without this
43 # flag, JS code causes false positive reports from MSan.
44 v8_target_arch = "arm64"
45} else {
46 v8_target_arch = target_cpu
47}
Ben Murdochb8a8cc12014-11-26 15:28:44 +000048
Ben Murdoch097c5b22016-05-18 11:27:45 +010049if (v8_use_snapshot && v8_use_external_startup_data) {
50 snapshot_target = ":v8_external_snapshot"
51} else if (v8_use_snapshot) {
52 snapshot_target = ":v8_snapshot"
53} else {
54 assert(!v8_use_external_startup_data)
55 snapshot_target = ":v8_nosnapshot"
56}
57
Ben Murdochb8a8cc12014-11-26 15:28:44 +000058###############################################################################
59# Configurations
60#
61config("internal_config") {
62 visibility = [ ":*" ] # Only targets in this file can depend on this.
63
64 include_dirs = [ "." ]
65
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000066 if (is_component_build) {
Ben Murdochb8a8cc12014-11-26 15:28:44 +000067 defines = [
68 "V8_SHARED",
69 "BUILDING_V8_SHARED",
70 ]
71 }
72}
73
74config("internal_config_base") {
75 visibility = [ ":*" ] # Only targets in this file can depend on this.
76
77 include_dirs = [ "." ]
78}
79
80# This config should only be applied to code using V8 and not any V8 code
81# itself.
82config("external_config") {
83 if (is_component_build) {
84 defines = [
85 "V8_SHARED",
86 "USING_V8_SHARED",
87 ]
88 }
89 include_dirs = [ "include" ]
90}
91
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000092# This config should only be applied to code that needs to be explicitly
93# aware of whether we are using startup data or not.
94config("external_startup_data") {
95 if (v8_use_external_startup_data) {
96 defines = [ "V8_USE_EXTERNAL_STARTUP_DATA" ]
97 }
98}
99
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000100config("features") {
101 visibility = [ ":*" ] # Only targets in this file can depend on this.
102
103 defines = []
104
105 if (v8_enable_disassembler == true) {
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000106 defines += [ "ENABLE_DISASSEMBLER" ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000107 }
108 if (v8_enable_gdbjit == true) {
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000109 defines += [ "ENABLE_GDB_JIT_INTERFACE" ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000110 }
111 if (v8_object_print == true) {
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000112 defines += [ "OBJECT_PRINT" ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000113 }
114 if (v8_enable_verify_heap == true) {
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000115 defines += [ "VERIFY_HEAP" ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000116 }
117 if (v8_interpreted_regexp == true) {
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000118 defines += [ "V8_INTERPRETED_REGEXP" ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000119 }
120 if (v8_deprecation_warnings == true) {
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000121 defines += [ "V8_DEPRECATION_WARNINGS" ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000122 }
123 if (v8_enable_i18n_support == true) {
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000124 defines += [ "V8_I18N_SUPPORT" ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000125 }
126 if (v8_enable_handle_zapping == true) {
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000127 defines += [ "ENABLE_HANDLE_ZAPPING" ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000128 }
129 if (v8_use_external_startup_data == true) {
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000130 defines += [ "V8_USE_EXTERNAL_STARTUP_DATA" ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000131 }
132}
133
134config("toolchain") {
135 visibility = [ ":*" ] # Only targets in this file can depend on this.
136
137 defines = []
138 cflags = []
139
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000140 # TODO(jochen): Add support for arm subarchs, mips, mipsel, mips64el.
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000141
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000142 if (v8_target_arch == "arm") {
143 defines += [ "V8_TARGET_ARCH_ARM" ]
144 if (current_cpu == "arm") {
145 if (arm_version == 7) {
146 defines += [ "CAN_USE_ARMV7_INSTRUCTIONS" ]
147 }
148 if (arm_fpu == "vfpv3-d16") {
149 defines += [ "CAN_USE_VFP3_INSTRUCTIONS" ]
150 } else if (arm_fpu == "vfpv3") {
151 defines += [
152 "CAN_USE_VFP3_INSTRUCTIONS",
153 "CAN_USE_VFP32DREGS",
154 ]
155 } else if (arm_fpu == "neon") {
156 defines += [
157 "CAN_USE_VFP3_INSTRUCTIONS",
158 "CAN_USE_VFP32DREGS",
159 "CAN_USE_NEON",
160 ]
161 }
162 } else {
163 # These defines ares used for the ARM simulator.
164 defines += [
165 "CAN_USE_ARMV7_INSTRUCTIONS",
166 "CAN_USE_VFP3_INSTRUCTIONS",
167 "CAN_USE_VFP32DREGS",
168 "USE_EABI_HARDFLOAT=0",
169 ]
170 }
171
172 # TODO(jochen): Add support for arm_test_noprobe.
173 }
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000174 if (v8_target_arch == "arm64") {
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000175 defines += [ "V8_TARGET_ARCH_ARM64" ]
176 }
177 if (v8_target_arch == "mipsel") {
178 defines += [ "V8_TARGET_ARCH_MIPS" ]
179 }
180 if (v8_target_arch == "mips64el") {
181 defines += [ "V8_TARGET_ARCH_MIPS64" ]
182 }
183 if (v8_target_arch == "s390") {
184 defines += [ "V8_TARGET_ARCH_S390" ]
185 }
186 if (v8_target_arch == "s390x") {
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000187 defines += [
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000188 "V8_TARGET_ARCH_S390",
189 "V8_TARGET_ARCH_S390X",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000190 ]
191 }
192 if (v8_target_arch == "x86") {
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000193 defines += [ "V8_TARGET_ARCH_IA32" ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000194 }
195 if (v8_target_arch == "x64") {
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000196 defines += [ "V8_TARGET_ARCH_X64" ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000197 }
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000198
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000199 if (is_win) {
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000200 defines += [ "WIN32" ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000201 # TODO(jochen): Support v8_enable_prof.
202 }
203
204 # TODO(jochen): Add support for compiling with simulators.
205
206 if (is_debug) {
207 # TODO(jochen): Add support for different debug optimization levels.
208 defines += [
209 "ENABLE_DISASSEMBLER",
210 "V8_ENABLE_CHECKS",
211 "OBJECT_PRINT",
212 "VERIFY_HEAP",
213 "DEBUG",
214 "OPTIMIZED_DEBUG",
215 ]
216 }
217}
218
219###############################################################################
220# Actions
221#
222
223action("js2c") {
224 visibility = [ ":*" ] # Only targets in this file can depend on this.
225
226 script = "tools/js2c.py"
227
228 # The script depends on this other script, this rule causes a rebuild if it
229 # changes.
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000230 inputs = [ "tools/jsmin.py" ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000231
232 sources = [
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000233 "src/js/macros.py",
234 "src/messages.h",
235 "src/js/prologue.js",
236 "src/js/runtime.js",
237 "src/js/v8natives.js",
238 "src/js/symbol.js",
239 "src/js/array.js",
240 "src/js/string.js",
241 "src/js/uri.js",
242 "src/js/math.js",
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400243 "src/third_party/fdlibm/fdlibm.js",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000244 "src/js/regexp.js",
245 "src/js/arraybuffer.js",
246 "src/js/typedarray.js",
247 "src/js/iterator-prototype.js",
248 "src/js/generator.js",
249 "src/js/object-observe.js",
250 "src/js/collection.js",
251 "src/js/weak-collection.js",
252 "src/js/collection-iterator.js",
253 "src/js/promise.js",
254 "src/js/messages.js",
255 "src/js/json.js",
256 "src/js/array-iterator.js",
257 "src/js/string-iterator.js",
258 "src/js/templates.js",
259 "src/js/spread.js",
260 "src/debug/mirrors.js",
261 "src/debug/debug.js",
262 "src/debug/liveedit.js",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000263 ]
264
265 outputs = [
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000266 "$target_gen_dir/libraries.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000267 ]
268
269 if (v8_enable_i18n_support) {
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000270 sources += [ "src/js/i18n.js" ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000271 }
272
273 args = [
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000274 rebase_path("$target_gen_dir/libraries.cc", root_build_dir),
275 "CORE",
276 ] + rebase_path(sources, root_build_dir)
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000277
278 if (v8_use_external_startup_data) {
279 outputs += [ "$target_gen_dir/libraries.bin" ]
280 args += [
281 "--startup_blob",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000282 rebase_path("$target_gen_dir/libraries.bin", root_build_dir),
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000283 ]
284 }
285}
286
287action("js2c_experimental") {
288 visibility = [ ":*" ] # Only targets in this file can depend on this.
289
290 script = "tools/js2c.py"
291
292 # The script depends on this other script, this rule causes a rebuild if it
293 # changes.
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000294 inputs = [ "tools/jsmin.py" ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000295
296 sources = [
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000297 "src/js/macros.py",
298 "src/messages.h",
299 "src/js/proxy.js",
300 "src/js/generator.js",
301 "src/js/harmony-atomics.js",
302 "src/js/harmony-regexp.js",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000303 "src/js/harmony-object-observe.js",
304 "src/js/harmony-sharedarraybuffer.js",
305 "src/js/harmony-simd.js",
306 "src/js/harmony-species.js",
307 "src/js/harmony-unicode-regexps.js",
308 "src/js/promise-extra.js"
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000309 ]
310
311 outputs = [
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000312 "$target_gen_dir/experimental-libraries.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000313 ]
314
315 args = [
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000316 rebase_path("$target_gen_dir/experimental-libraries.cc",
317 root_build_dir),
318 "EXPERIMENTAL",
319 ] + rebase_path(sources, root_build_dir)
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000320
321 if (v8_use_external_startup_data) {
322 outputs += [ "$target_gen_dir/libraries_experimental.bin" ]
323 args += [
324 "--startup_blob",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000325 rebase_path("$target_gen_dir/libraries_experimental.bin", root_build_dir),
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000326 ]
327 }
328}
329
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000330action("js2c_extras") {
331 visibility = [ ":*" ] # Only targets in this file can depend on this.
332
333 script = "tools/js2c.py"
334
335 # The script depends on this other script, this rule causes a rebuild if it
336 # changes.
337 inputs = [ "tools/jsmin.py" ]
338
339 sources = v8_extra_library_files
340
341 outputs = [
342 "$target_gen_dir/extras-libraries.cc",
343 ]
344
345 args = [
346 rebase_path("$target_gen_dir/extras-libraries.cc",
347 root_build_dir),
348 "EXTRAS",
349 ] + rebase_path(sources, root_build_dir)
350
351 if (v8_use_external_startup_data) {
352 outputs += [ "$target_gen_dir/libraries_extras.bin" ]
353 args += [
354 "--startup_blob",
355 rebase_path("$target_gen_dir/libraries_extras.bin", root_build_dir),
356 ]
357 }
358}
359
360action("js2c_experimental_extras") {
361 visibility = [ ":*" ] # Only targets in this file can depend on this.
362
363 script = "tools/js2c.py"
364
365 # The script depends on this other script, this rule causes a rebuild if it
366 # changes.
367 inputs = [ "tools/jsmin.py" ]
368
369 sources = v8_experimental_extra_library_files
370
371 outputs = [
372 "$target_gen_dir/experimental-extras-libraries.cc",
373 ]
374
375 args = [
376 rebase_path("$target_gen_dir/experimental-extras-libraries.cc",
377 root_build_dir),
378 "EXPERIMENTAL_EXTRAS",
379 ] + rebase_path(sources, root_build_dir)
380
381 if (v8_use_external_startup_data) {
382 outputs += [ "$target_gen_dir/libraries_experimental_extras.bin" ]
383 args += [
384 "--startup_blob",
385 rebase_path("$target_gen_dir/libraries_experimental_extras.bin", root_build_dir),
386 ]
387 }
388}
389
390action("d8_js2c") {
391 visibility = [ ":*" ] # Only targets in this file can depend on this.
392
393 script = "tools/js2c.py"
394
395 inputs = [
396 "src/d8.js",
397 "src/js/macros.py",
398 ]
399
400 outputs = [
401 "$target_gen_dir/d8-js.cc",
402 ]
403
404 args = rebase_path(outputs, root_build_dir) + [ "D8" ] +
405 rebase_path(inputs, root_build_dir)
406}
407
408if (is_android) {
409 android_assets("v8_external_startup_data_assets") {
410 if (v8_use_external_startup_data) {
411 deps = [
412 "//v8",
413 ]
414 renaming_sources = v8_external_startup_data_renaming_sources
415 renaming_destinations = v8_external_startup_data_renaming_destinations
416 disable_compression = true
417 }
418 }
419}
420
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000421if (v8_use_external_startup_data) {
422 action("natives_blob") {
423 visibility = [ ":*" ] # Only targets in this file can depend on this.
424
425 deps = [
426 ":js2c",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000427 ":js2c_experimental",
428 ":js2c_extras",
429 ":js2c_experimental_extras",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000430 ]
431
432 sources = [
433 "$target_gen_dir/libraries.bin",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000434 "$target_gen_dir/libraries_experimental.bin",
435 "$target_gen_dir/libraries_extras.bin",
436 "$target_gen_dir/libraries_experimental_extras.bin",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000437 ]
438
439 outputs = [
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000440 "$root_out_dir/natives_blob.bin",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000441 ]
442
443 script = "tools/concatenate-files.py"
444
445 args = rebase_path(sources + outputs, root_build_dir)
446 }
447}
448
449action("postmortem-metadata") {
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000450 # Only targets in this file and the top-level visibility target can
451 # depend on this.
452 visibility = [
453 ":*",
454 "//:gn_visibility",
455 ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000456
457 script = "tools/gen-postmortem-metadata.py"
458
459 sources = [
460 "src/objects.h",
461 "src/objects-inl.h",
462 ]
463
464 outputs = [
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000465 "$target_gen_dir/debug-support.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000466 ]
467
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000468 args = rebase_path(outputs, root_build_dir) +
469 rebase_path(sources, root_build_dir)
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000470}
471
472action("run_mksnapshot") {
473 visibility = [ ":*" ] # Only targets in this file can depend on this.
474
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000475 deps = [
476 ":mksnapshot($snapshot_toolchain)",
477 ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000478
479 script = "tools/run.py"
480
481 outputs = [
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000482 "$target_gen_dir/snapshot.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000483 ]
484
485 args = [
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000486 "./" + rebase_path(get_label_info(":mksnapshot($snapshot_toolchain)",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000487 "root_out_dir") + "/mksnapshot",
488 root_build_dir),
489 "--log-snapshot-positions",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000490 "--logfile",
491 rebase_path("$target_gen_dir/snapshot.log", root_build_dir),
492 "--startup_src",
493 rebase_path("$target_gen_dir/snapshot.cc", root_build_dir),
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000494 ]
495
496 if (v8_random_seed != "0") {
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000497 args += [
498 "--random-seed",
499 v8_random_seed,
500 ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000501 }
502
503 if (v8_use_external_startup_data) {
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400504 outputs += [ "$root_out_dir/snapshot_blob.bin" ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000505 args += [
506 "--startup_blob",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000507 rebase_path("$root_out_dir/snapshot_blob.bin", root_build_dir),
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000508 ]
509 }
510}
511
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000512###############################################################################
513# Source Sets (aka static libraries)
514#
515
516source_set("v8_nosnapshot") {
517 visibility = [ ":*" ] # Only targets in this file can depend on this.
518
519 deps = [
520 ":js2c",
521 ":js2c_experimental",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000522 ":js2c_extras",
523 ":js2c_experimental_extras",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000524 ":v8_base",
525 ]
526
527 sources = [
528 "$target_gen_dir/libraries.cc",
529 "$target_gen_dir/experimental-libraries.cc",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000530 "$target_gen_dir/extras-libraries.cc",
531 "$target_gen_dir/experimental-extras-libraries.cc",
532 "src/snapshot/snapshot-empty.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000533 ]
534
535 configs -= [ "//build/config/compiler:chromium_code" ]
536 configs += [ "//build/config/compiler:no_chromium_code" ]
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000537 configs += [
538 ":internal_config",
539 ":features",
540 ":toolchain",
541 ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000542}
543
544source_set("v8_snapshot") {
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000545 # Only targets in this file and the top-level visibility target can
546 # depend on this.
547 visibility = [
548 ":*",
549 "//:gn_visibility",
550 ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000551
552 deps = [
553 ":js2c",
554 ":js2c_experimental",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000555 ":js2c_extras",
556 ":js2c_experimental_extras",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000557 ":v8_base",
558 ]
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000559 public_deps = [
560 # This should be public so downstream targets can declare the snapshot
561 # output file as their inputs.
562 ":run_mksnapshot",
563 ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000564
565 sources = [
566 "$target_gen_dir/libraries.cc",
567 "$target_gen_dir/experimental-libraries.cc",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000568 "$target_gen_dir/extras-libraries.cc",
569 "$target_gen_dir/experimental-extras-libraries.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000570 "$target_gen_dir/snapshot.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000571 ]
572
573 configs -= [ "//build/config/compiler:chromium_code" ]
574 configs += [ "//build/config/compiler:no_chromium_code" ]
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000575 configs += [
576 ":internal_config",
577 ":features",
578 ":toolchain",
579 ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000580}
581
582if (v8_use_external_startup_data) {
583 source_set("v8_external_snapshot") {
584 visibility = [ ":*" ] # Only targets in this file can depend on this.
585
586 deps = [
587 ":js2c",
588 ":js2c_experimental",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000589 ":js2c_extras",
590 ":js2c_experimental_extras",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000591 ":v8_base",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000592 ]
593 public_deps = [
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000594 ":natives_blob",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000595 ":run_mksnapshot",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000596 ]
597
598 sources = [
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000599 "src/snapshot/natives-external.cc",
600 "src/snapshot/snapshot-external.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000601 ]
602
603 configs -= [ "//build/config/compiler:chromium_code" ]
604 configs += [ "//build/config/compiler:no_chromium_code" ]
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000605 configs += [
606 ":internal_config",
607 ":features",
608 ":toolchain",
609 ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000610 }
611}
612
613source_set("v8_base") {
614 visibility = [ ":*" ] # Only targets in this file can depend on this.
615
616 sources = [
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000617 # TODO(fmeawad): This needs to be updated to support standalone V8 builds.
618 "../base/trace_event/common/trace_event_common.h",
619 "include/v8-debug.h",
620 "include/v8-experimental.h",
621 "include/v8-platform.h",
622 "include/v8-profiler.h",
623 "include/v8-testing.h",
624 "include/v8-util.h",
625 "include/v8-version.h",
626 "include/v8.h",
627 "include/v8config.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000628 "src/accessors.cc",
629 "src/accessors.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000630 "src/address-map.cc",
631 "src/address-map.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000632 "src/allocation.cc",
633 "src/allocation.h",
634 "src/allocation-site-scopes.cc",
635 "src/allocation-site-scopes.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000636 "src/api.cc",
637 "src/api.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000638 "src/api-experimental.cc",
639 "src/api-experimental.h",
640 "src/api-natives.cc",
641 "src/api-natives.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000642 "src/arguments.cc",
643 "src/arguments.h",
644 "src/assembler.cc",
645 "src/assembler.h",
646 "src/assert-scope.h",
647 "src/assert-scope.cc",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000648 "src/ast/ast-expression-rewriter.cc",
649 "src/ast/ast-expression-rewriter.h",
650 "src/ast/ast-expression-visitor.cc",
651 "src/ast/ast-expression-visitor.h",
652 "src/ast/ast-literal-reindexer.cc",
653 "src/ast/ast-literal-reindexer.h",
654 "src/ast/ast-numbering.cc",
655 "src/ast/ast-numbering.h",
656 "src/ast/ast-value-factory.cc",
657 "src/ast/ast-value-factory.h",
658 "src/ast/ast.cc",
659 "src/ast/ast.h",
660 "src/ast/modules.cc",
661 "src/ast/modules.h",
662 "src/ast/prettyprinter.cc",
663 "src/ast/prettyprinter.h",
664 "src/ast/scopeinfo.cc",
665 "src/ast/scopeinfo.h",
666 "src/ast/scopes.cc",
667 "src/ast/scopes.h",
668 "src/ast/variables.cc",
669 "src/ast/variables.h",
670 "src/atomic-utils.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000671 "src/background-parsing-task.cc",
672 "src/background-parsing-task.h",
673 "src/bailout-reason.cc",
674 "src/bailout-reason.h",
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400675 "src/basic-block-profiler.cc",
676 "src/basic-block-profiler.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000677 "src/bignum-dtoa.cc",
678 "src/bignum-dtoa.h",
679 "src/bignum.cc",
680 "src/bignum.h",
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400681 "src/bit-vector.cc",
682 "src/bit-vector.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000683 "src/bootstrapper.cc",
684 "src/bootstrapper.h",
685 "src/builtins.cc",
686 "src/builtins.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000687 "src/cancelable-task.cc",
688 "src/cancelable-task.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000689 "src/cached-powers.cc",
690 "src/cached-powers.h",
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400691 "src/char-predicates.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000692 "src/char-predicates-inl.h",
693 "src/char-predicates.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000694 "src/checks.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000695 "src/code-factory.cc",
696 "src/code-factory.h",
697 "src/code-stubs.cc",
698 "src/code-stubs.h",
699 "src/code-stubs-hydrogen.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000700 "src/codegen.cc",
701 "src/codegen.h",
702 "src/compilation-cache.cc",
703 "src/compilation-cache.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000704 "src/compilation-dependencies.cc",
705 "src/compilation-dependencies.h",
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400706 "src/compilation-statistics.cc",
707 "src/compilation-statistics.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000708 "src/compiler/access-builder.cc",
709 "src/compiler/access-builder.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000710 "src/compiler/access-info.cc",
711 "src/compiler/access-info.h",
712 "src/compiler/all-nodes.cc",
713 "src/compiler/all-nodes.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000714 "src/compiler/ast-graph-builder.cc",
715 "src/compiler/ast-graph-builder.h",
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400716 "src/compiler/ast-loop-assignment-analyzer.cc",
717 "src/compiler/ast-loop-assignment-analyzer.h",
718 "src/compiler/basic-block-instrumentor.cc",
719 "src/compiler/basic-block-instrumentor.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000720 "src/compiler/branch-elimination.cc",
721 "src/compiler/branch-elimination.h",
722 "src/compiler/bytecode-branch-analysis.cc",
723 "src/compiler/bytecode-branch-analysis.h",
724 "src/compiler/bytecode-graph-builder.cc",
725 "src/compiler/bytecode-graph-builder.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000726 "src/compiler/change-lowering.cc",
727 "src/compiler/change-lowering.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000728 "src/compiler/c-linkage.cc",
729 "src/compiler/coalesced-live-ranges.cc",
730 "src/compiler/coalesced-live-ranges.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000731 "src/compiler/code-generator-impl.h",
732 "src/compiler/code-generator.cc",
733 "src/compiler/code-generator.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000734 "src/compiler/code-stub-assembler.cc",
735 "src/compiler/code-stub-assembler.h",
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400736 "src/compiler/common-node-cache.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000737 "src/compiler/common-node-cache.h",
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400738 "src/compiler/common-operator-reducer.cc",
739 "src/compiler/common-operator-reducer.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000740 "src/compiler/common-operator.cc",
741 "src/compiler/common-operator.h",
742 "src/compiler/control-builders.cc",
743 "src/compiler/control-builders.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000744 "src/compiler/control-equivalence.cc",
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400745 "src/compiler/control-equivalence.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000746 "src/compiler/control-flow-optimizer.cc",
747 "src/compiler/control-flow-optimizer.h",
748 "src/compiler/dead-code-elimination.cc",
749 "src/compiler/dead-code-elimination.h",
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400750 "src/compiler/diamond.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000751 "src/compiler/escape-analysis.cc",
752 "src/compiler/escape-analysis.h",
753 "src/compiler/escape-analysis-reducer.cc",
754 "src/compiler/escape-analysis-reducer.h",
755 "src/compiler/fast-accessor-assembler.cc",
756 "src/compiler/fast-accessor-assembler.h",
757 "src/compiler/frame.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000758 "src/compiler/frame.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000759 "src/compiler/frame-elider.cc",
760 "src/compiler/frame-elider.h",
761 "src/compiler/frame-states.cc",
762 "src/compiler/frame-states.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000763 "src/compiler/gap-resolver.cc",
764 "src/compiler/gap-resolver.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000765 "src/compiler/graph-reducer.cc",
766 "src/compiler/graph-reducer.h",
767 "src/compiler/graph-replay.cc",
768 "src/compiler/graph-replay.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000769 "src/compiler/graph-trimmer.cc",
770 "src/compiler/graph-trimmer.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000771 "src/compiler/graph-visualizer.cc",
772 "src/compiler/graph-visualizer.h",
773 "src/compiler/graph.cc",
774 "src/compiler/graph.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000775 "src/compiler/greedy-allocator.cc",
776 "src/compiler/greedy-allocator.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000777 "src/compiler/instruction-codes.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000778 "src/compiler/instruction-scheduler.cc",
779 "src/compiler/instruction-scheduler.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000780 "src/compiler/instruction-selector-impl.h",
781 "src/compiler/instruction-selector.cc",
782 "src/compiler/instruction-selector.h",
783 "src/compiler/instruction.cc",
784 "src/compiler/instruction.h",
Ben Murdoch097c5b22016-05-18 11:27:45 +0100785 "src/compiler/int64-lowering.cc",
786 "src/compiler/int64-lowering.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000787 "src/compiler/js-builtin-reducer.cc",
788 "src/compiler/js-builtin-reducer.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000789 "src/compiler/js-call-reducer.cc",
790 "src/compiler/js-call-reducer.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000791 "src/compiler/js-context-specialization.cc",
792 "src/compiler/js-context-specialization.h",
Ben Murdoch097c5b22016-05-18 11:27:45 +0100793 "src/compiler/js-create-lowering.cc",
794 "src/compiler/js-create-lowering.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000795 "src/compiler/js-frame-specialization.cc",
796 "src/compiler/js-frame-specialization.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000797 "src/compiler/js-generic-lowering.cc",
798 "src/compiler/js-generic-lowering.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000799 "src/compiler/js-global-object-specialization.cc",
800 "src/compiler/js-global-object-specialization.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000801 "src/compiler/js-graph.cc",
802 "src/compiler/js-graph.h",
803 "src/compiler/js-inlining.cc",
804 "src/compiler/js-inlining.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000805 "src/compiler/js-inlining-heuristic.cc",
806 "src/compiler/js-inlining-heuristic.h",
807 "src/compiler/js-intrinsic-lowering.cc",
808 "src/compiler/js-intrinsic-lowering.h",
809 "src/compiler/js-native-context-specialization.cc",
810 "src/compiler/js-native-context-specialization.h",
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400811 "src/compiler/js-operator.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000812 "src/compiler/js-operator.h",
813 "src/compiler/js-typed-lowering.cc",
814 "src/compiler/js-typed-lowering.h",
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400815 "src/compiler/jump-threading.cc",
816 "src/compiler/jump-threading.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000817 "src/compiler/linkage.cc",
818 "src/compiler/linkage.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000819 "src/compiler/live-range-separator.cc",
820 "src/compiler/live-range-separator.h",
821 "src/compiler/liveness-analyzer.cc",
822 "src/compiler/liveness-analyzer.h",
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400823 "src/compiler/load-elimination.cc",
824 "src/compiler/load-elimination.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000825 "src/compiler/loop-peeling.cc",
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400826 "src/compiler/loop-analysis.cc",
827 "src/compiler/loop-analysis.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000828 "src/compiler/machine-operator-reducer.cc",
829 "src/compiler/machine-operator-reducer.h",
830 "src/compiler/machine-operator.cc",
831 "src/compiler/machine-operator.h",
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400832 "src/compiler/move-optimizer.cc",
833 "src/compiler/move-optimizer.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000834 "src/compiler/node-aux-data.h",
835 "src/compiler/node-cache.cc",
836 "src/compiler/node-cache.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000837 "src/compiler/node-marker.cc",
838 "src/compiler/node-marker.h",
839 "src/compiler/node-matchers.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000840 "src/compiler/node-matchers.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000841 "src/compiler/node-properties.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000842 "src/compiler/node-properties.h",
843 "src/compiler/node.cc",
844 "src/compiler/node.h",
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400845 "src/compiler/opcodes.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000846 "src/compiler/opcodes.h",
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400847 "src/compiler/operator-properties.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000848 "src/compiler/operator-properties.h",
849 "src/compiler/operator.cc",
850 "src/compiler/operator.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000851 "src/compiler/osr.cc",
852 "src/compiler/osr.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000853 "src/compiler/pipeline.cc",
854 "src/compiler/pipeline.h",
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400855 "src/compiler/pipeline-statistics.cc",
856 "src/compiler/pipeline-statistics.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000857 "src/compiler/raw-machine-assembler.cc",
858 "src/compiler/raw-machine-assembler.h",
859 "src/compiler/register-allocator.cc",
860 "src/compiler/register-allocator.h",
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400861 "src/compiler/register-allocator-verifier.cc",
862 "src/compiler/register-allocator-verifier.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000863 "src/compiler/representation-change.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000864 "src/compiler/representation-change.h",
865 "src/compiler/schedule.cc",
866 "src/compiler/schedule.h",
867 "src/compiler/scheduler.cc",
868 "src/compiler/scheduler.h",
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400869 "src/compiler/select-lowering.cc",
870 "src/compiler/select-lowering.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000871 "src/compiler/simplified-lowering.cc",
872 "src/compiler/simplified-lowering.h",
873 "src/compiler/simplified-operator-reducer.cc",
874 "src/compiler/simplified-operator-reducer.h",
875 "src/compiler/simplified-operator.cc",
876 "src/compiler/simplified-operator.h",
877 "src/compiler/source-position.cc",
878 "src/compiler/source-position.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000879 "src/compiler/state-values-utils.cc",
880 "src/compiler/state-values-utils.h",
881 "src/compiler/tail-call-optimization.cc",
882 "src/compiler/tail-call-optimization.h",
883 "src/compiler/type-hint-analyzer.cc",
884 "src/compiler/type-hint-analyzer.h",
885 "src/compiler/type-hints.cc",
886 "src/compiler/type-hints.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000887 "src/compiler/typer.cc",
888 "src/compiler/typer.h",
889 "src/compiler/value-numbering-reducer.cc",
890 "src/compiler/value-numbering-reducer.h",
891 "src/compiler/verifier.cc",
892 "src/compiler/verifier.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000893 "src/compiler/wasm-compiler.cc",
894 "src/compiler/wasm-compiler.h",
895 "src/compiler/wasm-linkage.cc",
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400896 "src/compiler/zone-pool.cc",
897 "src/compiler/zone-pool.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000898 "src/compiler.cc",
899 "src/compiler.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000900 "src/context-measure.cc",
901 "src/context-measure.h",
902 "src/contexts-inl.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000903 "src/contexts.cc",
904 "src/contexts.h",
905 "src/conversions-inl.h",
906 "src/conversions.cc",
907 "src/conversions.h",
908 "src/counters.cc",
909 "src/counters.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000910 "src/crankshaft/hydrogen-alias-analysis.h",
911 "src/crankshaft/hydrogen-bce.cc",
912 "src/crankshaft/hydrogen-bce.h",
913 "src/crankshaft/hydrogen-bch.cc",
914 "src/crankshaft/hydrogen-bch.h",
915 "src/crankshaft/hydrogen-canonicalize.cc",
916 "src/crankshaft/hydrogen-canonicalize.h",
917 "src/crankshaft/hydrogen-check-elimination.cc",
918 "src/crankshaft/hydrogen-check-elimination.h",
919 "src/crankshaft/hydrogen-dce.cc",
920 "src/crankshaft/hydrogen-dce.h",
921 "src/crankshaft/hydrogen-dehoist.cc",
922 "src/crankshaft/hydrogen-dehoist.h",
923 "src/crankshaft/hydrogen-environment-liveness.cc",
924 "src/crankshaft/hydrogen-environment-liveness.h",
925 "src/crankshaft/hydrogen-escape-analysis.cc",
926 "src/crankshaft/hydrogen-escape-analysis.h",
927 "src/crankshaft/hydrogen-flow-engine.h",
928 "src/crankshaft/hydrogen-gvn.cc",
929 "src/crankshaft/hydrogen-gvn.h",
930 "src/crankshaft/hydrogen-infer-representation.cc",
931 "src/crankshaft/hydrogen-infer-representation.h",
932 "src/crankshaft/hydrogen-infer-types.cc",
933 "src/crankshaft/hydrogen-infer-types.h",
934 "src/crankshaft/hydrogen-instructions.cc",
935 "src/crankshaft/hydrogen-instructions.h",
936 "src/crankshaft/hydrogen-load-elimination.cc",
937 "src/crankshaft/hydrogen-load-elimination.h",
938 "src/crankshaft/hydrogen-mark-deoptimize.cc",
939 "src/crankshaft/hydrogen-mark-deoptimize.h",
940 "src/crankshaft/hydrogen-mark-unreachable.cc",
941 "src/crankshaft/hydrogen-mark-unreachable.h",
942 "src/crankshaft/hydrogen-osr.cc",
943 "src/crankshaft/hydrogen-osr.h",
944 "src/crankshaft/hydrogen-range-analysis.cc",
945 "src/crankshaft/hydrogen-range-analysis.h",
946 "src/crankshaft/hydrogen-redundant-phi.cc",
947 "src/crankshaft/hydrogen-redundant-phi.h",
948 "src/crankshaft/hydrogen-removable-simulates.cc",
949 "src/crankshaft/hydrogen-removable-simulates.h",
950 "src/crankshaft/hydrogen-representation-changes.cc",
951 "src/crankshaft/hydrogen-representation-changes.h",
952 "src/crankshaft/hydrogen-sce.cc",
953 "src/crankshaft/hydrogen-sce.h",
954 "src/crankshaft/hydrogen-store-elimination.cc",
955 "src/crankshaft/hydrogen-store-elimination.h",
956 "src/crankshaft/hydrogen-types.cc",
957 "src/crankshaft/hydrogen-types.h",
958 "src/crankshaft/hydrogen-uint32-analysis.cc",
959 "src/crankshaft/hydrogen-uint32-analysis.h",
960 "src/crankshaft/hydrogen.cc",
961 "src/crankshaft/hydrogen.h",
962 "src/crankshaft/lithium-allocator-inl.h",
963 "src/crankshaft/lithium-allocator.cc",
964 "src/crankshaft/lithium-allocator.h",
965 "src/crankshaft/lithium-codegen.cc",
966 "src/crankshaft/lithium-codegen.h",
967 "src/crankshaft/lithium.cc",
968 "src/crankshaft/lithium.h",
969 "src/crankshaft/typing.cc",
970 "src/crankshaft/typing.h",
971 "src/crankshaft/unique.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000972 "src/date.cc",
973 "src/date.h",
974 "src/dateparser-inl.h",
975 "src/dateparser.cc",
976 "src/dateparser.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000977 "src/debug/debug-evaluate.cc",
978 "src/debug/debug-evaluate.h",
979 "src/debug/debug-frames.cc",
980 "src/debug/debug-frames.h",
981 "src/debug/debug-scopes.cc",
982 "src/debug/debug-scopes.h",
983 "src/debug/debug.cc",
984 "src/debug/debug.h",
985 "src/debug/liveedit.cc",
986 "src/debug/liveedit.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000987 "src/deoptimizer.cc",
988 "src/deoptimizer.h",
989 "src/disasm.h",
990 "src/disassembler.cc",
991 "src/disassembler.h",
992 "src/diy-fp.cc",
993 "src/diy-fp.h",
994 "src/double.h",
995 "src/dtoa.cc",
996 "src/dtoa.h",
997 "src/effects.h",
998 "src/elements-kind.cc",
999 "src/elements-kind.h",
1000 "src/elements.cc",
1001 "src/elements.h",
1002 "src/execution.cc",
1003 "src/execution.h",
1004 "src/extensions/externalize-string-extension.cc",
1005 "src/extensions/externalize-string-extension.h",
1006 "src/extensions/free-buffer-extension.cc",
1007 "src/extensions/free-buffer-extension.h",
1008 "src/extensions/gc-extension.cc",
1009 "src/extensions/gc-extension.h",
1010 "src/extensions/statistics-extension.cc",
1011 "src/extensions/statistics-extension.h",
1012 "src/extensions/trigger-failure-extension.cc",
1013 "src/extensions/trigger-failure-extension.h",
1014 "src/factory.cc",
1015 "src/factory.h",
1016 "src/fast-dtoa.cc",
1017 "src/fast-dtoa.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001018 "src/field-index.h",
1019 "src/field-index-inl.h",
Ben Murdoch097c5b22016-05-18 11:27:45 +01001020 "src/field-type.cc",
1021 "src/field-type.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001022 "src/fixed-dtoa.cc",
1023 "src/fixed-dtoa.h",
1024 "src/flag-definitions.h",
1025 "src/flags.cc",
1026 "src/flags.h",
1027 "src/frames-inl.h",
1028 "src/frames.cc",
1029 "src/frames.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001030 "src/full-codegen/full-codegen.cc",
1031 "src/full-codegen/full-codegen.h",
1032 "src/futex-emulation.cc",
1033 "src/futex-emulation.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001034 "src/gdb-jit.cc",
1035 "src/gdb-jit.h",
1036 "src/global-handles.cc",
1037 "src/global-handles.h",
1038 "src/globals.h",
1039 "src/handles-inl.h",
1040 "src/handles.cc",
1041 "src/handles.h",
1042 "src/hashmap.h",
Ben Murdoch097c5b22016-05-18 11:27:45 +01001043 "src/heap-symbols.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001044 "src/heap/array-buffer-tracker.cc",
1045 "src/heap/array-buffer-tracker.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001046 "src/heap/gc-idle-time-handler.cc",
1047 "src/heap/gc-idle-time-handler.h",
1048 "src/heap/gc-tracer.cc",
1049 "src/heap/gc-tracer.h",
1050 "src/heap/heap-inl.h",
1051 "src/heap/heap.cc",
1052 "src/heap/heap.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001053 "src/heap/incremental-marking-job.cc",
1054 "src/heap/incremental-marking-job.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001055 "src/heap/incremental-marking.cc",
1056 "src/heap/incremental-marking.h",
1057 "src/heap/mark-compact-inl.h",
1058 "src/heap/mark-compact.cc",
1059 "src/heap/mark-compact.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001060 "src/heap/memory-reducer.cc",
1061 "src/heap/memory-reducer.h",
1062 "src/heap/object-stats.cc",
1063 "src/heap/object-stats.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001064 "src/heap/objects-visiting-inl.h",
1065 "src/heap/objects-visiting.cc",
1066 "src/heap/objects-visiting.h",
Ben Murdoch097c5b22016-05-18 11:27:45 +01001067 "src/heap/remembered-set.cc",
1068 "src/heap/remembered-set.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001069 "src/heap/scavenge-job.h",
1070 "src/heap/scavenge-job.cc",
1071 "src/heap/scavenger-inl.h",
1072 "src/heap/scavenger.cc",
1073 "src/heap/scavenger.h",
Ben Murdoch097c5b22016-05-18 11:27:45 +01001074 "src/heap/slot-set.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001075 "src/heap/slots-buffer.cc",
1076 "src/heap/slots-buffer.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001077 "src/heap/spaces-inl.h",
1078 "src/heap/spaces.cc",
1079 "src/heap/spaces.h",
1080 "src/heap/store-buffer-inl.h",
1081 "src/heap/store-buffer.cc",
1082 "src/heap/store-buffer.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001083 "src/i18n.cc",
1084 "src/i18n.h",
1085 "src/icu_util.cc",
1086 "src/icu_util.h",
1087 "src/ic/access-compiler.cc",
1088 "src/ic/access-compiler.h",
1089 "src/ic/call-optimization.cc",
1090 "src/ic/call-optimization.h",
1091 "src/ic/handler-compiler.cc",
1092 "src/ic/handler-compiler.h",
1093 "src/ic/ic-inl.h",
1094 "src/ic/ic-state.cc",
1095 "src/ic/ic-state.h",
1096 "src/ic/ic.cc",
1097 "src/ic/ic.h",
1098 "src/ic/ic-compiler.cc",
1099 "src/ic/ic-compiler.h",
1100 "src/ic/stub-cache.cc",
1101 "src/ic/stub-cache.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001102 "src/identity-map.cc",
1103 "src/identity-map.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001104 "src/interface-descriptors.cc",
1105 "src/interface-descriptors.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001106 "src/interpreter/bytecodes.cc",
1107 "src/interpreter/bytecodes.h",
1108 "src/interpreter/bytecode-array-builder.cc",
1109 "src/interpreter/bytecode-array-builder.h",
1110 "src/interpreter/bytecode-array-iterator.cc",
1111 "src/interpreter/bytecode-array-iterator.h",
1112 "src/interpreter/bytecode-generator.cc",
1113 "src/interpreter/bytecode-generator.h",
1114 "src/interpreter/bytecode-register-allocator.cc",
1115 "src/interpreter/bytecode-register-allocator.h",
1116 "src/interpreter/bytecode-traits.h",
1117 "src/interpreter/constant-array-builder.cc",
1118 "src/interpreter/constant-array-builder.h",
1119 "src/interpreter/control-flow-builders.cc",
1120 "src/interpreter/control-flow-builders.h",
Ben Murdoch097c5b22016-05-18 11:27:45 +01001121 "src/interpreter/handler-table-builder.cc",
1122 "src/interpreter/handler-table-builder.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001123 "src/interpreter/interpreter.cc",
1124 "src/interpreter/interpreter.h",
Ben Murdoch097c5b22016-05-18 11:27:45 +01001125 "src/interpreter/interpreter-assembler.cc",
1126 "src/interpreter/interpreter-assembler.h",
1127 "src/interpreter/register-translator.cc",
1128 "src/interpreter/register-translator.h",
1129 "src/interpreter/source-position-table.cc",
1130 "src/interpreter/source-position-table.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001131 "src/isolate-inl.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001132 "src/isolate.cc",
1133 "src/isolate.h",
Ben Murdoch097c5b22016-05-18 11:27:45 +01001134 "src/json-parser.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001135 "src/json-stringifier.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001136 "src/key-accumulator.h",
1137 "src/key-accumulator.cc",
Emily Bernierd0a1eb72015-03-24 16:35:39 -04001138 "src/layout-descriptor-inl.h",
1139 "src/layout-descriptor.cc",
1140 "src/layout-descriptor.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001141 "src/list-inl.h",
1142 "src/list.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001143 "src/log-inl.h",
1144 "src/log-utils.cc",
1145 "src/log-utils.h",
1146 "src/log.cc",
1147 "src/log.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001148 "src/lookup.cc",
1149 "src/lookup.h",
1150 "src/macro-assembler.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001151 "src/machine-type.cc",
1152 "src/machine-type.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001153 "src/messages.cc",
1154 "src/messages.h",
1155 "src/msan.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001156 "src/objects-body-descriptors-inl.h",
1157 "src/objects-body-descriptors.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001158 "src/objects-debug.cc",
1159 "src/objects-inl.h",
1160 "src/objects-printer.cc",
1161 "src/objects.cc",
1162 "src/objects.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001163 "src/optimizing-compile-dispatcher.cc",
1164 "src/optimizing-compile-dispatcher.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001165 "src/ostreams.cc",
1166 "src/ostreams.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001167 "src/parsing/expression-classifier.h",
1168 "src/parsing/func-name-inferrer.cc",
1169 "src/parsing/func-name-inferrer.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001170 "src/parsing/parameter-initializer-rewriter.cc",
1171 "src/parsing/parameter-initializer-rewriter.h",
1172 "src/parsing/parser-base.h",
1173 "src/parsing/parser.cc",
1174 "src/parsing/parser.h",
1175 "src/parsing/pattern-rewriter.cc",
1176 "src/parsing/preparse-data-format.h",
1177 "src/parsing/preparse-data.cc",
1178 "src/parsing/preparse-data.h",
1179 "src/parsing/preparser.cc",
1180 "src/parsing/preparser.h",
1181 "src/parsing/rewriter.cc",
1182 "src/parsing/rewriter.h",
1183 "src/parsing/scanner-character-streams.cc",
1184 "src/parsing/scanner-character-streams.h",
1185 "src/parsing/scanner.cc",
1186 "src/parsing/scanner.h",
1187 "src/parsing/token.cc",
1188 "src/parsing/token.h",
1189 "src/pending-compilation-error-handler.cc",
1190 "src/pending-compilation-error-handler.h",
1191 "src/profiler/allocation-tracker.cc",
1192 "src/profiler/allocation-tracker.h",
1193 "src/profiler/circular-queue-inl.h",
1194 "src/profiler/circular-queue.h",
1195 "src/profiler/cpu-profiler-inl.h",
1196 "src/profiler/cpu-profiler.cc",
1197 "src/profiler/cpu-profiler.h",
1198 "src/profiler/heap-profiler.cc",
1199 "src/profiler/heap-profiler.h",
1200 "src/profiler/heap-snapshot-generator-inl.h",
1201 "src/profiler/heap-snapshot-generator.cc",
1202 "src/profiler/heap-snapshot-generator.h",
1203 "src/profiler/profile-generator-inl.h",
1204 "src/profiler/profile-generator.cc",
1205 "src/profiler/profile-generator.h",
1206 "src/profiler/sampler.cc",
1207 "src/profiler/sampler.h",
Ben Murdoch097c5b22016-05-18 11:27:45 +01001208 "src/profiler/sampling-heap-profiler.cc",
1209 "src/profiler/sampling-heap-profiler.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001210 "src/profiler/strings-storage.cc",
1211 "src/profiler/strings-storage.h",
1212 "src/profiler/unbound-queue-inl.h",
1213 "src/profiler/unbound-queue.h",
1214 "src/property-descriptor.cc",
1215 "src/property-descriptor.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001216 "src/property-details.h",
1217 "src/property.cc",
1218 "src/property.h",
1219 "src/prototype.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001220 "src/regexp/bytecodes-irregexp.h",
1221 "src/regexp/interpreter-irregexp.cc",
1222 "src/regexp/interpreter-irregexp.h",
1223 "src/regexp/jsregexp-inl.h",
1224 "src/regexp/jsregexp.cc",
1225 "src/regexp/jsregexp.h",
1226 "src/regexp/regexp-ast.cc",
1227 "src/regexp/regexp-ast.h",
1228 "src/regexp/regexp-macro-assembler-irregexp-inl.h",
1229 "src/regexp/regexp-macro-assembler-irregexp.cc",
1230 "src/regexp/regexp-macro-assembler-irregexp.h",
1231 "src/regexp/regexp-macro-assembler-tracer.cc",
1232 "src/regexp/regexp-macro-assembler-tracer.h",
1233 "src/regexp/regexp-macro-assembler.cc",
1234 "src/regexp/regexp-macro-assembler.h",
1235 "src/regexp/regexp-parser.cc",
1236 "src/regexp/regexp-parser.h",
1237 "src/regexp/regexp-stack.cc",
1238 "src/regexp/regexp-stack.h",
1239 "src/register-configuration.cc",
1240 "src/register-configuration.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001241 "src/runtime-profiler.cc",
1242 "src/runtime-profiler.h",
Emily Bernierd0a1eb72015-03-24 16:35:39 -04001243 "src/runtime/runtime-array.cc",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001244 "src/runtime/runtime-atomics.cc",
Emily Bernierd0a1eb72015-03-24 16:35:39 -04001245 "src/runtime/runtime-classes.cc",
1246 "src/runtime/runtime-collections.cc",
1247 "src/runtime/runtime-compiler.cc",
1248 "src/runtime/runtime-date.cc",
1249 "src/runtime/runtime-debug.cc",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001250 "src/runtime/runtime-forin.cc",
Emily Bernierd0a1eb72015-03-24 16:35:39 -04001251 "src/runtime/runtime-function.cc",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001252 "src/runtime/runtime-futex.cc",
Emily Bernierd0a1eb72015-03-24 16:35:39 -04001253 "src/runtime/runtime-generator.cc",
1254 "src/runtime/runtime-i18n.cc",
1255 "src/runtime/runtime-internal.cc",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001256 "src/runtime/runtime-interpreter.cc",
Emily Bernierd0a1eb72015-03-24 16:35:39 -04001257 "src/runtime/runtime-json.cc",
1258 "src/runtime/runtime-literals.cc",
1259 "src/runtime/runtime-liveedit.cc",
1260 "src/runtime/runtime-maths.cc",
1261 "src/runtime/runtime-numbers.cc",
1262 "src/runtime/runtime-object.cc",
1263 "src/runtime/runtime-observe.cc",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001264 "src/runtime/runtime-operators.cc",
Emily Bernierd0a1eb72015-03-24 16:35:39 -04001265 "src/runtime/runtime-proxy.cc",
1266 "src/runtime/runtime-regexp.cc",
1267 "src/runtime/runtime-scopes.cc",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001268 "src/runtime/runtime-simd.cc",
Emily Bernierd0a1eb72015-03-24 16:35:39 -04001269 "src/runtime/runtime-strings.cc",
1270 "src/runtime/runtime-symbol.cc",
1271 "src/runtime/runtime-test.cc",
1272 "src/runtime/runtime-typedarray.cc",
1273 "src/runtime/runtime-uri.cc",
1274 "src/runtime/runtime-utils.h",
1275 "src/runtime/runtime.cc",
1276 "src/runtime/runtime.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001277 "src/safepoint-table.cc",
1278 "src/safepoint-table.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001279 "src/signature.h",
1280 "src/simulator.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001281 "src/small-pointer-list.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001282 "src/snapshot/natives.h",
1283 "src/snapshot/natives-common.cc",
1284 "src/snapshot/serialize.cc",
1285 "src/snapshot/serialize.h",
1286 "src/snapshot/snapshot-common.cc",
1287 "src/snapshot/snapshot-source-sink.cc",
1288 "src/snapshot/snapshot-source-sink.h",
Ben Murdoch097c5b22016-05-18 11:27:45 +01001289 "src/source-position.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001290 "src/splay-tree.h",
1291 "src/splay-tree-inl.h",
1292 "src/snapshot/snapshot.h",
1293 "src/startup-data-util.h",
1294 "src/startup-data-util.cc",
Emily Bernierd0a1eb72015-03-24 16:35:39 -04001295 "src/string-builder.cc",
1296 "src/string-builder.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001297 "src/string-search.h",
1298 "src/string-stream.cc",
1299 "src/string-stream.h",
1300 "src/strtod.cc",
1301 "src/strtod.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001302 "src/tracing/trace-event.cc",
1303 "src/tracing/trace-event.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001304 "src/transitions-inl.h",
1305 "src/transitions.cc",
1306 "src/transitions.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001307 "src/type-cache.cc",
1308 "src/type-cache.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001309 "src/type-feedback-vector-inl.h",
1310 "src/type-feedback-vector.cc",
1311 "src/type-feedback-vector.h",
1312 "src/type-info.cc",
1313 "src/type-info.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001314 "src/types.cc",
1315 "src/types.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001316 "src/typing-asm.cc",
1317 "src/typing-asm.h",
1318 "src/typing-reset.cc",
1319 "src/typing-reset.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001320 "src/unicode-inl.h",
1321 "src/unicode.cc",
1322 "src/unicode.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001323 "src/unicode-cache-inl.h",
1324 "src/unicode-cache.h",
Emily Bernierd0a1eb72015-03-24 16:35:39 -04001325 "src/unicode-decoder.cc",
1326 "src/unicode-decoder.h",
Ben Murdoch097c5b22016-05-18 11:27:45 +01001327 "src/utils-inl.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001328 "src/utils.cc",
1329 "src/utils.h",
1330 "src/v8.cc",
1331 "src/v8.h",
1332 "src/v8memory.h",
1333 "src/v8threads.cc",
1334 "src/v8threads.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001335 "src/version.cc",
1336 "src/version.h",
1337 "src/vm-state-inl.h",
1338 "src/vm-state.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001339 "src/wasm/asm-wasm-builder.cc",
1340 "src/wasm/asm-wasm-builder.h",
1341 "src/wasm/ast-decoder.cc",
1342 "src/wasm/ast-decoder.h",
1343 "src/wasm/decoder.h",
1344 "src/wasm/encoder.cc",
1345 "src/wasm/encoder.h",
1346 "src/wasm/module-decoder.cc",
1347 "src/wasm/module-decoder.h",
1348 "src/wasm/wasm-js.cc",
1349 "src/wasm/wasm-js.h",
1350 "src/wasm/wasm-macro-gen.h",
1351 "src/wasm/wasm-module.cc",
1352 "src/wasm/wasm-module.h",
1353 "src/wasm/wasm-opcodes.cc",
1354 "src/wasm/wasm-opcodes.h",
1355 "src/wasm/wasm-result.cc",
1356 "src/wasm/wasm-result.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001357 "src/zone.cc",
1358 "src/zone.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001359 "src/zone-allocator.h",
1360 "src/zone-containers.h",
Emily Bernierd0a1eb72015-03-24 16:35:39 -04001361 "src/third_party/fdlibm/fdlibm.cc",
1362 "src/third_party/fdlibm/fdlibm.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001363 ]
1364
1365 if (v8_target_arch == "x86") {
1366 sources += [
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001367 "src/crankshaft/ia32/lithium-codegen-ia32.cc",
1368 "src/crankshaft/ia32/lithium-codegen-ia32.h",
1369 "src/crankshaft/ia32/lithium-gap-resolver-ia32.cc",
1370 "src/crankshaft/ia32/lithium-gap-resolver-ia32.h",
1371 "src/crankshaft/ia32/lithium-ia32.cc",
1372 "src/crankshaft/ia32/lithium-ia32.h",
1373 "src/compiler/ia32/code-generator-ia32.cc",
1374 "src/compiler/ia32/instruction-codes-ia32.h",
1375 "src/compiler/ia32/instruction-scheduler-ia32.cc",
1376 "src/compiler/ia32/instruction-selector-ia32.cc",
1377 "src/debug/ia32/debug-ia32.cc",
1378 "src/full-codegen/ia32/full-codegen-ia32.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001379 "src/ia32/assembler-ia32-inl.h",
1380 "src/ia32/assembler-ia32.cc",
1381 "src/ia32/assembler-ia32.h",
1382 "src/ia32/builtins-ia32.cc",
1383 "src/ia32/code-stubs-ia32.cc",
1384 "src/ia32/code-stubs-ia32.h",
1385 "src/ia32/codegen-ia32.cc",
1386 "src/ia32/codegen-ia32.h",
1387 "src/ia32/cpu-ia32.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001388 "src/ia32/deoptimizer-ia32.cc",
1389 "src/ia32/disasm-ia32.cc",
1390 "src/ia32/frames-ia32.cc",
1391 "src/ia32/frames-ia32.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001392 "src/ia32/interface-descriptors-ia32.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001393 "src/ia32/macro-assembler-ia32.cc",
1394 "src/ia32/macro-assembler-ia32.h",
Emily Bernierd0a1eb72015-03-24 16:35:39 -04001395 "src/ic/ia32/access-compiler-ia32.cc",
1396 "src/ic/ia32/handler-compiler-ia32.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001397 "src/ic/ia32/ic-ia32.cc",
1398 "src/ic/ia32/ic-compiler-ia32.cc",
1399 "src/ic/ia32/stub-cache-ia32.cc",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001400 "src/regexp/ia32/regexp-macro-assembler-ia32.cc",
1401 "src/regexp/ia32/regexp-macro-assembler-ia32.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001402 ]
1403 } else if (v8_target_arch == "x64") {
1404 sources += [
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001405 "src/compiler/x64/code-generator-x64.cc",
1406 "src/compiler/x64/instruction-codes-x64.h",
1407 "src/compiler/x64/instruction-scheduler-x64.cc",
1408 "src/compiler/x64/instruction-selector-x64.cc",
1409 "src/crankshaft/x64/lithium-codegen-x64.cc",
1410 "src/crankshaft/x64/lithium-codegen-x64.h",
1411 "src/crankshaft/x64/lithium-gap-resolver-x64.cc",
1412 "src/crankshaft/x64/lithium-gap-resolver-x64.h",
1413 "src/crankshaft/x64/lithium-x64.cc",
1414 "src/crankshaft/x64/lithium-x64.h",
1415 "src/debug/x64/debug-x64.cc",
1416 "src/full-codegen/x64/full-codegen-x64.cc",
1417 "src/ic/x64/access-compiler-x64.cc",
1418 "src/ic/x64/handler-compiler-x64.cc",
1419 "src/ic/x64/ic-x64.cc",
1420 "src/ic/x64/ic-compiler-x64.cc",
1421 "src/ic/x64/stub-cache-x64.cc",
1422 "src/regexp/x64/regexp-macro-assembler-x64.cc",
1423 "src/regexp/x64/regexp-macro-assembler-x64.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001424 "src/x64/assembler-x64-inl.h",
1425 "src/x64/assembler-x64.cc",
1426 "src/x64/assembler-x64.h",
1427 "src/x64/builtins-x64.cc",
1428 "src/x64/code-stubs-x64.cc",
1429 "src/x64/code-stubs-x64.h",
1430 "src/x64/codegen-x64.cc",
1431 "src/x64/codegen-x64.h",
1432 "src/x64/cpu-x64.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001433 "src/x64/deoptimizer-x64.cc",
1434 "src/x64/disasm-x64.cc",
1435 "src/x64/frames-x64.cc",
1436 "src/x64/frames-x64.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001437 "src/x64/interface-descriptors-x64.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001438 "src/x64/macro-assembler-x64.cc",
1439 "src/x64/macro-assembler-x64.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001440 ]
1441 } else if (v8_target_arch == "arm") {
1442 sources += [
1443 "src/arm/assembler-arm-inl.h",
1444 "src/arm/assembler-arm.cc",
1445 "src/arm/assembler-arm.h",
1446 "src/arm/builtins-arm.cc",
1447 "src/arm/code-stubs-arm.cc",
1448 "src/arm/code-stubs-arm.h",
1449 "src/arm/codegen-arm.cc",
1450 "src/arm/codegen-arm.h",
1451 "src/arm/constants-arm.h",
1452 "src/arm/constants-arm.cc",
1453 "src/arm/cpu-arm.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001454 "src/arm/deoptimizer-arm.cc",
1455 "src/arm/disasm-arm.cc",
1456 "src/arm/frames-arm.cc",
1457 "src/arm/frames-arm.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001458 "src/arm/interface-descriptors-arm.cc",
1459 "src/arm/interface-descriptors-arm.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001460 "src/arm/macro-assembler-arm.cc",
1461 "src/arm/macro-assembler-arm.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001462 "src/arm/simulator-arm.cc",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001463 "src/arm/simulator-arm.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001464 "src/compiler/arm/code-generator-arm.cc",
1465 "src/compiler/arm/instruction-codes-arm.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001466 "src/compiler/arm/instruction-scheduler-arm.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001467 "src/compiler/arm/instruction-selector-arm.cc",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001468 "src/crankshaft/arm/lithium-arm.cc",
1469 "src/crankshaft/arm/lithium-arm.h",
1470 "src/crankshaft/arm/lithium-codegen-arm.cc",
1471 "src/crankshaft/arm/lithium-codegen-arm.h",
1472 "src/crankshaft/arm/lithium-gap-resolver-arm.cc",
1473 "src/crankshaft/arm/lithium-gap-resolver-arm.h",
1474 "src/debug/arm/debug-arm.cc",
1475 "src/full-codegen/arm/full-codegen-arm.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001476 "src/ic/arm/access-compiler-arm.cc",
1477 "src/ic/arm/handler-compiler-arm.cc",
1478 "src/ic/arm/ic-arm.cc",
1479 "src/ic/arm/ic-compiler-arm.cc",
1480 "src/ic/arm/stub-cache-arm.cc",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001481 "src/regexp/arm/regexp-macro-assembler-arm.cc",
1482 "src/regexp/arm/regexp-macro-assembler-arm.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001483 ]
1484 } else if (v8_target_arch == "arm64") {
1485 sources += [
1486 "src/arm64/assembler-arm64.cc",
1487 "src/arm64/assembler-arm64.h",
1488 "src/arm64/assembler-arm64-inl.h",
1489 "src/arm64/builtins-arm64.cc",
1490 "src/arm64/codegen-arm64.cc",
1491 "src/arm64/codegen-arm64.h",
1492 "src/arm64/code-stubs-arm64.cc",
1493 "src/arm64/code-stubs-arm64.h",
1494 "src/arm64/constants-arm64.h",
1495 "src/arm64/cpu-arm64.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001496 "src/arm64/decoder-arm64.cc",
1497 "src/arm64/decoder-arm64.h",
1498 "src/arm64/decoder-arm64-inl.h",
1499 "src/arm64/deoptimizer-arm64.cc",
1500 "src/arm64/disasm-arm64.cc",
1501 "src/arm64/disasm-arm64.h",
1502 "src/arm64/frames-arm64.cc",
1503 "src/arm64/frames-arm64.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001504 "src/arm64/instructions-arm64.cc",
1505 "src/arm64/instructions-arm64.h",
1506 "src/arm64/instrument-arm64.cc",
1507 "src/arm64/instrument-arm64.h",
1508 "src/arm64/interface-descriptors-arm64.cc",
1509 "src/arm64/interface-descriptors-arm64.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001510 "src/arm64/macro-assembler-arm64.cc",
1511 "src/arm64/macro-assembler-arm64.h",
1512 "src/arm64/macro-assembler-arm64-inl.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001513 "src/arm64/simulator-arm64.cc",
1514 "src/arm64/simulator-arm64.h",
1515 "src/arm64/utils-arm64.cc",
1516 "src/arm64/utils-arm64.h",
1517 "src/compiler/arm64/code-generator-arm64.cc",
1518 "src/compiler/arm64/instruction-codes-arm64.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001519 "src/compiler/arm64/instruction-scheduler-arm64.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001520 "src/compiler/arm64/instruction-selector-arm64.cc",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001521 "src/crankshaft/arm64/delayed-masm-arm64.cc",
1522 "src/crankshaft/arm64/delayed-masm-arm64.h",
1523 "src/crankshaft/arm64/delayed-masm-arm64-inl.h",
1524 "src/crankshaft/arm64/lithium-arm64.cc",
1525 "src/crankshaft/arm64/lithium-arm64.h",
1526 "src/crankshaft/arm64/lithium-codegen-arm64.cc",
1527 "src/crankshaft/arm64/lithium-codegen-arm64.h",
1528 "src/crankshaft/arm64/lithium-gap-resolver-arm64.cc",
1529 "src/crankshaft/arm64/lithium-gap-resolver-arm64.h",
1530 "src/debug/arm64/debug-arm64.cc",
1531 "src/full-codegen/arm64/full-codegen-arm64.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001532 "src/ic/arm64/access-compiler-arm64.cc",
1533 "src/ic/arm64/handler-compiler-arm64.cc",
1534 "src/ic/arm64/ic-arm64.cc",
1535 "src/ic/arm64/ic-compiler-arm64.cc",
1536 "src/ic/arm64/stub-cache-arm64.cc",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001537 "src/regexp/arm64/regexp-macro-assembler-arm64.cc",
1538 "src/regexp/arm64/regexp-macro-assembler-arm64.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001539 ]
1540 } else if (v8_target_arch == "mipsel") {
1541 sources += [
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001542 "src/compiler/mips/code-generator-mips.cc",
1543 "src/compiler/mips/instruction-codes-mips.h",
1544 "src/compiler/mips/instruction-scheduler-mips.cc",
1545 "src/compiler/mips/instruction-selector-mips.cc",
1546 "src/crankshaft/mips/lithium-codegen-mips.cc",
1547 "src/crankshaft/mips/lithium-codegen-mips.h",
1548 "src/crankshaft/mips/lithium-gap-resolver-mips.cc",
1549 "src/crankshaft/mips/lithium-gap-resolver-mips.h",
1550 "src/crankshaft/mips/lithium-mips.cc",
1551 "src/crankshaft/mips/lithium-mips.h",
1552 "src/debug/mips/debug-mips.cc",
1553 "src/full-codegen/mips/full-codegen-mips.cc",
1554 "src/ic/mips/access-compiler-mips.cc",
1555 "src/ic/mips/handler-compiler-mips.cc",
1556 "src/ic/mips/ic-mips.cc",
1557 "src/ic/mips/ic-compiler-mips.cc",
1558 "src/ic/mips/stub-cache-mips.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001559 "src/mips/assembler-mips.cc",
1560 "src/mips/assembler-mips.h",
1561 "src/mips/assembler-mips-inl.h",
1562 "src/mips/builtins-mips.cc",
1563 "src/mips/codegen-mips.cc",
1564 "src/mips/codegen-mips.h",
1565 "src/mips/code-stubs-mips.cc",
1566 "src/mips/code-stubs-mips.h",
1567 "src/mips/constants-mips.cc",
1568 "src/mips/constants-mips.h",
1569 "src/mips/cpu-mips.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001570 "src/mips/deoptimizer-mips.cc",
1571 "src/mips/disasm-mips.cc",
1572 "src/mips/frames-mips.cc",
1573 "src/mips/frames-mips.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001574 "src/mips/interface-descriptors-mips.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001575 "src/mips/macro-assembler-mips.cc",
1576 "src/mips/macro-assembler-mips.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001577 "src/mips/simulator-mips.cc",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001578 "src/mips/simulator-mips.h",
1579 "src/regexp/mips/regexp-macro-assembler-mips.cc",
1580 "src/regexp/mips/regexp-macro-assembler-mips.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001581 ]
1582 } else if (v8_target_arch == "mips64el") {
1583 sources += [
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001584 "compiler/mips64/code-generator-mips64.cc",
1585 "compiler/mips64/instruction-codes-mips64.h",
1586 "compiler/mips64/instruction-scheduler-mips64.cc",
1587 "compiler/mips64/instruction-selector-mips64.cc",
1588 "src/crankshaft/mips64/lithium-codegen-mips64.cc",
1589 "src/crankshaft/mips64/lithium-codegen-mips64.h",
1590 "src/crankshaft/mips64/lithium-gap-resolver-mips64.cc",
1591 "src/crankshaft/mips64/lithium-gap-resolver-mips64.h",
1592 "src/crankshaft/mips64/lithium-mips64.cc",
1593 "src/crankshaft/mips64/lithium-mips64.h",
1594 "src/debug/mips64/debug-mips64.cc",
1595 "src/full-codegen/mips64/full-codegen-mips64.cc",
1596 "src/ic/mips64/access-compiler-mips64.cc",
1597 "src/ic/mips64/handler-compiler-mips64.cc",
1598 "src/ic/mips64/ic-mips64.cc",
1599 "src/ic/mips64/ic-compiler-mips64.cc",
1600 "src/ic/mips64/stub-cache-mips64.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001601 "src/mips64/assembler-mips64.cc",
1602 "src/mips64/assembler-mips64.h",
1603 "src/mips64/assembler-mips64-inl.h",
1604 "src/mips64/builtins-mips64.cc",
1605 "src/mips64/codegen-mips64.cc",
1606 "src/mips64/codegen-mips64.h",
1607 "src/mips64/code-stubs-mips64.cc",
1608 "src/mips64/code-stubs-mips64.h",
1609 "src/mips64/constants-mips64.cc",
1610 "src/mips64/constants-mips64.h",
1611 "src/mips64/cpu-mips64.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001612 "src/mips64/deoptimizer-mips64.cc",
1613 "src/mips64/disasm-mips64.cc",
1614 "src/mips64/frames-mips64.cc",
1615 "src/mips64/frames-mips64.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001616 "src/mips64/interface-descriptors-mips64.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001617 "src/mips64/macro-assembler-mips64.cc",
1618 "src/mips64/macro-assembler-mips64.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001619 "src/mips64/simulator-mips64.cc",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001620 "src/mips64/simulator-mips64.h",
1621 "src/regexp/mips64/regexp-macro-assembler-mips64.cc",
1622 "src/regexp/mips64/regexp-macro-assembler-mips64.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001623 ]
1624 }
1625
1626 configs -= [ "//build/config/compiler:chromium_code" ]
1627 configs += [ "//build/config/compiler:no_chromium_code" ]
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001628 configs += [
1629 ":internal_config",
1630 ":features",
1631 ":toolchain",
1632 ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001633
1634 if (!is_debug) {
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001635 configs -= [ "//build/config/compiler:default_optimization" ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001636 configs += [ "//build/config/compiler:optimize_max" ]
1637 }
1638
1639 defines = []
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001640 deps = [
1641 ":v8_libbase",
1642 ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001643
1644 if (is_win) {
1645 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1646 cflags = [ "/wd4267" ]
1647 }
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001648
1649 if (v8_enable_i18n_support) {
1650 deps += [ "//third_party/icu" ]
1651 if (is_win) {
1652 deps += [ "//third_party/icu:icudata" ]
1653 }
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001654
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001655 # TODO(jochen): Add support for icu_use_data_file_flag
1656 defines += [ "ICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE" ]
1657 } else {
1658 sources -= [
1659 "src/i18n.cc",
1660 "src/i18n.h",
1661 ]
1662 }
1663
1664 if (v8_postmortem_support) {
1665 sources += [ "$target_gen_dir/debug-support.cc" ]
1666 deps += [ ":postmortem-metadata" ]
1667 }
1668}
1669
1670source_set("v8_libbase") {
1671 visibility = [ ":*" ] # Only targets in this file can depend on this.
1672
1673 sources = [
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001674 "src/base/adapters.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001675 "src/base/atomicops.h",
1676 "src/base/atomicops_internals_arm64_gcc.h",
1677 "src/base/atomicops_internals_arm_gcc.h",
1678 "src/base/atomicops_internals_atomicword_compat.h",
1679 "src/base/atomicops_internals_mac.h",
1680 "src/base/atomicops_internals_mips_gcc.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001681 "src/base/atomicops_internals_mips64_gcc.h",
1682 "src/base/atomicops_internals_portable.h",
Ben Murdoch097c5b22016-05-18 11:27:45 +01001683 "src/base/atomicops_internals_s390_gcc.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001684 "src/base/atomicops_internals_tsan.h",
1685 "src/base/atomicops_internals_x86_gcc.cc",
1686 "src/base/atomicops_internals_x86_gcc.h",
1687 "src/base/atomicops_internals_x86_msvc.h",
1688 "src/base/bits.cc",
1689 "src/base/bits.h",
1690 "src/base/build_config.h",
1691 "src/base/cpu.cc",
1692 "src/base/cpu.h",
1693 "src/base/division-by-constant.cc",
1694 "src/base/division-by-constant.h",
1695 "src/base/flags.h",
Emily Bernierd0a1eb72015-03-24 16:35:39 -04001696 "src/base/functional.cc",
1697 "src/base/functional.h",
1698 "src/base/iterator.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001699 "src/base/lazy-instance.h",
1700 "src/base/logging.cc",
1701 "src/base/logging.h",
1702 "src/base/macros.h",
1703 "src/base/once.cc",
1704 "src/base/once.h",
1705 "src/base/platform/elapsed-timer.h",
1706 "src/base/platform/time.cc",
1707 "src/base/platform/time.h",
1708 "src/base/platform/condition-variable.cc",
1709 "src/base/platform/condition-variable.h",
1710 "src/base/platform/mutex.cc",
1711 "src/base/platform/mutex.h",
1712 "src/base/platform/platform.h",
1713 "src/base/platform/semaphore.cc",
1714 "src/base/platform/semaphore.h",
1715 "src/base/safe_conversions.h",
1716 "src/base/safe_conversions_impl.h",
1717 "src/base/safe_math.h",
1718 "src/base/safe_math_impl.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001719 "src/base/smart-pointers.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001720 "src/base/sys-info.cc",
1721 "src/base/sys-info.h",
1722 "src/base/utils/random-number-generator.cc",
1723 "src/base/utils/random-number-generator.h",
1724 ]
1725
1726 configs -= [ "//build/config/compiler:chromium_code" ]
1727 configs += [ "//build/config/compiler:no_chromium_code" ]
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001728 configs += [
1729 ":internal_config_base",
1730 ":features",
1731 ":toolchain",
1732 ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001733
1734 if (!is_debug) {
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001735 configs -= [ "//build/config/compiler:default_optimization" ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001736 configs += [ "//build/config/compiler:optimize_max" ]
1737 }
1738
1739 defines = []
1740
1741 if (is_posix) {
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001742 sources += [ "src/base/platform/platform-posix.cc" ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001743 }
1744
1745 if (is_linux) {
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001746 sources += [ "src/base/platform/platform-linux.cc" ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001747
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001748 libs = [ "dl", "rt" ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001749 } else if (is_android) {
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001750 if (current_toolchain == host_toolchain) {
1751 libs = [ "dl", "rt" ]
1752 if (host_os == "mac") {
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001753 sources += [ "src/base/platform/platform-macos.cc" ]
1754 } else {
1755 sources += [ "src/base/platform/platform-linux.cc" ]
1756 }
1757 } else {
1758 sources += [ "src/base/platform/platform-linux.cc" ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001759 }
1760 } else if (is_mac) {
1761 sources += [ "src/base/platform/platform-macos.cc" ]
1762 } else if (is_win) {
1763 # TODO(jochen): Add support for cygwin.
1764 sources += [
1765 "src/base/platform/platform-win32.cc",
1766 "src/base/win32-headers.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001767 ]
1768
1769 defines += [ "_CRT_RAND_S" ] # for rand_s()
1770
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001771 libs = [
1772 "winmm.lib",
1773 "ws2_32.lib",
1774 ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001775 }
1776
1777 # TODO(jochen): Add support for qnx, freebsd, openbsd, netbsd, and solaris.
1778}
1779
1780source_set("v8_libplatform") {
1781 sources = [
1782 "include/libplatform/libplatform.h",
1783 "src/libplatform/default-platform.cc",
1784 "src/libplatform/default-platform.h",
1785 "src/libplatform/task-queue.cc",
1786 "src/libplatform/task-queue.h",
1787 "src/libplatform/worker-thread.cc",
1788 "src/libplatform/worker-thread.h",
1789 ]
1790
1791 configs -= [ "//build/config/compiler:chromium_code" ]
1792 configs += [ "//build/config/compiler:no_chromium_code" ]
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001793 configs += [
1794 ":internal_config_base",
1795 ":features",
1796 ":toolchain",
1797 ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001798
1799 if (!is_debug) {
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001800 configs -= [ "//build/config/compiler:default_optimization" ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001801 configs += [ "//build/config/compiler:optimize_max" ]
1802 }
1803
1804 deps = [
1805 ":v8_libbase",
1806 ]
1807}
1808
Ben Murdoch097c5b22016-05-18 11:27:45 +01001809source_set("fuzzer_support") {
1810 visibility = [ ":*" ] # Only targets in this file can depend on this.
1811
1812 sources = [
1813 "test/fuzzer/fuzzer-support.cc",
1814 "test/fuzzer/fuzzer-support.h",
1815 ]
1816
1817 configs -= [ "//build/config/compiler:chromium_code" ]
1818 configs += [ "//build/config/compiler:no_chromium_code" ]
1819 configs += [
1820 ":internal_config_base",
1821 ":features",
1822 ":toolchain",
1823 ]
1824
1825 deps = [
1826 ":v8_libplatform",
1827 snapshot_target,
1828 ]
1829}
1830
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001831###############################################################################
1832# Executables
1833#
1834
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001835if (current_toolchain == snapshot_toolchain) {
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001836 executable("mksnapshot") {
1837 visibility = [ ":*" ] # Only targets in this file can depend on this.
1838
1839 sources = [
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001840 "src/snapshot/mksnapshot.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001841 ]
1842
1843 configs -= [ "//build/config/compiler:chromium_code" ]
1844 configs += [ "//build/config/compiler:no_chromium_code" ]
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001845 configs += [
1846 ":internal_config",
1847 ":features",
1848 ":toolchain",
1849 ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001850
1851 deps = [
1852 ":v8_base",
1853 ":v8_libplatform",
1854 ":v8_nosnapshot",
Emily Bernierd0a1eb72015-03-24 16:35:39 -04001855 "//build/config/sanitizers:deps",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001856 ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001857 }
1858}
1859
1860###############################################################################
1861# Public targets
1862#
1863
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001864if (is_component_build) {
1865 component("v8") {
1866 sources = [
1867 "src/v8dll-main.cc",
1868 ]
1869
1870 public_deps = [
1871 ":v8_base",
1872 snapshot_target,
1873 ]
1874
1875 configs -= [ "//build/config/compiler:chromium_code" ]
1876 configs += [ "//build/config/compiler:no_chromium_code" ]
1877 configs += [
1878 ":internal_config",
1879 ":features",
1880 ":toolchain",
1881 ]
1882
1883 public_configs = [ ":external_config" ]
1884
1885 libs = []
1886 if (is_android && current_toolchain != host_toolchain) {
1887 libs += [ "log" ]
1888 }
1889 }
1890} else {
1891 group("v8") {
1892 public_deps = [
1893 ":v8_base",
1894 snapshot_target,
1895 ]
1896 public_configs = [ ":external_config" ]
1897 }
1898}
1899
1900if ((current_toolchain == host_toolchain && v8_toolset_for_d8 == "host") ||
1901 (current_toolchain == snapshot_toolchain && v8_toolset_for_d8 == "host") ||
1902 (current_toolchain != host_toolchain && v8_toolset_for_d8 == "target")) {
1903 executable("d8") {
1904 sources = [
1905 "src/d8.cc",
1906 "src/d8.h",
1907 ]
1908
1909 configs -= [ "//build/config/compiler:chromium_code" ]
1910 configs += [ "//build/config/compiler:no_chromium_code" ]
1911 configs += [
1912 # Note: don't use :internal_config here because this target will get
1913 # the :external_config applied to it by virtue of depending on :v8, and
1914 # you can't have both applied to the same target.
1915 ":internal_config_base",
1916 ":features",
1917 ":toolchain",
1918 ]
1919
1920 deps = [
1921 ":d8_js2c",
1922 ":v8",
1923 ":v8_libplatform",
1924 "//build/config/sanitizers:deps",
1925 ]
1926
1927 # TODO(jochen): Add support for vtunejit.
1928
1929 if (is_posix) {
1930 sources += [ "src/d8-posix.cc" ]
1931 } else if (is_win) {
1932 sources += [ "src/d8-windows.cc" ]
1933 }
1934
1935 if (!is_component_build) {
1936 sources += [
1937 "$target_gen_dir/d8-js.cc",
1938 ]
1939 }
1940 if (v8_enable_i18n_support) {
1941 deps += [ "//third_party/icu" ]
1942 }
1943 }
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001944}
Ben Murdoch097c5b22016-05-18 11:27:45 +01001945
1946source_set("json_fuzzer") {
1947 sources = [
1948 "test/fuzzer/json.cc",
1949 ]
1950
1951 deps = [
1952 ":fuzzer_support",
1953 ]
1954
1955 configs -= [ "//build/config/compiler:chromium_code" ]
1956 configs += [ "//build/config/compiler:no_chromium_code" ]
1957 configs += [
1958 ":internal_config",
1959 ":features",
1960 ":toolchain",
1961 ]
1962}
1963
1964source_set("parser_fuzzer") {
1965 sources = [
1966 "test/fuzzer/parser.cc",
1967 ]
1968
1969 deps = [
1970 ":fuzzer_support",
1971 ]
1972
1973 configs -= [ "//build/config/compiler:chromium_code" ]
1974 configs += [ "//build/config/compiler:no_chromium_code" ]
1975 configs += [
1976 ":internal_config",
1977 ":features",
1978 ":toolchain",
1979 ]
1980}
1981
1982source_set("regexp_fuzzer") {
1983 sources = [
1984 "test/fuzzer/regexp.cc",
1985 ]
1986
1987 deps = [
1988 ":fuzzer_support",
1989 ]
1990
1991 configs -= [ "//build/config/compiler:chromium_code" ]
1992 configs += [ "//build/config/compiler:no_chromium_code" ]
1993 configs += [
1994 ":internal_config",
1995 ":features",
1996 ":toolchain",
1997 ]
1998}