blob: 28aca24afc81c4ccbf7f8f6fad9e343b11c01c3e [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
Ben Murdochda12d292016-06-02 14:46:10 +010024
25 # Similar to vfp but on MIPS.
26 v8_can_use_fpu_instructions = true
27
28 # Similar to the ARM hard float ABI but on MIPS.
29 v8_use_mips_abi_hardfloat = true
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000030}
Emily Bernierd0a1eb72015-03-24 16:35:39 -040031
Ben Murdochb8a8cc12014-11-26 15:28:44 +000032# TODO(jochen): These will need to be user-settable to support standalone V8
33# builds.
Ben Murdochb8a8cc12014-11-26 15:28:44 +000034v8_deprecation_warnings = false
35v8_enable_disassembler = false
36v8_enable_gdbjit = false
Ben Murdochda12d292016-06-02 14:46:10 +010037v8_enable_handle_zapping = false
Ben Murdochb8a8cc12014-11-26 15:28:44 +000038v8_enable_i18n_support = true
39v8_enable_verify_heap = false
40v8_interpreted_regexp = false
41v8_object_print = false
42v8_postmortem_support = false
Ben Murdochb8a8cc12014-11-26 15:28:44 +000043v8_random_seed = "314159265"
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000044v8_toolset_for_d8 = "host"
Ben Murdochb8a8cc12014-11-26 15:28:44 +000045
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000046if (is_msan) {
47 # Running the V8-generated code on an ARM simulator is a powerful hack that
48 # allows the tool to see the memory accesses from JITted code. Without this
49 # flag, JS code causes false positive reports from MSan.
50 v8_target_arch = "arm64"
51} else {
52 v8_target_arch = target_cpu
53}
Ben Murdochb8a8cc12014-11-26 15:28:44 +000054
Ben Murdoch097c5b22016-05-18 11:27:45 +010055if (v8_use_snapshot && v8_use_external_startup_data) {
56 snapshot_target = ":v8_external_snapshot"
57} else if (v8_use_snapshot) {
58 snapshot_target = ":v8_snapshot"
59} else {
60 assert(!v8_use_external_startup_data)
61 snapshot_target = ":v8_nosnapshot"
62}
63
Ben Murdochb8a8cc12014-11-26 15:28:44 +000064###############################################################################
65# Configurations
66#
67config("internal_config") {
68 visibility = [ ":*" ] # Only targets in this file can depend on this.
69
70 include_dirs = [ "." ]
71
Ben Murdoch4a90d5f2016-03-22 12:00:34 +000072 if (is_component_build) {
Ben Murdochb8a8cc12014-11-26 15:28:44 +000073 defines = [
74 "V8_SHARED",
75 "BUILDING_V8_SHARED",
76 ]
77 }
78}
79
80config("internal_config_base") {
81 visibility = [ ":*" ] # Only targets in this file can depend on this.
82
83 include_dirs = [ "." ]
84}
85
Ben Murdochda12d292016-06-02 14:46:10 +010086# This config should be applied to code using the libplatform.
87config("libplatform_config") {
88 include_dirs = [ "include" ]
89}
90
Ben Murdochb8a8cc12014-11-26 15:28:44 +000091# This config should only be applied to code using V8 and not any V8 code
92# itself.
93config("external_config") {
94 if (is_component_build) {
95 defines = [
96 "V8_SHARED",
97 "USING_V8_SHARED",
98 ]
99 }
100 include_dirs = [ "include" ]
101}
102
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000103# This config should only be applied to code that needs to be explicitly
104# aware of whether we are using startup data or not.
105config("external_startup_data") {
106 if (v8_use_external_startup_data) {
107 defines = [ "V8_USE_EXTERNAL_STARTUP_DATA" ]
108 }
109}
110
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000111config("features") {
112 visibility = [ ":*" ] # Only targets in this file can depend on this.
113
114 defines = []
115
116 if (v8_enable_disassembler == true) {
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000117 defines += [ "ENABLE_DISASSEMBLER" ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000118 }
119 if (v8_enable_gdbjit == true) {
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000120 defines += [ "ENABLE_GDB_JIT_INTERFACE" ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000121 }
122 if (v8_object_print == true) {
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000123 defines += [ "OBJECT_PRINT" ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000124 }
125 if (v8_enable_verify_heap == true) {
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000126 defines += [ "VERIFY_HEAP" ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000127 }
128 if (v8_interpreted_regexp == true) {
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000129 defines += [ "V8_INTERPRETED_REGEXP" ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000130 }
131 if (v8_deprecation_warnings == true) {
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000132 defines += [ "V8_DEPRECATION_WARNINGS" ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000133 }
134 if (v8_enable_i18n_support == true) {
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000135 defines += [ "V8_I18N_SUPPORT" ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000136 }
137 if (v8_enable_handle_zapping == true) {
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000138 defines += [ "ENABLE_HANDLE_ZAPPING" ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000139 }
140 if (v8_use_external_startup_data == true) {
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000141 defines += [ "V8_USE_EXTERNAL_STARTUP_DATA" ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000142 }
143}
144
145config("toolchain") {
146 visibility = [ ":*" ] # Only targets in this file can depend on this.
147
148 defines = []
149 cflags = []
150
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000151 if (v8_target_arch == "arm") {
152 defines += [ "V8_TARGET_ARCH_ARM" ]
Ben Murdochda12d292016-06-02 14:46:10 +0100153 if (arm_version == 7) {
154 defines += [ "CAN_USE_ARMV7_INSTRUCTIONS" ]
155 }
156 if (arm_fpu == "vfpv3-d16") {
157 defines += [ "CAN_USE_VFP3_INSTRUCTIONS" ]
158 } else if (arm_fpu == "vfpv3") {
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000159 defines += [
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000160 "CAN_USE_VFP3_INSTRUCTIONS",
161 "CAN_USE_VFP32DREGS",
Ben Murdochda12d292016-06-02 14:46:10 +0100162 ]
163 } else if (arm_fpu == "neon") {
164 defines += [
165 "CAN_USE_VFP3_INSTRUCTIONS",
166 "CAN_USE_VFP32DREGS",
167 "CAN_USE_NEON",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000168 ]
169 }
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000170 # TODO(jochen): Add support for arm_test_noprobe.
Ben Murdochda12d292016-06-02 14:46:10 +0100171
172 if (current_cpu != "arm") {
173 # These defines ares used for the ARM simulator.
174 if (arm_float_abi == "hard") {
175 defines += [ "USE_EABI_HARDFLOAT=1" ]
176 } else if (arm_float_abi == "softfp") {
177 defines += [ "USE_EABI_HARDFLOAT=0" ]
178 }
179 }
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000180 }
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000181 if (v8_target_arch == "arm64") {
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000182 defines += [ "V8_TARGET_ARCH_ARM64" ]
183 }
Ben Murdochda12d292016-06-02 14:46:10 +0100184 # TODO(jochen): Add support for mips.
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000185 if (v8_target_arch == "mipsel") {
186 defines += [ "V8_TARGET_ARCH_MIPS" ]
Ben Murdochda12d292016-06-02 14:46:10 +0100187 if (v8_can_use_fpu_instructions) {
188 defines += [ "CAN_USE_FPU_INSTRUCTIONS" ]
189 }
190 if (v8_use_mips_abi_hardfloat) {
191 defines += [
192 "__mips_hard_float=1",
193 "CAN_USE_FPU_INSTRUCTIONS",
194 ]
195 } else {
196 defines += [ "__mips_soft_float=1" ]
197 }
198 if (mips_arch_variant == "r6") {
199 defines += [
200 "_MIPS_ARCH_MIPS32R6",
201 "FPU_MODE_FP64",
202 ]
203 } else if (mips_arch_variant == "r2") {
204 defines += [ "_MIPS_ARCH_MIPS32R2" ]
205 if (mips_fpu_mode == "fp64") {
206 defines += [ "FPU_MODE_FP64" ]
207 } else if (mips_fpu_mode == "fpxx") {
208 defines += [ "FPU_MODE_FPXX" ]
209 } else if (mips_fpu_mode == "fp32") {
210 defines += [ "FPU_MODE_FP32" ]
211 }
212 } else if (mips_arch_variant == "r1") {
213 defines += [ "FPU_MODE_FP32" ]
214 }
215 # TODO(jochen): Add support for mips_arch_variant rx and loongson.
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000216 }
Ben Murdochda12d292016-06-02 14:46:10 +0100217 # TODO(jochen): Add support for mips64.
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000218 if (v8_target_arch == "mips64el") {
219 defines += [ "V8_TARGET_ARCH_MIPS64" ]
Ben Murdochda12d292016-06-02 14:46:10 +0100220 if (v8_can_use_fpu_instructions) {
221 defines += [ "CAN_USE_FPU_INSTRUCTIONS" ]
222 }
223 # TODO(jochen): Add support for big endian host byteorder.
224 defines += [ "V8_TARGET_ARCH_MIPS64_LE" ]
225 if (v8_use_mips_abi_hardfloat) {
226 defines += [
227 "__mips_hard_float=1",
228 "CAN_USE_FPU_INSTRUCTIONS",
229 ]
230 } else {
231 defines += [ "__mips_soft_float=1" ]
232 }
233 if (mips_arch_variant == "r6") {
234 defines += [ "_MIPS_ARCH_MIPS64R6" ]
235 } else if (mips_arch_variant == "r2") {
236 defines += [ "_MIPS_ARCH_MIPS64R2" ]
237 }
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000238 }
239 if (v8_target_arch == "s390") {
240 defines += [ "V8_TARGET_ARCH_S390" ]
241 }
242 if (v8_target_arch == "s390x") {
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000243 defines += [
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000244 "V8_TARGET_ARCH_S390",
245 "V8_TARGET_ARCH_S390X",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000246 ]
247 }
248 if (v8_target_arch == "x86") {
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000249 defines += [ "V8_TARGET_ARCH_IA32" ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000250 }
251 if (v8_target_arch == "x64") {
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000252 defines += [ "V8_TARGET_ARCH_X64" ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000253 }
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000254
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000255 if (is_win) {
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000256 defines += [ "WIN32" ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000257 # TODO(jochen): Support v8_enable_prof.
258 }
259
260 # TODO(jochen): Add support for compiling with simulators.
261
262 if (is_debug) {
263 # TODO(jochen): Add support for different debug optimization levels.
264 defines += [
265 "ENABLE_DISASSEMBLER",
266 "V8_ENABLE_CHECKS",
267 "OBJECT_PRINT",
268 "VERIFY_HEAP",
269 "DEBUG",
270 "OPTIMIZED_DEBUG",
271 ]
272 }
273}
274
275###############################################################################
276# Actions
277#
278
279action("js2c") {
280 visibility = [ ":*" ] # Only targets in this file can depend on this.
281
282 script = "tools/js2c.py"
283
284 # The script depends on this other script, this rule causes a rebuild if it
285 # changes.
Ben Murdochda12d292016-06-02 14:46:10 +0100286 inputs = [
287 "tools/jsmin.py",
288 ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000289
Ben Murdochda12d292016-06-02 14:46:10 +0100290 # NOSORT
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000291 sources = [
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000292 "src/js/macros.py",
293 "src/messages.h",
294 "src/js/prologue.js",
295 "src/js/runtime.js",
296 "src/js/v8natives.js",
297 "src/js/symbol.js",
298 "src/js/array.js",
299 "src/js/string.js",
300 "src/js/uri.js",
301 "src/js/math.js",
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400302 "src/third_party/fdlibm/fdlibm.js",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000303 "src/js/regexp.js",
304 "src/js/arraybuffer.js",
305 "src/js/typedarray.js",
306 "src/js/iterator-prototype.js",
307 "src/js/generator.js",
308 "src/js/object-observe.js",
309 "src/js/collection.js",
310 "src/js/weak-collection.js",
311 "src/js/collection-iterator.js",
312 "src/js/promise.js",
313 "src/js/messages.js",
314 "src/js/json.js",
315 "src/js/array-iterator.js",
316 "src/js/string-iterator.js",
317 "src/js/templates.js",
318 "src/js/spread.js",
Ben Murdochda12d292016-06-02 14:46:10 +0100319 "src/js/proxy.js",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000320 "src/debug/mirrors.js",
321 "src/debug/debug.js",
322 "src/debug/liveedit.js",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000323 ]
324
325 outputs = [
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000326 "$target_gen_dir/libraries.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000327 ]
328
329 if (v8_enable_i18n_support) {
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000330 sources += [ "src/js/i18n.js" ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000331 }
332
333 args = [
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000334 rebase_path("$target_gen_dir/libraries.cc", root_build_dir),
335 "CORE",
336 ] + rebase_path(sources, root_build_dir)
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000337
338 if (v8_use_external_startup_data) {
339 outputs += [ "$target_gen_dir/libraries.bin" ]
340 args += [
341 "--startup_blob",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000342 rebase_path("$target_gen_dir/libraries.bin", root_build_dir),
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000343 ]
344 }
345}
346
347action("js2c_experimental") {
348 visibility = [ ":*" ] # Only targets in this file can depend on this.
349
350 script = "tools/js2c.py"
351
352 # The script depends on this other script, this rule causes a rebuild if it
353 # changes.
Ben Murdochda12d292016-06-02 14:46:10 +0100354 inputs = [
355 "tools/jsmin.py",
356 ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000357
Ben Murdochda12d292016-06-02 14:46:10 +0100358 # NOSORT
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000359 sources = [
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000360 "src/js/macros.py",
361 "src/messages.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000362 "src/js/generator.js",
363 "src/js/harmony-atomics.js",
Ben Murdochda12d292016-06-02 14:46:10 +0100364 "src/js/harmony-regexp-exec.js",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000365 "src/js/harmony-object-observe.js",
366 "src/js/harmony-sharedarraybuffer.js",
367 "src/js/harmony-simd.js",
368 "src/js/harmony-species.js",
369 "src/js/harmony-unicode-regexps.js",
Ben Murdochda12d292016-06-02 14:46:10 +0100370 "src/js/harmony-string-padding.js",
371 "src/js/promise-extra.js",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000372 ]
373
374 outputs = [
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000375 "$target_gen_dir/experimental-libraries.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000376 ]
377
378 args = [
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000379 rebase_path("$target_gen_dir/experimental-libraries.cc",
380 root_build_dir),
381 "EXPERIMENTAL",
382 ] + rebase_path(sources, root_build_dir)
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000383
384 if (v8_use_external_startup_data) {
385 outputs += [ "$target_gen_dir/libraries_experimental.bin" ]
386 args += [
387 "--startup_blob",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000388 rebase_path("$target_gen_dir/libraries_experimental.bin", root_build_dir),
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000389 ]
390 }
391}
392
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000393action("js2c_extras") {
394 visibility = [ ":*" ] # Only targets in this file can depend on this.
395
396 script = "tools/js2c.py"
397
398 # The script depends on this other script, this rule causes a rebuild if it
399 # changes.
Ben Murdochda12d292016-06-02 14:46:10 +0100400 inputs = [
401 "tools/jsmin.py",
402 ]
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000403
404 sources = v8_extra_library_files
405
406 outputs = [
407 "$target_gen_dir/extras-libraries.cc",
408 ]
409
410 args = [
Ben Murdochda12d292016-06-02 14:46:10 +0100411 rebase_path("$target_gen_dir/extras-libraries.cc", root_build_dir),
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000412 "EXTRAS",
413 ] + rebase_path(sources, root_build_dir)
414
415 if (v8_use_external_startup_data) {
416 outputs += [ "$target_gen_dir/libraries_extras.bin" ]
417 args += [
418 "--startup_blob",
419 rebase_path("$target_gen_dir/libraries_extras.bin", root_build_dir),
420 ]
421 }
422}
423
424action("js2c_experimental_extras") {
425 visibility = [ ":*" ] # Only targets in this file can depend on this.
426
427 script = "tools/js2c.py"
428
429 # The script depends on this other script, this rule causes a rebuild if it
430 # changes.
Ben Murdochda12d292016-06-02 14:46:10 +0100431 inputs = [
432 "tools/jsmin.py",
433 ]
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000434
435 sources = v8_experimental_extra_library_files
436
437 outputs = [
438 "$target_gen_dir/experimental-extras-libraries.cc",
439 ]
440
441 args = [
442 rebase_path("$target_gen_dir/experimental-extras-libraries.cc",
443 root_build_dir),
444 "EXPERIMENTAL_EXTRAS",
445 ] + rebase_path(sources, root_build_dir)
446
447 if (v8_use_external_startup_data) {
448 outputs += [ "$target_gen_dir/libraries_experimental_extras.bin" ]
449 args += [
450 "--startup_blob",
Ben Murdochda12d292016-06-02 14:46:10 +0100451 rebase_path("$target_gen_dir/libraries_experimental_extras.bin",
452 root_build_dir),
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000453 ]
454 }
455}
456
457action("d8_js2c") {
458 visibility = [ ":*" ] # Only targets in this file can depend on this.
459
460 script = "tools/js2c.py"
461
Ben Murdochda12d292016-06-02 14:46:10 +0100462 # NOSORT
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000463 inputs = [
464 "src/d8.js",
465 "src/js/macros.py",
466 ]
467
468 outputs = [
469 "$target_gen_dir/d8-js.cc",
470 ]
471
472 args = rebase_path(outputs, root_build_dir) + [ "D8" ] +
473 rebase_path(inputs, root_build_dir)
474}
475
476if (is_android) {
477 android_assets("v8_external_startup_data_assets") {
478 if (v8_use_external_startup_data) {
479 deps = [
480 "//v8",
481 ]
482 renaming_sources = v8_external_startup_data_renaming_sources
483 renaming_destinations = v8_external_startup_data_renaming_destinations
484 disable_compression = true
485 }
486 }
487}
488
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000489if (v8_use_external_startup_data) {
490 action("natives_blob") {
491 visibility = [ ":*" ] # Only targets in this file can depend on this.
492
493 deps = [
494 ":js2c",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000495 ":js2c_experimental",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000496 ":js2c_experimental_extras",
Ben Murdochda12d292016-06-02 14:46:10 +0100497 ":js2c_extras",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000498 ]
499
Ben Murdochda12d292016-06-02 14:46:10 +0100500 # NOSORT
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000501 sources = [
502 "$target_gen_dir/libraries.bin",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000503 "$target_gen_dir/libraries_experimental.bin",
504 "$target_gen_dir/libraries_extras.bin",
505 "$target_gen_dir/libraries_experimental_extras.bin",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000506 ]
507
508 outputs = [
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000509 "$root_out_dir/natives_blob.bin",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000510 ]
511
512 script = "tools/concatenate-files.py"
513
514 args = rebase_path(sources + outputs, root_build_dir)
515 }
516}
517
518action("postmortem-metadata") {
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000519 # Only targets in this file and the top-level visibility target can
520 # depend on this.
521 visibility = [
522 ":*",
523 "//:gn_visibility",
524 ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000525
526 script = "tools/gen-postmortem-metadata.py"
527
Ben Murdochda12d292016-06-02 14:46:10 +0100528 # NOSORT
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000529 sources = [
530 "src/objects.h",
531 "src/objects-inl.h",
532 ]
533
534 outputs = [
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000535 "$target_gen_dir/debug-support.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000536 ]
537
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000538 args = rebase_path(outputs, root_build_dir) +
539 rebase_path(sources, root_build_dir)
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000540}
541
542action("run_mksnapshot") {
543 visibility = [ ":*" ] # Only targets in this file can depend on this.
544
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000545 deps = [
546 ":mksnapshot($snapshot_toolchain)",
547 ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000548
549 script = "tools/run.py"
550
551 outputs = [
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000552 "$target_gen_dir/snapshot.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000553 ]
554
555 args = [
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000556 "./" + rebase_path(get_label_info(":mksnapshot($snapshot_toolchain)",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000557 "root_out_dir") + "/mksnapshot",
558 root_build_dir),
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000559 "--startup_src",
560 rebase_path("$target_gen_dir/snapshot.cc", root_build_dir),
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000561 ]
562
563 if (v8_random_seed != "0") {
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000564 args += [
565 "--random-seed",
566 v8_random_seed,
567 ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000568 }
569
570 if (v8_use_external_startup_data) {
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400571 outputs += [ "$root_out_dir/snapshot_blob.bin" ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000572 args += [
573 "--startup_blob",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000574 rebase_path("$root_out_dir/snapshot_blob.bin", root_build_dir),
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000575 ]
576 }
577}
578
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000579###############################################################################
580# Source Sets (aka static libraries)
581#
582
583source_set("v8_nosnapshot") {
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_experimental_extras",
Ben Murdochda12d292016-06-02 14:46:10 +0100590 ":js2c_extras",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000591 ":v8_base",
592 ]
593
594 sources = [
Ben Murdochda12d292016-06-02 14:46:10 +0100595 "$target_gen_dir/experimental-extras-libraries.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000596 "$target_gen_dir/experimental-libraries.cc",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000597 "$target_gen_dir/extras-libraries.cc",
Ben Murdochda12d292016-06-02 14:46:10 +0100598 "$target_gen_dir/libraries.cc",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000599 "src/snapshot/snapshot-empty.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000600 ]
601
602 configs -= [ "//build/config/compiler:chromium_code" ]
603 configs += [ "//build/config/compiler:no_chromium_code" ]
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000604 configs += [
605 ":internal_config",
606 ":features",
607 ":toolchain",
608 ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000609}
610
611source_set("v8_snapshot") {
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000612 # Only targets in this file and the top-level visibility target can
613 # depend on this.
614 visibility = [
615 ":*",
616 "//:gn_visibility",
617 ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000618
619 deps = [
620 ":js2c",
621 ":js2c_experimental",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000622 ":js2c_experimental_extras",
Ben Murdochda12d292016-06-02 14:46:10 +0100623 ":js2c_extras",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000624 ":v8_base",
625 ]
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000626 public_deps = [
627 # This should be public so downstream targets can declare the snapshot
628 # output file as their inputs.
629 ":run_mksnapshot",
630 ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000631
632 sources = [
Ben Murdochda12d292016-06-02 14:46:10 +0100633 "$target_gen_dir/experimental-extras-libraries.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000634 "$target_gen_dir/experimental-libraries.cc",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000635 "$target_gen_dir/extras-libraries.cc",
Ben Murdochda12d292016-06-02 14:46:10 +0100636 "$target_gen_dir/libraries.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000637 "$target_gen_dir/snapshot.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000638 ]
639
640 configs -= [ "//build/config/compiler:chromium_code" ]
641 configs += [ "//build/config/compiler:no_chromium_code" ]
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000642 configs += [
643 ":internal_config",
644 ":features",
645 ":toolchain",
646 ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000647}
648
649if (v8_use_external_startup_data) {
650 source_set("v8_external_snapshot") {
651 visibility = [ ":*" ] # Only targets in this file can depend on this.
652
653 deps = [
654 ":js2c",
655 ":js2c_experimental",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000656 ":js2c_experimental_extras",
Ben Murdochda12d292016-06-02 14:46:10 +0100657 ":js2c_extras",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000658 ":v8_base",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000659 ]
660 public_deps = [
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000661 ":natives_blob",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000662 ":run_mksnapshot",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000663 ]
664
665 sources = [
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000666 "src/snapshot/natives-external.cc",
667 "src/snapshot/snapshot-external.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000668 ]
669
670 configs -= [ "//build/config/compiler:chromium_code" ]
671 configs += [ "//build/config/compiler:no_chromium_code" ]
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000672 configs += [
673 ":internal_config",
674 ":features",
675 ":toolchain",
676 ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000677 }
678}
679
680source_set("v8_base") {
681 visibility = [ ":*" ] # Only targets in this file can depend on this.
682
683 sources = [
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000684 # TODO(fmeawad): This needs to be updated to support standalone V8 builds.
685 "../base/trace_event/common/trace_event_common.h",
686 "include/v8-debug.h",
687 "include/v8-experimental.h",
688 "include/v8-platform.h",
689 "include/v8-profiler.h",
690 "include/v8-testing.h",
691 "include/v8-util.h",
692 "include/v8-version.h",
693 "include/v8.h",
694 "include/v8config.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000695 "src/accessors.cc",
696 "src/accessors.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000697 "src/address-map.cc",
698 "src/address-map.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000699 "src/allocation-site-scopes.cc",
700 "src/allocation-site-scopes.h",
Ben Murdochda12d292016-06-02 14:46:10 +0100701 "src/allocation.cc",
702 "src/allocation.h",
703 "src/api-arguments.cc",
704 "src/api-arguments.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000705 "src/api-experimental.cc",
706 "src/api-experimental.h",
707 "src/api-natives.cc",
708 "src/api-natives.h",
Ben Murdochda12d292016-06-02 14:46:10 +0100709 "src/api.cc",
710 "src/api.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000711 "src/arguments.cc",
712 "src/arguments.h",
713 "src/assembler.cc",
714 "src/assembler.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000715 "src/assert-scope.cc",
Ben Murdochda12d292016-06-02 14:46:10 +0100716 "src/assert-scope.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000717 "src/ast/ast-expression-rewriter.cc",
718 "src/ast/ast-expression-rewriter.h",
719 "src/ast/ast-expression-visitor.cc",
720 "src/ast/ast-expression-visitor.h",
721 "src/ast/ast-literal-reindexer.cc",
722 "src/ast/ast-literal-reindexer.h",
723 "src/ast/ast-numbering.cc",
724 "src/ast/ast-numbering.h",
725 "src/ast/ast-value-factory.cc",
726 "src/ast/ast-value-factory.h",
727 "src/ast/ast.cc",
728 "src/ast/ast.h",
729 "src/ast/modules.cc",
730 "src/ast/modules.h",
731 "src/ast/prettyprinter.cc",
732 "src/ast/prettyprinter.h",
733 "src/ast/scopeinfo.cc",
734 "src/ast/scopeinfo.h",
735 "src/ast/scopes.cc",
736 "src/ast/scopes.h",
737 "src/ast/variables.cc",
738 "src/ast/variables.h",
739 "src/atomic-utils.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000740 "src/background-parsing-task.cc",
741 "src/background-parsing-task.h",
742 "src/bailout-reason.cc",
743 "src/bailout-reason.h",
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400744 "src/basic-block-profiler.cc",
745 "src/basic-block-profiler.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000746 "src/bignum-dtoa.cc",
747 "src/bignum-dtoa.h",
748 "src/bignum.cc",
749 "src/bignum.h",
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400750 "src/bit-vector.cc",
751 "src/bit-vector.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000752 "src/bootstrapper.cc",
753 "src/bootstrapper.h",
754 "src/builtins.cc",
755 "src/builtins.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000756 "src/cached-powers.cc",
757 "src/cached-powers.h",
Ben Murdochda12d292016-06-02 14:46:10 +0100758 "src/cancelable-task.cc",
759 "src/cancelable-task.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000760 "src/char-predicates-inl.h",
Ben Murdochda12d292016-06-02 14:46:10 +0100761 "src/char-predicates.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000762 "src/char-predicates.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000763 "src/checks.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000764 "src/code-factory.cc",
765 "src/code-factory.h",
Ben Murdochda12d292016-06-02 14:46:10 +0100766 "src/code-stubs-hydrogen.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000767 "src/code-stubs.cc",
768 "src/code-stubs.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000769 "src/codegen.cc",
770 "src/codegen.h",
Ben Murdochda12d292016-06-02 14:46:10 +0100771 "src/collector.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000772 "src/compilation-cache.cc",
773 "src/compilation-cache.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000774 "src/compilation-dependencies.cc",
775 "src/compilation-dependencies.h",
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400776 "src/compilation-statistics.cc",
777 "src/compilation-statistics.h",
Ben Murdochda12d292016-06-02 14:46:10 +0100778 "src/compiler.cc",
779 "src/compiler.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000780 "src/compiler/access-builder.cc",
781 "src/compiler/access-builder.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000782 "src/compiler/access-info.cc",
783 "src/compiler/access-info.h",
784 "src/compiler/all-nodes.cc",
785 "src/compiler/all-nodes.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000786 "src/compiler/ast-graph-builder.cc",
787 "src/compiler/ast-graph-builder.h",
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400788 "src/compiler/ast-loop-assignment-analyzer.cc",
789 "src/compiler/ast-loop-assignment-analyzer.h",
790 "src/compiler/basic-block-instrumentor.cc",
791 "src/compiler/basic-block-instrumentor.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000792 "src/compiler/branch-elimination.cc",
793 "src/compiler/branch-elimination.h",
794 "src/compiler/bytecode-branch-analysis.cc",
795 "src/compiler/bytecode-branch-analysis.h",
796 "src/compiler/bytecode-graph-builder.cc",
797 "src/compiler/bytecode-graph-builder.h",
Ben Murdochda12d292016-06-02 14:46:10 +0100798 "src/compiler/c-linkage.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000799 "src/compiler/change-lowering.cc",
800 "src/compiler/change-lowering.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000801 "src/compiler/coalesced-live-ranges.cc",
802 "src/compiler/coalesced-live-ranges.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000803 "src/compiler/code-generator-impl.h",
804 "src/compiler/code-generator.cc",
805 "src/compiler/code-generator.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000806 "src/compiler/code-stub-assembler.cc",
807 "src/compiler/code-stub-assembler.h",
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400808 "src/compiler/common-node-cache.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000809 "src/compiler/common-node-cache.h",
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400810 "src/compiler/common-operator-reducer.cc",
811 "src/compiler/common-operator-reducer.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000812 "src/compiler/common-operator.cc",
813 "src/compiler/common-operator.h",
814 "src/compiler/control-builders.cc",
815 "src/compiler/control-builders.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000816 "src/compiler/control-equivalence.cc",
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400817 "src/compiler/control-equivalence.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000818 "src/compiler/control-flow-optimizer.cc",
819 "src/compiler/control-flow-optimizer.h",
820 "src/compiler/dead-code-elimination.cc",
821 "src/compiler/dead-code-elimination.h",
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400822 "src/compiler/diamond.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000823 "src/compiler/escape-analysis-reducer.cc",
824 "src/compiler/escape-analysis-reducer.h",
Ben Murdochda12d292016-06-02 14:46:10 +0100825 "src/compiler/escape-analysis.cc",
826 "src/compiler/escape-analysis.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000827 "src/compiler/frame-elider.cc",
828 "src/compiler/frame-elider.h",
829 "src/compiler/frame-states.cc",
830 "src/compiler/frame-states.h",
Ben Murdochda12d292016-06-02 14:46:10 +0100831 "src/compiler/frame.cc",
832 "src/compiler/frame.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000833 "src/compiler/gap-resolver.cc",
834 "src/compiler/gap-resolver.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000835 "src/compiler/graph-reducer.cc",
836 "src/compiler/graph-reducer.h",
837 "src/compiler/graph-replay.cc",
838 "src/compiler/graph-replay.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000839 "src/compiler/graph-trimmer.cc",
840 "src/compiler/graph-trimmer.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000841 "src/compiler/graph-visualizer.cc",
842 "src/compiler/graph-visualizer.h",
843 "src/compiler/graph.cc",
844 "src/compiler/graph.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000845 "src/compiler/greedy-allocator.cc",
846 "src/compiler/greedy-allocator.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000847 "src/compiler/instruction-codes.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000848 "src/compiler/instruction-scheduler.cc",
849 "src/compiler/instruction-scheduler.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000850 "src/compiler/instruction-selector-impl.h",
851 "src/compiler/instruction-selector.cc",
852 "src/compiler/instruction-selector.h",
853 "src/compiler/instruction.cc",
854 "src/compiler/instruction.h",
Ben Murdoch097c5b22016-05-18 11:27:45 +0100855 "src/compiler/int64-lowering.cc",
856 "src/compiler/int64-lowering.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000857 "src/compiler/js-builtin-reducer.cc",
858 "src/compiler/js-builtin-reducer.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000859 "src/compiler/js-call-reducer.cc",
860 "src/compiler/js-call-reducer.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000861 "src/compiler/js-context-specialization.cc",
862 "src/compiler/js-context-specialization.h",
Ben Murdoch097c5b22016-05-18 11:27:45 +0100863 "src/compiler/js-create-lowering.cc",
864 "src/compiler/js-create-lowering.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000865 "src/compiler/js-frame-specialization.cc",
866 "src/compiler/js-frame-specialization.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000867 "src/compiler/js-generic-lowering.cc",
868 "src/compiler/js-generic-lowering.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000869 "src/compiler/js-global-object-specialization.cc",
870 "src/compiler/js-global-object-specialization.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000871 "src/compiler/js-graph.cc",
872 "src/compiler/js-graph.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000873 "src/compiler/js-inlining-heuristic.cc",
874 "src/compiler/js-inlining-heuristic.h",
Ben Murdochda12d292016-06-02 14:46:10 +0100875 "src/compiler/js-inlining.cc",
876 "src/compiler/js-inlining.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000877 "src/compiler/js-intrinsic-lowering.cc",
878 "src/compiler/js-intrinsic-lowering.h",
879 "src/compiler/js-native-context-specialization.cc",
880 "src/compiler/js-native-context-specialization.h",
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400881 "src/compiler/js-operator.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000882 "src/compiler/js-operator.h",
883 "src/compiler/js-typed-lowering.cc",
884 "src/compiler/js-typed-lowering.h",
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400885 "src/compiler/jump-threading.cc",
886 "src/compiler/jump-threading.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000887 "src/compiler/linkage.cc",
888 "src/compiler/linkage.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000889 "src/compiler/live-range-separator.cc",
890 "src/compiler/live-range-separator.h",
891 "src/compiler/liveness-analyzer.cc",
892 "src/compiler/liveness-analyzer.h",
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400893 "src/compiler/load-elimination.cc",
894 "src/compiler/load-elimination.h",
895 "src/compiler/loop-analysis.cc",
896 "src/compiler/loop-analysis.h",
Ben Murdochda12d292016-06-02 14:46:10 +0100897 "src/compiler/loop-peeling.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000898 "src/compiler/machine-operator-reducer.cc",
899 "src/compiler/machine-operator-reducer.h",
900 "src/compiler/machine-operator.cc",
901 "src/compiler/machine-operator.h",
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400902 "src/compiler/move-optimizer.cc",
903 "src/compiler/move-optimizer.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000904 "src/compiler/node-aux-data.h",
905 "src/compiler/node-cache.cc",
906 "src/compiler/node-cache.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000907 "src/compiler/node-marker.cc",
908 "src/compiler/node-marker.h",
909 "src/compiler/node-matchers.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000910 "src/compiler/node-matchers.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000911 "src/compiler/node-properties.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000912 "src/compiler/node-properties.h",
913 "src/compiler/node.cc",
914 "src/compiler/node.h",
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400915 "src/compiler/opcodes.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000916 "src/compiler/opcodes.h",
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400917 "src/compiler/operator-properties.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000918 "src/compiler/operator-properties.h",
919 "src/compiler/operator.cc",
920 "src/compiler/operator.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000921 "src/compiler/osr.cc",
922 "src/compiler/osr.h",
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400923 "src/compiler/pipeline-statistics.cc",
924 "src/compiler/pipeline-statistics.h",
Ben Murdochda12d292016-06-02 14:46:10 +0100925 "src/compiler/pipeline.cc",
926 "src/compiler/pipeline.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000927 "src/compiler/raw-machine-assembler.cc",
928 "src/compiler/raw-machine-assembler.h",
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400929 "src/compiler/register-allocator-verifier.cc",
930 "src/compiler/register-allocator-verifier.h",
Ben Murdochda12d292016-06-02 14:46:10 +0100931 "src/compiler/register-allocator.cc",
932 "src/compiler/register-allocator.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000933 "src/compiler/representation-change.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000934 "src/compiler/representation-change.h",
935 "src/compiler/schedule.cc",
936 "src/compiler/schedule.h",
937 "src/compiler/scheduler.cc",
938 "src/compiler/scheduler.h",
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400939 "src/compiler/select-lowering.cc",
940 "src/compiler/select-lowering.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000941 "src/compiler/simplified-lowering.cc",
942 "src/compiler/simplified-lowering.h",
943 "src/compiler/simplified-operator-reducer.cc",
944 "src/compiler/simplified-operator-reducer.h",
945 "src/compiler/simplified-operator.cc",
946 "src/compiler/simplified-operator.h",
947 "src/compiler/source-position.cc",
948 "src/compiler/source-position.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000949 "src/compiler/state-values-utils.cc",
950 "src/compiler/state-values-utils.h",
951 "src/compiler/tail-call-optimization.cc",
952 "src/compiler/tail-call-optimization.h",
953 "src/compiler/type-hint-analyzer.cc",
954 "src/compiler/type-hint-analyzer.h",
955 "src/compiler/type-hints.cc",
956 "src/compiler/type-hints.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000957 "src/compiler/typer.cc",
958 "src/compiler/typer.h",
959 "src/compiler/value-numbering-reducer.cc",
960 "src/compiler/value-numbering-reducer.h",
961 "src/compiler/verifier.cc",
962 "src/compiler/verifier.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000963 "src/compiler/wasm-compiler.cc",
964 "src/compiler/wasm-compiler.h",
965 "src/compiler/wasm-linkage.cc",
Emily Bernierd0a1eb72015-03-24 16:35:39 -0400966 "src/compiler/zone-pool.cc",
967 "src/compiler/zone-pool.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000968 "src/context-measure.cc",
969 "src/context-measure.h",
970 "src/contexts-inl.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +0000971 "src/contexts.cc",
972 "src/contexts.h",
973 "src/conversions-inl.h",
974 "src/conversions.cc",
975 "src/conversions.h",
976 "src/counters.cc",
977 "src/counters.h",
Ben Murdochda12d292016-06-02 14:46:10 +0100978 "src/crankshaft/compilation-phase.cc",
979 "src/crankshaft/compilation-phase.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000980 "src/crankshaft/hydrogen-alias-analysis.h",
981 "src/crankshaft/hydrogen-bce.cc",
982 "src/crankshaft/hydrogen-bce.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +0000983 "src/crankshaft/hydrogen-canonicalize.cc",
984 "src/crankshaft/hydrogen-canonicalize.h",
985 "src/crankshaft/hydrogen-check-elimination.cc",
986 "src/crankshaft/hydrogen-check-elimination.h",
987 "src/crankshaft/hydrogen-dce.cc",
988 "src/crankshaft/hydrogen-dce.h",
989 "src/crankshaft/hydrogen-dehoist.cc",
990 "src/crankshaft/hydrogen-dehoist.h",
991 "src/crankshaft/hydrogen-environment-liveness.cc",
992 "src/crankshaft/hydrogen-environment-liveness.h",
993 "src/crankshaft/hydrogen-escape-analysis.cc",
994 "src/crankshaft/hydrogen-escape-analysis.h",
995 "src/crankshaft/hydrogen-flow-engine.h",
996 "src/crankshaft/hydrogen-gvn.cc",
997 "src/crankshaft/hydrogen-gvn.h",
998 "src/crankshaft/hydrogen-infer-representation.cc",
999 "src/crankshaft/hydrogen-infer-representation.h",
1000 "src/crankshaft/hydrogen-infer-types.cc",
1001 "src/crankshaft/hydrogen-infer-types.h",
1002 "src/crankshaft/hydrogen-instructions.cc",
1003 "src/crankshaft/hydrogen-instructions.h",
1004 "src/crankshaft/hydrogen-load-elimination.cc",
1005 "src/crankshaft/hydrogen-load-elimination.h",
1006 "src/crankshaft/hydrogen-mark-deoptimize.cc",
1007 "src/crankshaft/hydrogen-mark-deoptimize.h",
1008 "src/crankshaft/hydrogen-mark-unreachable.cc",
1009 "src/crankshaft/hydrogen-mark-unreachable.h",
1010 "src/crankshaft/hydrogen-osr.cc",
1011 "src/crankshaft/hydrogen-osr.h",
1012 "src/crankshaft/hydrogen-range-analysis.cc",
1013 "src/crankshaft/hydrogen-range-analysis.h",
1014 "src/crankshaft/hydrogen-redundant-phi.cc",
1015 "src/crankshaft/hydrogen-redundant-phi.h",
1016 "src/crankshaft/hydrogen-removable-simulates.cc",
1017 "src/crankshaft/hydrogen-removable-simulates.h",
1018 "src/crankshaft/hydrogen-representation-changes.cc",
1019 "src/crankshaft/hydrogen-representation-changes.h",
1020 "src/crankshaft/hydrogen-sce.cc",
1021 "src/crankshaft/hydrogen-sce.h",
1022 "src/crankshaft/hydrogen-store-elimination.cc",
1023 "src/crankshaft/hydrogen-store-elimination.h",
1024 "src/crankshaft/hydrogen-types.cc",
1025 "src/crankshaft/hydrogen-types.h",
1026 "src/crankshaft/hydrogen-uint32-analysis.cc",
1027 "src/crankshaft/hydrogen-uint32-analysis.h",
1028 "src/crankshaft/hydrogen.cc",
1029 "src/crankshaft/hydrogen.h",
1030 "src/crankshaft/lithium-allocator-inl.h",
1031 "src/crankshaft/lithium-allocator.cc",
1032 "src/crankshaft/lithium-allocator.h",
1033 "src/crankshaft/lithium-codegen.cc",
1034 "src/crankshaft/lithium-codegen.h",
1035 "src/crankshaft/lithium.cc",
1036 "src/crankshaft/lithium.h",
1037 "src/crankshaft/typing.cc",
1038 "src/crankshaft/typing.h",
1039 "src/crankshaft/unique.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001040 "src/date.cc",
1041 "src/date.h",
1042 "src/dateparser-inl.h",
1043 "src/dateparser.cc",
1044 "src/dateparser.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001045 "src/debug/debug-evaluate.cc",
1046 "src/debug/debug-evaluate.h",
1047 "src/debug/debug-frames.cc",
1048 "src/debug/debug-frames.h",
1049 "src/debug/debug-scopes.cc",
1050 "src/debug/debug-scopes.h",
1051 "src/debug/debug.cc",
1052 "src/debug/debug.h",
1053 "src/debug/liveedit.cc",
1054 "src/debug/liveedit.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001055 "src/deoptimizer.cc",
1056 "src/deoptimizer.h",
1057 "src/disasm.h",
1058 "src/disassembler.cc",
1059 "src/disassembler.h",
1060 "src/diy-fp.cc",
1061 "src/diy-fp.h",
1062 "src/double.h",
1063 "src/dtoa.cc",
1064 "src/dtoa.h",
1065 "src/effects.h",
1066 "src/elements-kind.cc",
1067 "src/elements-kind.h",
1068 "src/elements.cc",
1069 "src/elements.h",
1070 "src/execution.cc",
1071 "src/execution.h",
1072 "src/extensions/externalize-string-extension.cc",
1073 "src/extensions/externalize-string-extension.h",
1074 "src/extensions/free-buffer-extension.cc",
1075 "src/extensions/free-buffer-extension.h",
1076 "src/extensions/gc-extension.cc",
1077 "src/extensions/gc-extension.h",
1078 "src/extensions/statistics-extension.cc",
1079 "src/extensions/statistics-extension.h",
1080 "src/extensions/trigger-failure-extension.cc",
1081 "src/extensions/trigger-failure-extension.h",
Ben Murdochda12d292016-06-02 14:46:10 +01001082 "src/external-reference-table.cc",
1083 "src/external-reference-table.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001084 "src/factory.cc",
1085 "src/factory.h",
Ben Murdochda12d292016-06-02 14:46:10 +01001086 "src/fast-accessor-assembler.cc",
1087 "src/fast-accessor-assembler.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001088 "src/fast-dtoa.cc",
1089 "src/fast-dtoa.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001090 "src/field-index-inl.h",
Ben Murdochda12d292016-06-02 14:46:10 +01001091 "src/field-index.h",
Ben Murdoch097c5b22016-05-18 11:27:45 +01001092 "src/field-type.cc",
1093 "src/field-type.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001094 "src/fixed-dtoa.cc",
1095 "src/fixed-dtoa.h",
1096 "src/flag-definitions.h",
1097 "src/flags.cc",
1098 "src/flags.h",
1099 "src/frames-inl.h",
1100 "src/frames.cc",
1101 "src/frames.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001102 "src/full-codegen/full-codegen.cc",
1103 "src/full-codegen/full-codegen.h",
1104 "src/futex-emulation.cc",
1105 "src/futex-emulation.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001106 "src/gdb-jit.cc",
1107 "src/gdb-jit.h",
1108 "src/global-handles.cc",
1109 "src/global-handles.h",
1110 "src/globals.h",
1111 "src/handles-inl.h",
1112 "src/handles.cc",
1113 "src/handles.h",
1114 "src/hashmap.h",
Ben Murdoch097c5b22016-05-18 11:27:45 +01001115 "src/heap-symbols.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001116 "src/heap/array-buffer-tracker.cc",
1117 "src/heap/array-buffer-tracker.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001118 "src/heap/gc-idle-time-handler.cc",
1119 "src/heap/gc-idle-time-handler.h",
1120 "src/heap/gc-tracer.cc",
1121 "src/heap/gc-tracer.h",
1122 "src/heap/heap-inl.h",
1123 "src/heap/heap.cc",
1124 "src/heap/heap.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001125 "src/heap/incremental-marking-job.cc",
1126 "src/heap/incremental-marking-job.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001127 "src/heap/incremental-marking.cc",
1128 "src/heap/incremental-marking.h",
1129 "src/heap/mark-compact-inl.h",
1130 "src/heap/mark-compact.cc",
1131 "src/heap/mark-compact.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001132 "src/heap/memory-reducer.cc",
1133 "src/heap/memory-reducer.h",
1134 "src/heap/object-stats.cc",
1135 "src/heap/object-stats.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001136 "src/heap/objects-visiting-inl.h",
1137 "src/heap/objects-visiting.cc",
1138 "src/heap/objects-visiting.h",
Ben Murdochda12d292016-06-02 14:46:10 +01001139 "src/heap/page-parallel-job.h",
Ben Murdoch097c5b22016-05-18 11:27:45 +01001140 "src/heap/remembered-set.cc",
1141 "src/heap/remembered-set.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001142 "src/heap/scavenge-job.cc",
Ben Murdochda12d292016-06-02 14:46:10 +01001143 "src/heap/scavenge-job.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001144 "src/heap/scavenger-inl.h",
1145 "src/heap/scavenger.cc",
1146 "src/heap/scavenger.h",
Ben Murdoch097c5b22016-05-18 11:27:45 +01001147 "src/heap/slot-set.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001148 "src/heap/spaces-inl.h",
1149 "src/heap/spaces.cc",
1150 "src/heap/spaces.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001151 "src/heap/store-buffer.cc",
1152 "src/heap/store-buffer.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001153 "src/i18n.cc",
1154 "src/i18n.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001155 "src/ic/access-compiler.cc",
1156 "src/ic/access-compiler.h",
1157 "src/ic/call-optimization.cc",
1158 "src/ic/call-optimization.h",
1159 "src/ic/handler-compiler.cc",
1160 "src/ic/handler-compiler.h",
Ben Murdochda12d292016-06-02 14:46:10 +01001161 "src/ic/ic-compiler.cc",
1162 "src/ic/ic-compiler.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001163 "src/ic/ic-inl.h",
1164 "src/ic/ic-state.cc",
1165 "src/ic/ic-state.h",
1166 "src/ic/ic.cc",
1167 "src/ic/ic.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001168 "src/ic/stub-cache.cc",
1169 "src/ic/stub-cache.h",
Ben Murdochda12d292016-06-02 14:46:10 +01001170 "src/icu_util.cc",
1171 "src/icu_util.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001172 "src/identity-map.cc",
1173 "src/identity-map.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001174 "src/interface-descriptors.cc",
1175 "src/interface-descriptors.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001176 "src/interpreter/bytecode-array-builder.cc",
1177 "src/interpreter/bytecode-array-builder.h",
1178 "src/interpreter/bytecode-array-iterator.cc",
1179 "src/interpreter/bytecode-array-iterator.h",
1180 "src/interpreter/bytecode-generator.cc",
1181 "src/interpreter/bytecode-generator.h",
1182 "src/interpreter/bytecode-register-allocator.cc",
1183 "src/interpreter/bytecode-register-allocator.h",
1184 "src/interpreter/bytecode-traits.h",
Ben Murdochda12d292016-06-02 14:46:10 +01001185 "src/interpreter/bytecodes.cc",
1186 "src/interpreter/bytecodes.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001187 "src/interpreter/constant-array-builder.cc",
1188 "src/interpreter/constant-array-builder.h",
1189 "src/interpreter/control-flow-builders.cc",
1190 "src/interpreter/control-flow-builders.h",
Ben Murdoch097c5b22016-05-18 11:27:45 +01001191 "src/interpreter/handler-table-builder.cc",
1192 "src/interpreter/handler-table-builder.h",
Ben Murdoch097c5b22016-05-18 11:27:45 +01001193 "src/interpreter/interpreter-assembler.cc",
1194 "src/interpreter/interpreter-assembler.h",
Ben Murdochda12d292016-06-02 14:46:10 +01001195 "src/interpreter/interpreter-intrinsics.cc",
1196 "src/interpreter/interpreter-intrinsics.h",
1197 "src/interpreter/interpreter.cc",
1198 "src/interpreter/interpreter.h",
Ben Murdoch097c5b22016-05-18 11:27:45 +01001199 "src/interpreter/source-position-table.cc",
1200 "src/interpreter/source-position-table.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001201 "src/isolate-inl.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001202 "src/isolate.cc",
1203 "src/isolate.h",
Ben Murdoch097c5b22016-05-18 11:27:45 +01001204 "src/json-parser.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001205 "src/json-stringifier.h",
Ben Murdochda12d292016-06-02 14:46:10 +01001206 "src/keys.cc",
1207 "src/keys.h",
Emily Bernierd0a1eb72015-03-24 16:35:39 -04001208 "src/layout-descriptor-inl.h",
1209 "src/layout-descriptor.cc",
1210 "src/layout-descriptor.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001211 "src/list-inl.h",
1212 "src/list.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001213 "src/log-inl.h",
1214 "src/log-utils.cc",
1215 "src/log-utils.h",
1216 "src/log.cc",
1217 "src/log.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001218 "src/lookup.cc",
1219 "src/lookup.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001220 "src/machine-type.cc",
1221 "src/machine-type.h",
Ben Murdochda12d292016-06-02 14:46:10 +01001222 "src/macro-assembler.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001223 "src/messages.cc",
1224 "src/messages.h",
1225 "src/msan.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001226 "src/objects-body-descriptors-inl.h",
1227 "src/objects-body-descriptors.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001228 "src/objects-debug.cc",
1229 "src/objects-inl.h",
1230 "src/objects-printer.cc",
1231 "src/objects.cc",
1232 "src/objects.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001233 "src/optimizing-compile-dispatcher.cc",
1234 "src/optimizing-compile-dispatcher.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001235 "src/ostreams.cc",
1236 "src/ostreams.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001237 "src/parsing/expression-classifier.h",
1238 "src/parsing/func-name-inferrer.cc",
1239 "src/parsing/func-name-inferrer.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001240 "src/parsing/parameter-initializer-rewriter.cc",
1241 "src/parsing/parameter-initializer-rewriter.h",
1242 "src/parsing/parser-base.h",
1243 "src/parsing/parser.cc",
1244 "src/parsing/parser.h",
1245 "src/parsing/pattern-rewriter.cc",
1246 "src/parsing/preparse-data-format.h",
1247 "src/parsing/preparse-data.cc",
1248 "src/parsing/preparse-data.h",
1249 "src/parsing/preparser.cc",
1250 "src/parsing/preparser.h",
1251 "src/parsing/rewriter.cc",
1252 "src/parsing/rewriter.h",
1253 "src/parsing/scanner-character-streams.cc",
1254 "src/parsing/scanner-character-streams.h",
1255 "src/parsing/scanner.cc",
1256 "src/parsing/scanner.h",
1257 "src/parsing/token.cc",
1258 "src/parsing/token.h",
1259 "src/pending-compilation-error-handler.cc",
1260 "src/pending-compilation-error-handler.h",
Ben Murdochda12d292016-06-02 14:46:10 +01001261 "src/perf-jit.cc",
1262 "src/perf-jit.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001263 "src/profiler/allocation-tracker.cc",
1264 "src/profiler/allocation-tracker.h",
1265 "src/profiler/circular-queue-inl.h",
1266 "src/profiler/circular-queue.h",
1267 "src/profiler/cpu-profiler-inl.h",
1268 "src/profiler/cpu-profiler.cc",
1269 "src/profiler/cpu-profiler.h",
1270 "src/profiler/heap-profiler.cc",
1271 "src/profiler/heap-profiler.h",
1272 "src/profiler/heap-snapshot-generator-inl.h",
1273 "src/profiler/heap-snapshot-generator.cc",
1274 "src/profiler/heap-snapshot-generator.h",
1275 "src/profiler/profile-generator-inl.h",
1276 "src/profiler/profile-generator.cc",
1277 "src/profiler/profile-generator.h",
1278 "src/profiler/sampler.cc",
1279 "src/profiler/sampler.h",
Ben Murdoch097c5b22016-05-18 11:27:45 +01001280 "src/profiler/sampling-heap-profiler.cc",
1281 "src/profiler/sampling-heap-profiler.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001282 "src/profiler/strings-storage.cc",
1283 "src/profiler/strings-storage.h",
1284 "src/profiler/unbound-queue-inl.h",
1285 "src/profiler/unbound-queue.h",
1286 "src/property-descriptor.cc",
1287 "src/property-descriptor.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001288 "src/property-details.h",
1289 "src/property.cc",
1290 "src/property.h",
1291 "src/prototype.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001292 "src/regexp/bytecodes-irregexp.h",
1293 "src/regexp/interpreter-irregexp.cc",
1294 "src/regexp/interpreter-irregexp.h",
1295 "src/regexp/jsregexp-inl.h",
1296 "src/regexp/jsregexp.cc",
1297 "src/regexp/jsregexp.h",
1298 "src/regexp/regexp-ast.cc",
1299 "src/regexp/regexp-ast.h",
1300 "src/regexp/regexp-macro-assembler-irregexp-inl.h",
1301 "src/regexp/regexp-macro-assembler-irregexp.cc",
1302 "src/regexp/regexp-macro-assembler-irregexp.h",
1303 "src/regexp/regexp-macro-assembler-tracer.cc",
1304 "src/regexp/regexp-macro-assembler-tracer.h",
1305 "src/regexp/regexp-macro-assembler.cc",
1306 "src/regexp/regexp-macro-assembler.h",
1307 "src/regexp/regexp-parser.cc",
1308 "src/regexp/regexp-parser.h",
1309 "src/regexp/regexp-stack.cc",
1310 "src/regexp/regexp-stack.h",
1311 "src/register-configuration.cc",
1312 "src/register-configuration.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001313 "src/runtime-profiler.cc",
1314 "src/runtime-profiler.h",
Emily Bernierd0a1eb72015-03-24 16:35:39 -04001315 "src/runtime/runtime-array.cc",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001316 "src/runtime/runtime-atomics.cc",
Emily Bernierd0a1eb72015-03-24 16:35:39 -04001317 "src/runtime/runtime-classes.cc",
1318 "src/runtime/runtime-collections.cc",
1319 "src/runtime/runtime-compiler.cc",
1320 "src/runtime/runtime-date.cc",
1321 "src/runtime/runtime-debug.cc",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001322 "src/runtime/runtime-forin.cc",
Emily Bernierd0a1eb72015-03-24 16:35:39 -04001323 "src/runtime/runtime-function.cc",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001324 "src/runtime/runtime-futex.cc",
Emily Bernierd0a1eb72015-03-24 16:35:39 -04001325 "src/runtime/runtime-generator.cc",
1326 "src/runtime/runtime-i18n.cc",
1327 "src/runtime/runtime-internal.cc",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001328 "src/runtime/runtime-interpreter.cc",
Emily Bernierd0a1eb72015-03-24 16:35:39 -04001329 "src/runtime/runtime-json.cc",
1330 "src/runtime/runtime-literals.cc",
1331 "src/runtime/runtime-liveedit.cc",
1332 "src/runtime/runtime-maths.cc",
1333 "src/runtime/runtime-numbers.cc",
1334 "src/runtime/runtime-object.cc",
1335 "src/runtime/runtime-observe.cc",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001336 "src/runtime/runtime-operators.cc",
Emily Bernierd0a1eb72015-03-24 16:35:39 -04001337 "src/runtime/runtime-proxy.cc",
1338 "src/runtime/runtime-regexp.cc",
1339 "src/runtime/runtime-scopes.cc",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001340 "src/runtime/runtime-simd.cc",
Emily Bernierd0a1eb72015-03-24 16:35:39 -04001341 "src/runtime/runtime-strings.cc",
1342 "src/runtime/runtime-symbol.cc",
1343 "src/runtime/runtime-test.cc",
1344 "src/runtime/runtime-typedarray.cc",
1345 "src/runtime/runtime-uri.cc",
1346 "src/runtime/runtime-utils.h",
1347 "src/runtime/runtime.cc",
1348 "src/runtime/runtime.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001349 "src/safepoint-table.cc",
1350 "src/safepoint-table.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001351 "src/signature.h",
1352 "src/simulator.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001353 "src/small-pointer-list.h",
Ben Murdochda12d292016-06-02 14:46:10 +01001354 "src/snapshot/code-serializer.cc",
1355 "src/snapshot/code-serializer.h",
1356 "src/snapshot/deserializer.cc",
1357 "src/snapshot/deserializer.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001358 "src/snapshot/natives-common.cc",
Ben Murdochda12d292016-06-02 14:46:10 +01001359 "src/snapshot/natives.h",
1360 "src/snapshot/partial-serializer.cc",
1361 "src/snapshot/partial-serializer.h",
1362 "src/snapshot/serializer-common.cc",
1363 "src/snapshot/serializer-common.h",
1364 "src/snapshot/serializer.cc",
1365 "src/snapshot/serializer.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001366 "src/snapshot/snapshot-common.cc",
1367 "src/snapshot/snapshot-source-sink.cc",
1368 "src/snapshot/snapshot-source-sink.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001369 "src/snapshot/snapshot.h",
Ben Murdochda12d292016-06-02 14:46:10 +01001370 "src/snapshot/startup-serializer.cc",
1371 "src/snapshot/startup-serializer.h",
1372 "src/source-position.h",
1373 "src/splay-tree-inl.h",
1374 "src/splay-tree.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001375 "src/startup-data-util.cc",
Ben Murdochda12d292016-06-02 14:46:10 +01001376 "src/startup-data-util.h",
Emily Bernierd0a1eb72015-03-24 16:35:39 -04001377 "src/string-builder.cc",
1378 "src/string-builder.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001379 "src/string-search.h",
1380 "src/string-stream.cc",
1381 "src/string-stream.h",
1382 "src/strtod.cc",
1383 "src/strtod.h",
Ben Murdochda12d292016-06-02 14:46:10 +01001384 "src/third_party/fdlibm/fdlibm.cc",
1385 "src/third_party/fdlibm/fdlibm.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001386 "src/tracing/trace-event.cc",
1387 "src/tracing/trace-event.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001388 "src/transitions-inl.h",
1389 "src/transitions.cc",
1390 "src/transitions.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001391 "src/type-cache.cc",
1392 "src/type-cache.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001393 "src/type-feedback-vector-inl.h",
1394 "src/type-feedback-vector.cc",
1395 "src/type-feedback-vector.h",
1396 "src/type-info.cc",
1397 "src/type-info.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001398 "src/types.cc",
1399 "src/types.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001400 "src/typing-asm.cc",
1401 "src/typing-asm.h",
1402 "src/typing-reset.cc",
1403 "src/typing-reset.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001404 "src/unicode-cache-inl.h",
1405 "src/unicode-cache.h",
Emily Bernierd0a1eb72015-03-24 16:35:39 -04001406 "src/unicode-decoder.cc",
1407 "src/unicode-decoder.h",
Ben Murdochda12d292016-06-02 14:46:10 +01001408 "src/unicode-inl.h",
1409 "src/unicode.cc",
1410 "src/unicode.h",
Ben Murdoch097c5b22016-05-18 11:27:45 +01001411 "src/utils-inl.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001412 "src/utils.cc",
1413 "src/utils.h",
1414 "src/v8.cc",
1415 "src/v8.h",
1416 "src/v8memory.h",
1417 "src/v8threads.cc",
1418 "src/v8threads.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001419 "src/version.cc",
1420 "src/version.h",
1421 "src/vm-state-inl.h",
1422 "src/vm-state.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001423 "src/wasm/asm-wasm-builder.cc",
1424 "src/wasm/asm-wasm-builder.h",
1425 "src/wasm/ast-decoder.cc",
1426 "src/wasm/ast-decoder.h",
1427 "src/wasm/decoder.h",
1428 "src/wasm/encoder.cc",
1429 "src/wasm/encoder.h",
1430 "src/wasm/module-decoder.cc",
1431 "src/wasm/module-decoder.h",
Ben Murdochda12d292016-06-02 14:46:10 +01001432 "src/wasm/wasm-external-refs.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001433 "src/wasm/wasm-js.cc",
1434 "src/wasm/wasm-js.h",
1435 "src/wasm/wasm-macro-gen.h",
1436 "src/wasm/wasm-module.cc",
1437 "src/wasm/wasm-module.h",
1438 "src/wasm/wasm-opcodes.cc",
1439 "src/wasm/wasm-opcodes.h",
1440 "src/wasm/wasm-result.cc",
1441 "src/wasm/wasm-result.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001442 "src/zone-allocator.h",
1443 "src/zone-containers.h",
Ben Murdochda12d292016-06-02 14:46:10 +01001444 "src/zone.cc",
1445 "src/zone.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001446 ]
1447
1448 if (v8_target_arch == "x86") {
1449 sources += [
Ben Murdochda12d292016-06-02 14:46:10 +01001450 "src/compiler/ia32/code-generator-ia32.cc",
1451 "src/compiler/ia32/instruction-codes-ia32.h",
1452 "src/compiler/ia32/instruction-scheduler-ia32.cc",
1453 "src/compiler/ia32/instruction-selector-ia32.cc",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001454 "src/crankshaft/ia32/lithium-codegen-ia32.cc",
1455 "src/crankshaft/ia32/lithium-codegen-ia32.h",
1456 "src/crankshaft/ia32/lithium-gap-resolver-ia32.cc",
1457 "src/crankshaft/ia32/lithium-gap-resolver-ia32.h",
1458 "src/crankshaft/ia32/lithium-ia32.cc",
1459 "src/crankshaft/ia32/lithium-ia32.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001460 "src/debug/ia32/debug-ia32.cc",
1461 "src/full-codegen/ia32/full-codegen-ia32.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001462 "src/ia32/assembler-ia32-inl.h",
1463 "src/ia32/assembler-ia32.cc",
1464 "src/ia32/assembler-ia32.h",
1465 "src/ia32/builtins-ia32.cc",
1466 "src/ia32/code-stubs-ia32.cc",
1467 "src/ia32/code-stubs-ia32.h",
1468 "src/ia32/codegen-ia32.cc",
1469 "src/ia32/codegen-ia32.h",
1470 "src/ia32/cpu-ia32.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001471 "src/ia32/deoptimizer-ia32.cc",
1472 "src/ia32/disasm-ia32.cc",
1473 "src/ia32/frames-ia32.cc",
1474 "src/ia32/frames-ia32.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001475 "src/ia32/interface-descriptors-ia32.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001476 "src/ia32/macro-assembler-ia32.cc",
1477 "src/ia32/macro-assembler-ia32.h",
Emily Bernierd0a1eb72015-03-24 16:35:39 -04001478 "src/ic/ia32/access-compiler-ia32.cc",
1479 "src/ic/ia32/handler-compiler-ia32.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001480 "src/ic/ia32/ic-compiler-ia32.cc",
Ben Murdochda12d292016-06-02 14:46:10 +01001481 "src/ic/ia32/ic-ia32.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001482 "src/ic/ia32/stub-cache-ia32.cc",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001483 "src/regexp/ia32/regexp-macro-assembler-ia32.cc",
1484 "src/regexp/ia32/regexp-macro-assembler-ia32.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001485 ]
1486 } else if (v8_target_arch == "x64") {
1487 sources += [
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001488 "src/compiler/x64/code-generator-x64.cc",
1489 "src/compiler/x64/instruction-codes-x64.h",
1490 "src/compiler/x64/instruction-scheduler-x64.cc",
1491 "src/compiler/x64/instruction-selector-x64.cc",
1492 "src/crankshaft/x64/lithium-codegen-x64.cc",
1493 "src/crankshaft/x64/lithium-codegen-x64.h",
1494 "src/crankshaft/x64/lithium-gap-resolver-x64.cc",
1495 "src/crankshaft/x64/lithium-gap-resolver-x64.h",
1496 "src/crankshaft/x64/lithium-x64.cc",
1497 "src/crankshaft/x64/lithium-x64.h",
1498 "src/debug/x64/debug-x64.cc",
1499 "src/full-codegen/x64/full-codegen-x64.cc",
1500 "src/ic/x64/access-compiler-x64.cc",
1501 "src/ic/x64/handler-compiler-x64.cc",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001502 "src/ic/x64/ic-compiler-x64.cc",
Ben Murdochda12d292016-06-02 14:46:10 +01001503 "src/ic/x64/ic-x64.cc",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001504 "src/ic/x64/stub-cache-x64.cc",
1505 "src/regexp/x64/regexp-macro-assembler-x64.cc",
1506 "src/regexp/x64/regexp-macro-assembler-x64.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001507 "src/x64/assembler-x64-inl.h",
1508 "src/x64/assembler-x64.cc",
1509 "src/x64/assembler-x64.h",
1510 "src/x64/builtins-x64.cc",
1511 "src/x64/code-stubs-x64.cc",
1512 "src/x64/code-stubs-x64.h",
1513 "src/x64/codegen-x64.cc",
1514 "src/x64/codegen-x64.h",
1515 "src/x64/cpu-x64.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001516 "src/x64/deoptimizer-x64.cc",
1517 "src/x64/disasm-x64.cc",
1518 "src/x64/frames-x64.cc",
1519 "src/x64/frames-x64.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001520 "src/x64/interface-descriptors-x64.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001521 "src/x64/macro-assembler-x64.cc",
1522 "src/x64/macro-assembler-x64.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001523 ]
1524 } else if (v8_target_arch == "arm") {
1525 sources += [
1526 "src/arm/assembler-arm-inl.h",
1527 "src/arm/assembler-arm.cc",
1528 "src/arm/assembler-arm.h",
1529 "src/arm/builtins-arm.cc",
1530 "src/arm/code-stubs-arm.cc",
1531 "src/arm/code-stubs-arm.h",
1532 "src/arm/codegen-arm.cc",
1533 "src/arm/codegen-arm.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001534 "src/arm/constants-arm.cc",
Ben Murdochda12d292016-06-02 14:46:10 +01001535 "src/arm/constants-arm.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001536 "src/arm/cpu-arm.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001537 "src/arm/deoptimizer-arm.cc",
1538 "src/arm/disasm-arm.cc",
1539 "src/arm/frames-arm.cc",
1540 "src/arm/frames-arm.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001541 "src/arm/interface-descriptors-arm.cc",
1542 "src/arm/interface-descriptors-arm.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001543 "src/arm/macro-assembler-arm.cc",
1544 "src/arm/macro-assembler-arm.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001545 "src/arm/simulator-arm.cc",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001546 "src/arm/simulator-arm.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001547 "src/compiler/arm/code-generator-arm.cc",
1548 "src/compiler/arm/instruction-codes-arm.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001549 "src/compiler/arm/instruction-scheduler-arm.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001550 "src/compiler/arm/instruction-selector-arm.cc",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001551 "src/crankshaft/arm/lithium-arm.cc",
1552 "src/crankshaft/arm/lithium-arm.h",
1553 "src/crankshaft/arm/lithium-codegen-arm.cc",
1554 "src/crankshaft/arm/lithium-codegen-arm.h",
1555 "src/crankshaft/arm/lithium-gap-resolver-arm.cc",
1556 "src/crankshaft/arm/lithium-gap-resolver-arm.h",
1557 "src/debug/arm/debug-arm.cc",
1558 "src/full-codegen/arm/full-codegen-arm.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001559 "src/ic/arm/access-compiler-arm.cc",
1560 "src/ic/arm/handler-compiler-arm.cc",
1561 "src/ic/arm/ic-arm.cc",
1562 "src/ic/arm/ic-compiler-arm.cc",
1563 "src/ic/arm/stub-cache-arm.cc",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001564 "src/regexp/arm/regexp-macro-assembler-arm.cc",
1565 "src/regexp/arm/regexp-macro-assembler-arm.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001566 ]
1567 } else if (v8_target_arch == "arm64") {
1568 sources += [
Ben Murdochda12d292016-06-02 14:46:10 +01001569 "src/arm64/assembler-arm64-inl.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001570 "src/arm64/assembler-arm64.cc",
1571 "src/arm64/assembler-arm64.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001572 "src/arm64/builtins-arm64.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001573 "src/arm64/code-stubs-arm64.cc",
1574 "src/arm64/code-stubs-arm64.h",
Ben Murdochda12d292016-06-02 14:46:10 +01001575 "src/arm64/codegen-arm64.cc",
1576 "src/arm64/codegen-arm64.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001577 "src/arm64/constants-arm64.h",
1578 "src/arm64/cpu-arm64.cc",
Ben Murdochda12d292016-06-02 14:46:10 +01001579 "src/arm64/decoder-arm64-inl.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001580 "src/arm64/decoder-arm64.cc",
1581 "src/arm64/decoder-arm64.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001582 "src/arm64/deoptimizer-arm64.cc",
1583 "src/arm64/disasm-arm64.cc",
1584 "src/arm64/disasm-arm64.h",
1585 "src/arm64/frames-arm64.cc",
1586 "src/arm64/frames-arm64.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001587 "src/arm64/instructions-arm64.cc",
1588 "src/arm64/instructions-arm64.h",
1589 "src/arm64/instrument-arm64.cc",
1590 "src/arm64/instrument-arm64.h",
1591 "src/arm64/interface-descriptors-arm64.cc",
1592 "src/arm64/interface-descriptors-arm64.h",
Ben Murdochda12d292016-06-02 14:46:10 +01001593 "src/arm64/macro-assembler-arm64-inl.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001594 "src/arm64/macro-assembler-arm64.cc",
1595 "src/arm64/macro-assembler-arm64.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001596 "src/arm64/simulator-arm64.cc",
1597 "src/arm64/simulator-arm64.h",
1598 "src/arm64/utils-arm64.cc",
1599 "src/arm64/utils-arm64.h",
1600 "src/compiler/arm64/code-generator-arm64.cc",
1601 "src/compiler/arm64/instruction-codes-arm64.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001602 "src/compiler/arm64/instruction-scheduler-arm64.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001603 "src/compiler/arm64/instruction-selector-arm64.cc",
Ben Murdochda12d292016-06-02 14:46:10 +01001604 "src/crankshaft/arm64/delayed-masm-arm64-inl.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001605 "src/crankshaft/arm64/delayed-masm-arm64.cc",
1606 "src/crankshaft/arm64/delayed-masm-arm64.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001607 "src/crankshaft/arm64/lithium-arm64.cc",
1608 "src/crankshaft/arm64/lithium-arm64.h",
1609 "src/crankshaft/arm64/lithium-codegen-arm64.cc",
1610 "src/crankshaft/arm64/lithium-codegen-arm64.h",
1611 "src/crankshaft/arm64/lithium-gap-resolver-arm64.cc",
1612 "src/crankshaft/arm64/lithium-gap-resolver-arm64.h",
1613 "src/debug/arm64/debug-arm64.cc",
1614 "src/full-codegen/arm64/full-codegen-arm64.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001615 "src/ic/arm64/access-compiler-arm64.cc",
1616 "src/ic/arm64/handler-compiler-arm64.cc",
1617 "src/ic/arm64/ic-arm64.cc",
1618 "src/ic/arm64/ic-compiler-arm64.cc",
1619 "src/ic/arm64/stub-cache-arm64.cc",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001620 "src/regexp/arm64/regexp-macro-assembler-arm64.cc",
1621 "src/regexp/arm64/regexp-macro-assembler-arm64.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001622 ]
1623 } else if (v8_target_arch == "mipsel") {
1624 sources += [
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001625 "src/compiler/mips/code-generator-mips.cc",
1626 "src/compiler/mips/instruction-codes-mips.h",
1627 "src/compiler/mips/instruction-scheduler-mips.cc",
1628 "src/compiler/mips/instruction-selector-mips.cc",
1629 "src/crankshaft/mips/lithium-codegen-mips.cc",
1630 "src/crankshaft/mips/lithium-codegen-mips.h",
1631 "src/crankshaft/mips/lithium-gap-resolver-mips.cc",
1632 "src/crankshaft/mips/lithium-gap-resolver-mips.h",
1633 "src/crankshaft/mips/lithium-mips.cc",
1634 "src/crankshaft/mips/lithium-mips.h",
1635 "src/debug/mips/debug-mips.cc",
1636 "src/full-codegen/mips/full-codegen-mips.cc",
1637 "src/ic/mips/access-compiler-mips.cc",
1638 "src/ic/mips/handler-compiler-mips.cc",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001639 "src/ic/mips/ic-compiler-mips.cc",
Ben Murdochda12d292016-06-02 14:46:10 +01001640 "src/ic/mips/ic-mips.cc",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001641 "src/ic/mips/stub-cache-mips.cc",
Ben Murdochda12d292016-06-02 14:46:10 +01001642 "src/mips/assembler-mips-inl.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001643 "src/mips/assembler-mips.cc",
1644 "src/mips/assembler-mips.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001645 "src/mips/builtins-mips.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001646 "src/mips/code-stubs-mips.cc",
1647 "src/mips/code-stubs-mips.h",
Ben Murdochda12d292016-06-02 14:46:10 +01001648 "src/mips/codegen-mips.cc",
1649 "src/mips/codegen-mips.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001650 "src/mips/constants-mips.cc",
1651 "src/mips/constants-mips.h",
1652 "src/mips/cpu-mips.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001653 "src/mips/deoptimizer-mips.cc",
1654 "src/mips/disasm-mips.cc",
1655 "src/mips/frames-mips.cc",
1656 "src/mips/frames-mips.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001657 "src/mips/interface-descriptors-mips.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001658 "src/mips/macro-assembler-mips.cc",
1659 "src/mips/macro-assembler-mips.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001660 "src/mips/simulator-mips.cc",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001661 "src/mips/simulator-mips.h",
1662 "src/regexp/mips/regexp-macro-assembler-mips.cc",
1663 "src/regexp/mips/regexp-macro-assembler-mips.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001664 ]
1665 } else if (v8_target_arch == "mips64el") {
1666 sources += [
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001667 "compiler/mips64/code-generator-mips64.cc",
1668 "compiler/mips64/instruction-codes-mips64.h",
1669 "compiler/mips64/instruction-scheduler-mips64.cc",
1670 "compiler/mips64/instruction-selector-mips64.cc",
1671 "src/crankshaft/mips64/lithium-codegen-mips64.cc",
1672 "src/crankshaft/mips64/lithium-codegen-mips64.h",
1673 "src/crankshaft/mips64/lithium-gap-resolver-mips64.cc",
1674 "src/crankshaft/mips64/lithium-gap-resolver-mips64.h",
1675 "src/crankshaft/mips64/lithium-mips64.cc",
1676 "src/crankshaft/mips64/lithium-mips64.h",
1677 "src/debug/mips64/debug-mips64.cc",
1678 "src/full-codegen/mips64/full-codegen-mips64.cc",
1679 "src/ic/mips64/access-compiler-mips64.cc",
1680 "src/ic/mips64/handler-compiler-mips64.cc",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001681 "src/ic/mips64/ic-compiler-mips64.cc",
Ben Murdochda12d292016-06-02 14:46:10 +01001682 "src/ic/mips64/ic-mips64.cc",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001683 "src/ic/mips64/stub-cache-mips64.cc",
Ben Murdochda12d292016-06-02 14:46:10 +01001684 "src/mips64/assembler-mips64-inl.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001685 "src/mips64/assembler-mips64.cc",
1686 "src/mips64/assembler-mips64.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001687 "src/mips64/builtins-mips64.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001688 "src/mips64/code-stubs-mips64.cc",
1689 "src/mips64/code-stubs-mips64.h",
Ben Murdochda12d292016-06-02 14:46:10 +01001690 "src/mips64/codegen-mips64.cc",
1691 "src/mips64/codegen-mips64.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001692 "src/mips64/constants-mips64.cc",
1693 "src/mips64/constants-mips64.h",
1694 "src/mips64/cpu-mips64.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001695 "src/mips64/deoptimizer-mips64.cc",
1696 "src/mips64/disasm-mips64.cc",
1697 "src/mips64/frames-mips64.cc",
1698 "src/mips64/frames-mips64.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001699 "src/mips64/interface-descriptors-mips64.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001700 "src/mips64/macro-assembler-mips64.cc",
1701 "src/mips64/macro-assembler-mips64.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001702 "src/mips64/simulator-mips64.cc",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001703 "src/mips64/simulator-mips64.h",
1704 "src/regexp/mips64/regexp-macro-assembler-mips64.cc",
1705 "src/regexp/mips64/regexp-macro-assembler-mips64.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001706 ]
Ben Murdochda12d292016-06-02 14:46:10 +01001707 } else if (v8_target_arch == "s390" || v8_target_arch == "s390x") {
1708 sources += [
1709 "src/compiler/s390/code-generator-s390.cc",
1710 "src/compiler/s390/instruction-codes-s390.h",
1711 "src/compiler/s390/instruction-scheduler-s390.cc",
1712 "src/compiler/s390/instruction-selector-s390.cc",
1713 "src/crankshaft/s390/lithium-codegen-s390.cc",
1714 "src/crankshaft/s390/lithium-codegen-s390.h",
1715 "src/crankshaft/s390/lithium-gap-resolver-s390.cc",
1716 "src/crankshaft/s390/lithium-gap-resolver-s390.h",
1717 "src/crankshaft/s390/lithium-s390.cc",
1718 "src/crankshaft/s390/lithium-s390.h",
1719 "src/debug/s390/debug-s390.cc",
1720 "src/full-codegen/s390/full-codegen-s390.cc",
1721 "src/ic/s390/access-compiler-s390.cc",
1722 "src/ic/s390/handler-compiler-s390.cc",
1723 "src/ic/s390/ic-compiler-s390.cc",
1724 "src/ic/s390/ic-s390.cc",
1725 "src/ic/s390/stub-cache-s390.cc",
1726 "src/regexp/s390/regexp-macro-assembler-s390.cc",
1727 "src/regexp/s390/regexp-macro-assembler-s390.h",
1728 "src/s390/assembler-s390-inl.h",
1729 "src/s390/assembler-s390.cc",
1730 "src/s390/assembler-s390.h",
1731 "src/s390/builtins-s390.cc",
1732 "src/s390/code-stubs-s390.cc",
1733 "src/s390/code-stubs-s390.h",
1734 "src/s390/codegen-s390.cc",
1735 "src/s390/codegen-s390.h",
1736 "src/s390/constants-s390.cc",
1737 "src/s390/constants-s390.h",
1738 "src/s390/cpu-s390.cc",
1739 "src/s390/deoptimizer-s390.cc",
1740 "src/s390/disasm-s390.cc",
1741 "src/s390/frames-s390.cc",
1742 "src/s390/frames-s390.h",
1743 "src/s390/interface-descriptors-s390.cc",
1744 "src/s390/macro-assembler-s390.cc",
1745 "src/s390/macro-assembler-s390.h",
1746 "src/s390/simulator-s390.cc",
1747 "src/s390/simulator-s390.h",
1748 ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001749 }
1750
1751 configs -= [ "//build/config/compiler:chromium_code" ]
1752 configs += [ "//build/config/compiler:no_chromium_code" ]
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001753 configs += [
1754 ":internal_config",
1755 ":features",
1756 ":toolchain",
1757 ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001758
1759 if (!is_debug) {
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001760 configs -= [ "//build/config/compiler:default_optimization" ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001761 configs += [ "//build/config/compiler:optimize_max" ]
1762 }
1763
1764 defines = []
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001765 deps = [
1766 ":v8_libbase",
1767 ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001768
1769 if (is_win) {
1770 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1771 cflags = [ "/wd4267" ]
1772 }
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001773
1774 if (v8_enable_i18n_support) {
1775 deps += [ "//third_party/icu" ]
1776 if (is_win) {
1777 deps += [ "//third_party/icu:icudata" ]
1778 }
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001779
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001780 # TODO(jochen): Add support for icu_use_data_file_flag
1781 defines += [ "ICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE" ]
1782 } else {
1783 sources -= [
1784 "src/i18n.cc",
1785 "src/i18n.h",
1786 ]
1787 }
1788
1789 if (v8_postmortem_support) {
1790 sources += [ "$target_gen_dir/debug-support.cc" ]
1791 deps += [ ":postmortem-metadata" ]
1792 }
1793}
1794
1795source_set("v8_libbase") {
1796 visibility = [ ":*" ] # Only targets in this file can depend on this.
1797
1798 sources = [
Ben Murdochda12d292016-06-02 14:46:10 +01001799 "src/base/accounting-allocator.cc",
1800 "src/base/accounting-allocator.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001801 "src/base/adapters.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001802 "src/base/atomicops.h",
1803 "src/base/atomicops_internals_arm64_gcc.h",
1804 "src/base/atomicops_internals_arm_gcc.h",
1805 "src/base/atomicops_internals_atomicword_compat.h",
1806 "src/base/atomicops_internals_mac.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001807 "src/base/atomicops_internals_mips64_gcc.h",
Ben Murdochda12d292016-06-02 14:46:10 +01001808 "src/base/atomicops_internals_mips_gcc.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001809 "src/base/atomicops_internals_portable.h",
Ben Murdoch097c5b22016-05-18 11:27:45 +01001810 "src/base/atomicops_internals_s390_gcc.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001811 "src/base/atomicops_internals_tsan.h",
1812 "src/base/atomicops_internals_x86_gcc.cc",
1813 "src/base/atomicops_internals_x86_gcc.h",
1814 "src/base/atomicops_internals_x86_msvc.h",
1815 "src/base/bits.cc",
1816 "src/base/bits.h",
1817 "src/base/build_config.h",
1818 "src/base/cpu.cc",
1819 "src/base/cpu.h",
1820 "src/base/division-by-constant.cc",
1821 "src/base/division-by-constant.h",
1822 "src/base/flags.h",
Emily Bernierd0a1eb72015-03-24 16:35:39 -04001823 "src/base/functional.cc",
1824 "src/base/functional.h",
1825 "src/base/iterator.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001826 "src/base/lazy-instance.h",
1827 "src/base/logging.cc",
1828 "src/base/logging.h",
1829 "src/base/macros.h",
1830 "src/base/once.cc",
1831 "src/base/once.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001832 "src/base/platform/condition-variable.cc",
1833 "src/base/platform/condition-variable.h",
Ben Murdochda12d292016-06-02 14:46:10 +01001834 "src/base/platform/elapsed-timer.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001835 "src/base/platform/mutex.cc",
1836 "src/base/platform/mutex.h",
1837 "src/base/platform/platform.h",
1838 "src/base/platform/semaphore.cc",
1839 "src/base/platform/semaphore.h",
Ben Murdochda12d292016-06-02 14:46:10 +01001840 "src/base/platform/time.cc",
1841 "src/base/platform/time.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001842 "src/base/safe_conversions.h",
1843 "src/base/safe_conversions_impl.h",
1844 "src/base/safe_math.h",
1845 "src/base/safe_math_impl.h",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001846 "src/base/smart-pointers.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001847 "src/base/sys-info.cc",
1848 "src/base/sys-info.h",
1849 "src/base/utils/random-number-generator.cc",
1850 "src/base/utils/random-number-generator.h",
1851 ]
1852
1853 configs -= [ "//build/config/compiler:chromium_code" ]
1854 configs += [ "//build/config/compiler:no_chromium_code" ]
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001855 configs += [
1856 ":internal_config_base",
1857 ":features",
1858 ":toolchain",
1859 ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001860
1861 if (!is_debug) {
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001862 configs -= [ "//build/config/compiler:default_optimization" ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001863 configs += [ "//build/config/compiler:optimize_max" ]
1864 }
1865
1866 defines = []
1867
1868 if (is_posix) {
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001869 sources += [ "src/base/platform/platform-posix.cc" ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001870 }
1871
1872 if (is_linux) {
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001873 sources += [ "src/base/platform/platform-linux.cc" ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001874
Ben Murdochda12d292016-06-02 14:46:10 +01001875 libs = [
1876 "dl",
1877 "rt",
1878 ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001879 } else if (is_android) {
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001880 if (current_toolchain == host_toolchain) {
Ben Murdochda12d292016-06-02 14:46:10 +01001881 libs = [
1882 "dl",
1883 "rt",
1884 ]
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001885 if (host_os == "mac") {
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001886 sources += [ "src/base/platform/platform-macos.cc" ]
1887 } else {
1888 sources += [ "src/base/platform/platform-linux.cc" ]
1889 }
1890 } else {
1891 sources += [ "src/base/platform/platform-linux.cc" ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001892 }
1893 } else if (is_mac) {
1894 sources += [ "src/base/platform/platform-macos.cc" ]
1895 } else if (is_win) {
1896 # TODO(jochen): Add support for cygwin.
1897 sources += [
1898 "src/base/platform/platform-win32.cc",
1899 "src/base/win32-headers.h",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001900 ]
1901
1902 defines += [ "_CRT_RAND_S" ] # for rand_s()
1903
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001904 libs = [
1905 "winmm.lib",
1906 "ws2_32.lib",
1907 ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001908 }
1909
1910 # TODO(jochen): Add support for qnx, freebsd, openbsd, netbsd, and solaris.
1911}
1912
1913source_set("v8_libplatform") {
1914 sources = [
1915 "include/libplatform/libplatform.h",
1916 "src/libplatform/default-platform.cc",
1917 "src/libplatform/default-platform.h",
1918 "src/libplatform/task-queue.cc",
1919 "src/libplatform/task-queue.h",
1920 "src/libplatform/worker-thread.cc",
1921 "src/libplatform/worker-thread.h",
1922 ]
1923
1924 configs -= [ "//build/config/compiler:chromium_code" ]
1925 configs += [ "//build/config/compiler:no_chromium_code" ]
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001926 configs += [
1927 ":internal_config_base",
1928 ":features",
1929 ":toolchain",
1930 ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001931
1932 if (!is_debug) {
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001933 configs -= [ "//build/config/compiler:default_optimization" ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001934 configs += [ "//build/config/compiler:optimize_max" ]
1935 }
1936
1937 deps = [
1938 ":v8_libbase",
1939 ]
1940}
1941
Ben Murdoch097c5b22016-05-18 11:27:45 +01001942source_set("fuzzer_support") {
1943 visibility = [ ":*" ] # Only targets in this file can depend on this.
1944
1945 sources = [
1946 "test/fuzzer/fuzzer-support.cc",
1947 "test/fuzzer/fuzzer-support.h",
1948 ]
1949
1950 configs -= [ "//build/config/compiler:chromium_code" ]
1951 configs += [ "//build/config/compiler:no_chromium_code" ]
1952 configs += [
1953 ":internal_config_base",
Ben Murdochda12d292016-06-02 14:46:10 +01001954 ":libplatform_config",
Ben Murdoch097c5b22016-05-18 11:27:45 +01001955 ":features",
1956 ":toolchain",
1957 ]
1958
1959 deps = [
1960 ":v8_libplatform",
1961 snapshot_target,
1962 ]
1963}
1964
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001965###############################################################################
1966# Executables
1967#
1968
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001969if (current_toolchain == snapshot_toolchain) {
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001970 executable("mksnapshot") {
1971 visibility = [ ":*" ] # Only targets in this file can depend on this.
1972
1973 sources = [
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001974 "src/snapshot/mksnapshot.cc",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001975 ]
1976
1977 configs -= [ "//build/config/compiler:chromium_code" ]
1978 configs += [ "//build/config/compiler:no_chromium_code" ]
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001979 configs += [
1980 ":internal_config",
Ben Murdochda12d292016-06-02 14:46:10 +01001981 ":libplatform_config",
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001982 ":features",
1983 ":toolchain",
1984 ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001985
1986 deps = [
1987 ":v8_base",
1988 ":v8_libplatform",
1989 ":v8_nosnapshot",
Emily Bernierd0a1eb72015-03-24 16:35:39 -04001990 "//build/config/sanitizers:deps",
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001991 ]
Ben Murdochb8a8cc12014-11-26 15:28:44 +00001992 }
1993}
1994
1995###############################################################################
1996# Public targets
1997#
1998
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001999if (is_component_build) {
2000 component("v8") {
2001 sources = [
2002 "src/v8dll-main.cc",
2003 ]
2004
2005 public_deps = [
2006 ":v8_base",
2007 snapshot_target,
2008 ]
2009
2010 configs -= [ "//build/config/compiler:chromium_code" ]
2011 configs += [ "//build/config/compiler:no_chromium_code" ]
2012 configs += [
2013 ":internal_config",
2014 ":features",
2015 ":toolchain",
2016 ]
2017
2018 public_configs = [ ":external_config" ]
2019
2020 libs = []
2021 if (is_android && current_toolchain != host_toolchain) {
2022 libs += [ "log" ]
2023 }
2024 }
2025} else {
2026 group("v8") {
2027 public_deps = [
2028 ":v8_base",
2029 snapshot_target,
2030 ]
2031 public_configs = [ ":external_config" ]
2032 }
2033}
2034
2035if ((current_toolchain == host_toolchain && v8_toolset_for_d8 == "host") ||
2036 (current_toolchain == snapshot_toolchain && v8_toolset_for_d8 == "host") ||
2037 (current_toolchain != host_toolchain && v8_toolset_for_d8 == "target")) {
2038 executable("d8") {
2039 sources = [
2040 "src/d8.cc",
2041 "src/d8.h",
2042 ]
2043
2044 configs -= [ "//build/config/compiler:chromium_code" ]
2045 configs += [ "//build/config/compiler:no_chromium_code" ]
2046 configs += [
2047 # Note: don't use :internal_config here because this target will get
2048 # the :external_config applied to it by virtue of depending on :v8, and
2049 # you can't have both applied to the same target.
2050 ":internal_config_base",
2051 ":features",
2052 ":toolchain",
2053 ]
2054
2055 deps = [
2056 ":d8_js2c",
2057 ":v8",
2058 ":v8_libplatform",
2059 "//build/config/sanitizers:deps",
2060 ]
2061
2062 # TODO(jochen): Add support for vtunejit.
2063
2064 if (is_posix) {
2065 sources += [ "src/d8-posix.cc" ]
2066 } else if (is_win) {
2067 sources += [ "src/d8-windows.cc" ]
2068 }
2069
2070 if (!is_component_build) {
Ben Murdochda12d292016-06-02 14:46:10 +01002071 sources += [ "$target_gen_dir/d8-js.cc" ]
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00002072 }
2073 if (v8_enable_i18n_support) {
2074 deps += [ "//third_party/icu" ]
2075 }
2076 }
Ben Murdochb8a8cc12014-11-26 15:28:44 +00002077}
Ben Murdoch097c5b22016-05-18 11:27:45 +01002078
2079source_set("json_fuzzer") {
2080 sources = [
2081 "test/fuzzer/json.cc",
2082 ]
2083
2084 deps = [
2085 ":fuzzer_support",
2086 ]
2087
2088 configs -= [ "//build/config/compiler:chromium_code" ]
2089 configs += [ "//build/config/compiler:no_chromium_code" ]
2090 configs += [
2091 ":internal_config",
Ben Murdochda12d292016-06-02 14:46:10 +01002092 ":libplatform_config",
Ben Murdoch097c5b22016-05-18 11:27:45 +01002093 ":features",
2094 ":toolchain",
2095 ]
2096}
2097
2098source_set("parser_fuzzer") {
2099 sources = [
2100 "test/fuzzer/parser.cc",
2101 ]
2102
2103 deps = [
2104 ":fuzzer_support",
2105 ]
2106
2107 configs -= [ "//build/config/compiler:chromium_code" ]
2108 configs += [ "//build/config/compiler:no_chromium_code" ]
2109 configs += [
2110 ":internal_config",
Ben Murdochda12d292016-06-02 14:46:10 +01002111 ":libplatform_config",
Ben Murdoch097c5b22016-05-18 11:27:45 +01002112 ":features",
2113 ":toolchain",
2114 ]
2115}
2116
2117source_set("regexp_fuzzer") {
2118 sources = [
2119 "test/fuzzer/regexp.cc",
2120 ]
2121
2122 deps = [
2123 ":fuzzer_support",
2124 ]
2125
2126 configs -= [ "//build/config/compiler:chromium_code" ]
2127 configs += [ "//build/config/compiler:no_chromium_code" ]
2128 configs += [
2129 ":internal_config",
Ben Murdochda12d292016-06-02 14:46:10 +01002130 ":libplatform_config",
2131 ":features",
2132 ":toolchain",
2133 ]
2134}
2135
2136source_set("wasm_fuzzer") {
2137 sources = [
2138 "test/fuzzer/wasm.cc",
2139 ]
2140
2141 deps = [
2142 ":fuzzer_support",
2143 ]
2144
2145 configs -= [ "//build/config/compiler:chromium_code" ]
2146 configs += [ "//build/config/compiler:no_chromium_code" ]
2147 configs += [
2148 ":internal_config",
2149 ":libplatform_config",
2150 ":features",
2151 ":toolchain",
2152 ]
2153}
2154
2155source_set("wasm_asmjs_fuzzer") {
2156 sources = [
2157 "test/fuzzer/wasm-asmjs.cc",
2158 ]
2159
2160 deps = [
2161 ":fuzzer_support",
2162 ]
2163
2164 configs -= [ "//build/config/compiler:chromium_code" ]
2165 configs += [ "//build/config/compiler:no_chromium_code" ]
2166 configs += [
2167 ":internal_config",
2168 ":libplatform_config",
Ben Murdoch097c5b22016-05-18 11:27:45 +01002169 ":features",
2170 ":toolchain",
2171 ]
2172}