blob: ef0c562ebcf13f9481da9dc93a3382d0366bd661 [file] [log] [blame]
Ben Murdochc5610432016-08-08 18:44:38 +01001# Copyright 2012 the V8 project authors. All rights reserved.
2# Redistribution and use in source and binary forms, with or without
3# modification, are permitted provided that the following conditions are
4# met:
5#
6# * Redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer.
8# * Redistributions in binary form must reproduce the above
9# copyright notice, this list of conditions and the following
10# disclaimer in the documentation and/or other materials provided
11# with the distribution.
12# * Neither the name of Google Inc. nor the names of its
13# contributors may be used to endorse or promote products derived
14# from this software without specific prior written permission.
15#
16# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
28{
29 'variables': {
30 'icu_use_data_file_flag%': 0,
31 'v8_code': 1,
32 'v8_random_seed%': 314159265,
33 'v8_vector_stores%': 0,
34 'embed_script%': "",
35 'warmup_script%': "",
36 'v8_extra_library_files%': [],
37 'v8_experimental_extra_library_files%': [],
38 'mksnapshot_exec': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot<(EXECUTABLE_SUFFIX)',
39 },
40 'includes': ['../gypfiles/toolchain.gypi', '../gypfiles/features.gypi'],
41 'targets': [
42 {
43 'target_name': 'v8',
44 'dependencies_traverse': 1,
45 'dependencies': ['v8_maybe_snapshot'],
46 'conditions': [
47 ['want_separate_host_toolset==1', {
48 'toolsets': ['host', 'target'],
49 }, {
50 'toolsets': ['target'],
51 }],
52 ['component=="shared_library"', {
53 'type': '<(component)',
54 'sources': [
55 # Note: on non-Windows we still build this file so that gyp
56 # has some sources to link into the component.
57 'v8dll-main.cc',
58 ],
59 'include_dirs': [
60 '..',
61 ],
62 'defines': [
63 'V8_SHARED',
64 'BUILDING_V8_SHARED',
65 ],
66 'direct_dependent_settings': {
67 'defines': [
68 'V8_SHARED',
69 'USING_V8_SHARED',
70 ],
71 },
72 'target_conditions': [
73 ['OS=="android" and _toolset=="target"', {
74 'libraries': [
75 '-llog',
76 ],
77 'include_dirs': [
78 'src/common/android/include',
79 ],
80 }],
81 ],
82 'conditions': [
83 ['OS=="mac"', {
84 'xcode_settings': {
85 'OTHER_LDFLAGS': ['-dynamiclib', '-all_load']
86 },
87 }],
88 ['soname_version!=""', {
89 'product_extension': 'so.<(soname_version)',
90 }],
91 ],
92 },
93 {
94 'type': 'none',
95 }],
96 ],
97 'direct_dependent_settings': {
98 'include_dirs': [
99 '../include',
100 ],
101 },
102 },
103 {
104 # This rule delegates to either v8_snapshot, v8_nosnapshot, or
105 # v8_external_snapshot, depending on the current variables.
106 # The intention is to make the 'calling' rules a bit simpler.
107 'target_name': 'v8_maybe_snapshot',
108 'type': 'none',
109 'conditions': [
110 ['v8_use_snapshot!="true"', {
111 # The dependency on v8_base should come from a transitive
112 # dependency however the Android toolchain requires libv8_base.a
113 # to appear before libv8_snapshot.a so it's listed explicitly.
114 'dependencies': ['v8_base', 'v8_nosnapshot'],
115 }],
116 ['v8_use_snapshot=="true" and v8_use_external_startup_data==0', {
117 # The dependency on v8_base should come from a transitive
118 # dependency however the Android toolchain requires libv8_base.a
119 # to appear before libv8_snapshot.a so it's listed explicitly.
120 'dependencies': ['v8_base', 'v8_snapshot'],
121 }],
122 ['v8_use_snapshot=="true" and v8_use_external_startup_data==1 and want_separate_host_toolset==0', {
123 'dependencies': ['v8_base', 'v8_external_snapshot'],
124 'inputs': [ '<(PRODUCT_DIR)/snapshot_blob.bin', ],
125 }],
126 ['v8_use_snapshot=="true" and v8_use_external_startup_data==1 and want_separate_host_toolset==1', {
127 'dependencies': ['v8_base', 'v8_external_snapshot'],
128 'target_conditions': [
129 ['_toolset=="host"', {
130 'inputs': [
131 '<(PRODUCT_DIR)/snapshot_blob_host.bin',
132 ],
133 }, {
134 'inputs': [
135 '<(PRODUCT_DIR)/snapshot_blob.bin',
136 ],
137 }],
138 ],
139 }],
140 ['want_separate_host_toolset==1', {
141 'toolsets': ['host', 'target'],
142 }, {
143 'toolsets': ['target'],
144 }],
145 ]
146 },
147 {
148 'target_name': 'v8_snapshot',
149 'type': 'static_library',
150 'conditions': [
151 ['want_separate_host_toolset==1', {
152 'toolsets': ['host', 'target'],
153 'dependencies': [
154 'mksnapshot#host',
155 'js2c#host',
156 ],
157 }, {
158 'toolsets': ['target'],
159 'dependencies': [
160 'mksnapshot',
161 'js2c',
162 ],
163 }],
164 ['component=="shared_library"', {
165 'defines': [
166 'V8_SHARED',
167 'BUILDING_V8_SHARED',
168 ],
169 'direct_dependent_settings': {
170 'defines': [
171 'V8_SHARED',
172 'USING_V8_SHARED',
173 ],
174 },
175 }],
176 ],
177 'dependencies': [
178 'v8_base',
179 ],
180 'include_dirs+': [
181 '..',
182 ],
183 'sources': [
184 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc',
185 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc',
186 '<(SHARED_INTERMEDIATE_DIR)/extras-libraries.cc',
187 '<(SHARED_INTERMEDIATE_DIR)/experimental-extras-libraries.cc',
188 '<(INTERMEDIATE_DIR)/snapshot.cc',
189 ],
190 'actions': [
191 {
192 'action_name': 'run_mksnapshot',
193 'inputs': [
194 '<(mksnapshot_exec)',
195 ],
196 'conditions': [
197 ['embed_script!=""', {
198 'inputs': [
199 '<(embed_script)',
200 ],
201 }],
202 ['warmup_script!=""', {
203 'inputs': [
204 '<(warmup_script)',
205 ],
206 }],
207 ],
208 'outputs': [
209 '<(INTERMEDIATE_DIR)/snapshot.cc',
210 ],
211 'variables': {
212 'mksnapshot_flags': [],
213 'conditions': [
214 ['v8_random_seed!=0', {
215 'mksnapshot_flags': ['--random-seed', '<(v8_random_seed)'],
216 }],
217 ['v8_vector_stores!=0', {
218 'mksnapshot_flags': ['--vector-stores'],
219 }],
220 ],
221 },
222 'action': [
223 '<(mksnapshot_exec)',
224 '<@(mksnapshot_flags)',
225 '--startup_src', '<@(INTERMEDIATE_DIR)/snapshot.cc',
226 '<(embed_script)',
227 '<(warmup_script)',
228 ],
229 },
230 ],
231 },
232 {
233 'target_name': 'v8_nosnapshot',
234 'type': 'static_library',
235 'dependencies': [
236 'v8_base',
237 ],
238 'include_dirs+': [
239 '..',
240 ],
241 'sources': [
242 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc',
243 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc',
244 '<(SHARED_INTERMEDIATE_DIR)/extras-libraries.cc',
245 '<(SHARED_INTERMEDIATE_DIR)/experimental-extras-libraries.cc',
246 'snapshot/snapshot-empty.cc',
247 ],
248 'conditions': [
249 ['want_separate_host_toolset==1', {
250 'toolsets': ['host', 'target'],
251 'dependencies': ['js2c#host'],
252 }, {
253 'toolsets': ['target'],
254 'dependencies': ['js2c'],
255 }],
256 ['component=="shared_library"', {
257 'defines': [
258 'BUILDING_V8_SHARED',
259 'V8_SHARED',
260 ],
261 }],
262 ]
263 },
264 {
265 'target_name': 'v8_external_snapshot',
266 'type': 'static_library',
267 'conditions': [
268 [ 'v8_use_external_startup_data==1', {
269 'conditions': [
270 ['want_separate_host_toolset==1', {
271 'toolsets': ['host', 'target'],
272 'dependencies': [
273 'mksnapshot#host',
274 'js2c#host',
275 'natives_blob',
276 ]}, {
277 'toolsets': ['target'],
278 'dependencies': [
279 'mksnapshot',
280 'js2c',
281 'natives_blob',
282 ],
283 }],
284 ['component=="shared_library"', {
285 'defines': [
286 'V8_SHARED',
287 'BUILDING_V8_SHARED',
288 ],
289 'direct_dependent_settings': {
290 'defines': [
291 'V8_SHARED',
292 'USING_V8_SHARED',
293 ],
294 },
295 }],
296 ],
297 'dependencies': [
298 'v8_base',
299 ],
300 'include_dirs+': [
301 '..',
302 ],
303 'sources': [
304 'snapshot/natives-external.cc',
305 'snapshot/snapshot-external.cc',
306 ],
307 'actions': [
308 {
309 'action_name': 'run_mksnapshot (external)',
310 'inputs': [
311 '<(mksnapshot_exec)',
312 ],
313 'variables': {
314 'mksnapshot_flags': [],
315 'conditions': [
316 ['v8_random_seed!=0', {
317 'mksnapshot_flags': ['--random-seed', '<(v8_random_seed)'],
318 }],
319 ['v8_vector_stores!=0', {
320 'mksnapshot_flags': ['--vector-stores'],
321 }],
322 ],
323 },
324 'conditions': [
325 ['embed_script!=""', {
326 'inputs': [
327 '<(embed_script)',
328 ],
329 }],
330 ['warmup_script!=""', {
331 'inputs': [
332 '<(warmup_script)',
333 ],
334 }],
335 ['want_separate_host_toolset==1', {
336 'target_conditions': [
337 ['_toolset=="host"', {
338 'outputs': [
339 '<(PRODUCT_DIR)/snapshot_blob_host.bin',
340 ],
341 'action': [
342 '<(mksnapshot_exec)',
343 '<@(mksnapshot_flags)',
344 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob_host.bin',
345 '<(embed_script)',
346 '<(warmup_script)',
347 ],
348 }, {
349 'outputs': [
350 '<(PRODUCT_DIR)/snapshot_blob.bin',
351 ],
352 'action': [
353 '<(mksnapshot_exec)',
354 '<@(mksnapshot_flags)',
355 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob.bin',
356 '<(embed_script)',
357 '<(warmup_script)',
358 ],
359 }],
360 ],
361 }, {
362 'outputs': [
363 '<(PRODUCT_DIR)/snapshot_blob.bin',
364 ],
365 'action': [
366 '<(mksnapshot_exec)',
367 '<@(mksnapshot_flags)',
368 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob.bin',
369 '<(embed_script)',
370 '<(warmup_script)',
371 ],
372 }],
373 ],
374 },
375 ],
376 }],
377 ],
378 },
379 {
380 'target_name': 'v8_base',
381 'type': 'static_library',
382 'dependencies': [
383 'v8_libbase',
384 ],
385 'variables': {
386 'optimize': 'max',
387 },
388 'include_dirs+': [
389 '..',
390 # To be able to find base/trace_event/common/trace_event_common.h
391 '../..',
392 ],
393 'sources': [ ### gcmole(all) ###
394 '../include/v8-debug.h',
395 '../include/v8-experimental.h',
396 '../include/v8-platform.h',
397 '../include/v8-profiler.h',
398 '../include/v8-testing.h',
399 '../include/v8-util.h',
400 '../include/v8-version.h',
401 '../include/v8.h',
402 '../include/v8config.h',
403 'accessors.cc',
404 'accessors.h',
405 'address-map.cc',
406 'address-map.h',
407 'allocation.cc',
408 'allocation.h',
409 'allocation-site-scopes.cc',
410 'allocation-site-scopes.h',
411 'api-experimental.cc',
412 'api-experimental.h',
413 'api.cc',
414 'api.h',
415 'api-arguments.cc',
416 'api-arguments.h',
417 'api-natives.cc',
418 'api-natives.h',
419 'arguments.cc',
420 'arguments.h',
421 'assembler.cc',
422 'assembler.h',
423 'assert-scope.h',
424 'assert-scope.cc',
425 'ast/ast-expression-rewriter.cc',
426 'ast/ast-expression-rewriter.h',
427 'ast/ast-expression-visitor.cc',
428 'ast/ast-expression-visitor.h',
429 'ast/ast-literal-reindexer.cc',
430 'ast/ast-literal-reindexer.h',
431 'ast/ast-numbering.cc',
432 'ast/ast-numbering.h',
433 'ast/ast-type-bounds.h',
434 'ast/ast-value-factory.cc',
435 'ast/ast-value-factory.h',
436 'ast/ast.cc',
437 'ast/ast.h',
438 'ast/modules.cc',
439 'ast/modules.h',
440 'ast/prettyprinter.cc',
441 'ast/prettyprinter.h',
442 'ast/scopeinfo.cc',
443 'ast/scopeinfo.h',
444 'ast/scopes.cc',
445 'ast/scopes.h',
446 'ast/variables.cc',
447 'ast/variables.h',
448 'background-parsing-task.cc',
449 'background-parsing-task.h',
450 'bailout-reason.cc',
451 'bailout-reason.h',
452 'basic-block-profiler.cc',
453 'basic-block-profiler.h',
454 'bignum-dtoa.cc',
455 'bignum-dtoa.h',
456 'bignum.cc',
457 'bignum.h',
458 'bit-vector.cc',
459 'bit-vector.h',
460 'bootstrapper.cc',
461 'bootstrapper.h',
462 'builtins.cc',
463 'builtins.h',
464 'cached-powers.cc',
465 'cached-powers.h',
466 'cancelable-task.cc',
467 'cancelable-task.h',
468 'char-predicates.cc',
469 'char-predicates-inl.h',
470 'char-predicates.h',
471 'checks.h',
472 'code-factory.cc',
473 'code-factory.h',
474 'code-stub-assembler.cc',
475 'code-stub-assembler.h',
476 'code-stubs.cc',
477 'code-stubs.h',
478 'code-stubs-hydrogen.cc',
479 'codegen.cc',
480 'codegen.h',
481 'collector.h',
482 'compilation-cache.cc',
483 'compilation-cache.h',
484 'compilation-dependencies.cc',
485 'compilation-dependencies.h',
486 'compilation-statistics.cc',
487 'compilation-statistics.h',
488 'compiler/access-builder.cc',
489 'compiler/access-builder.h',
490 'compiler/access-info.cc',
491 'compiler/access-info.h',
492 'compiler/all-nodes.cc',
493 'compiler/all-nodes.h',
494 'compiler/ast-graph-builder.cc',
495 'compiler/ast-graph-builder.h',
496 'compiler/ast-loop-assignment-analyzer.cc',
497 'compiler/ast-loop-assignment-analyzer.h',
498 'compiler/basic-block-instrumentor.cc',
499 'compiler/basic-block-instrumentor.h',
500 'compiler/branch-elimination.cc',
501 'compiler/branch-elimination.h',
502 'compiler/bytecode-branch-analysis.cc',
503 'compiler/bytecode-branch-analysis.h',
504 'compiler/bytecode-graph-builder.cc',
505 'compiler/bytecode-graph-builder.h',
506 'compiler/c-linkage.cc',
507 'compiler/coalesced-live-ranges.cc',
508 'compiler/coalesced-live-ranges.h',
509 'compiler/code-generator-impl.h',
510 'compiler/code-generator.cc',
511 'compiler/code-generator.h',
512 'compiler/code-assembler.cc',
513 'compiler/code-assembler.h',
514 'compiler/common-node-cache.cc',
515 'compiler/common-node-cache.h',
516 'compiler/common-operator-reducer.cc',
517 'compiler/common-operator-reducer.h',
518 'compiler/common-operator.cc',
519 'compiler/common-operator.h',
520 'compiler/control-builders.cc',
521 'compiler/control-builders.h',
522 'compiler/control-equivalence.cc',
523 'compiler/control-equivalence.h',
524 'compiler/control-flow-optimizer.cc',
525 'compiler/control-flow-optimizer.h',
526 'compiler/dead-code-elimination.cc',
527 'compiler/dead-code-elimination.h',
528 'compiler/diamond.h',
529 'compiler/effect-control-linearizer.cc',
530 'compiler/effect-control-linearizer.h',
531 'compiler/escape-analysis.cc',
532 'compiler/escape-analysis.h',
533 "compiler/escape-analysis-reducer.cc",
534 "compiler/escape-analysis-reducer.h",
535 'compiler/frame.cc',
536 'compiler/frame.h',
537 'compiler/frame-elider.cc',
538 'compiler/frame-elider.h',
539 "compiler/frame-states.cc",
540 "compiler/frame-states.h",
541 'compiler/gap-resolver.cc',
542 'compiler/gap-resolver.h',
543 'compiler/graph-reducer.cc',
544 'compiler/graph-reducer.h',
545 'compiler/graph-replay.cc',
546 'compiler/graph-replay.h',
547 'compiler/graph-trimmer.cc',
548 'compiler/graph-trimmer.h',
549 'compiler/graph-visualizer.cc',
550 'compiler/graph-visualizer.h',
551 'compiler/graph.cc',
552 'compiler/graph.h',
553 'compiler/greedy-allocator.cc',
554 'compiler/greedy-allocator.h',
555 'compiler/instruction-codes.h',
556 'compiler/instruction-selector-impl.h',
557 'compiler/instruction-selector.cc',
558 'compiler/instruction-selector.h',
559 'compiler/instruction-scheduler.cc',
560 'compiler/instruction-scheduler.h',
561 'compiler/instruction.cc',
562 'compiler/instruction.h',
563 'compiler/int64-lowering.cc',
564 'compiler/int64-lowering.h',
565 'compiler/js-builtin-reducer.cc',
566 'compiler/js-builtin-reducer.h',
567 'compiler/js-call-reducer.cc',
568 'compiler/js-call-reducer.h',
569 'compiler/js-context-specialization.cc',
570 'compiler/js-context-specialization.h',
571 'compiler/js-create-lowering.cc',
572 'compiler/js-create-lowering.h',
573 'compiler/js-frame-specialization.cc',
574 'compiler/js-frame-specialization.h',
575 'compiler/js-generic-lowering.cc',
576 'compiler/js-generic-lowering.h',
577 'compiler/js-global-object-specialization.cc',
578 'compiler/js-global-object-specialization.h',
579 'compiler/js-graph.cc',
580 'compiler/js-graph.h',
581 'compiler/js-inlining.cc',
582 'compiler/js-inlining.h',
583 'compiler/js-inlining-heuristic.cc',
584 'compiler/js-inlining-heuristic.h',
585 'compiler/js-intrinsic-lowering.cc',
586 'compiler/js-intrinsic-lowering.h',
587 'compiler/js-native-context-specialization.cc',
588 'compiler/js-native-context-specialization.h',
589 'compiler/js-operator.cc',
590 'compiler/js-operator.h',
591 'compiler/js-typed-lowering.cc',
592 'compiler/js-typed-lowering.h',
593 'compiler/jump-threading.cc',
594 'compiler/jump-threading.h',
595 'compiler/linkage.cc',
596 'compiler/linkage.h',
597 'compiler/liveness-analyzer.cc',
598 'compiler/liveness-analyzer.h',
599 'compiler/live-range-separator.cc',
600 'compiler/live-range-separator.h',
601 'compiler/load-elimination.cc',
602 'compiler/load-elimination.h',
603 'compiler/loop-analysis.cc',
604 'compiler/loop-analysis.h',
605 'compiler/loop-peeling.cc',
606 'compiler/loop-peeling.h',
607 'compiler/machine-operator-reducer.cc',
608 'compiler/machine-operator-reducer.h',
609 'compiler/machine-operator.cc',
610 'compiler/machine-operator.h',
611 'compiler/memory-optimizer.cc',
612 'compiler/memory-optimizer.h',
613 'compiler/move-optimizer.cc',
614 'compiler/move-optimizer.h',
615 'compiler/node-aux-data.h',
616 'compiler/node-cache.cc',
617 'compiler/node-cache.h',
618 'compiler/node-marker.cc',
619 'compiler/node-marker.h',
620 'compiler/node-matchers.cc',
621 'compiler/node-matchers.h',
622 'compiler/node-properties.cc',
623 'compiler/node-properties.h',
624 'compiler/node.cc',
625 'compiler/node.h',
626 'compiler/opcodes.cc',
627 'compiler/opcodes.h',
628 'compiler/operator-properties.cc',
629 'compiler/operator-properties.h',
630 'compiler/operator.cc',
631 'compiler/operator.h',
632 'compiler/osr.cc',
633 'compiler/osr.h',
634 'compiler/pipeline.cc',
635 'compiler/pipeline.h',
636 'compiler/pipeline-statistics.cc',
637 'compiler/pipeline-statistics.h',
638 'compiler/raw-machine-assembler.cc',
639 'compiler/raw-machine-assembler.h',
640 'compiler/register-allocator.cc',
641 'compiler/register-allocator.h',
642 'compiler/register-allocator-verifier.cc',
643 'compiler/register-allocator-verifier.h',
644 'compiler/representation-change.cc',
645 'compiler/representation-change.h',
646 'compiler/schedule.cc',
647 'compiler/schedule.h',
648 'compiler/scheduler.cc',
649 'compiler/scheduler.h',
650 'compiler/select-lowering.cc',
651 'compiler/select-lowering.h',
652 'compiler/simplified-lowering.cc',
653 'compiler/simplified-lowering.h',
654 'compiler/simplified-operator-reducer.cc',
655 'compiler/simplified-operator-reducer.h',
656 'compiler/simplified-operator.cc',
657 'compiler/simplified-operator.h',
658 'compiler/source-position.cc',
659 'compiler/source-position.h',
660 'compiler/state-values-utils.cc',
661 'compiler/state-values-utils.h',
662 'compiler/tail-call-optimization.cc',
663 'compiler/tail-call-optimization.h',
664 'compiler/type-hint-analyzer.cc',
665 'compiler/type-hint-analyzer.h',
666 'compiler/type-hints.cc',
667 'compiler/type-hints.h',
668 'compiler/typer.cc',
669 'compiler/typer.h',
670 'compiler/value-numbering-reducer.cc',
671 'compiler/value-numbering-reducer.h',
672 'compiler/verifier.cc',
673 'compiler/verifier.h',
674 'compiler/wasm-compiler.cc',
675 'compiler/wasm-compiler.h',
676 'compiler/wasm-linkage.cc',
677 'compiler/zone-pool.cc',
678 'compiler/zone-pool.h',
679 'compiler.cc',
680 'compiler.h',
681 'context-measure.cc',
682 'context-measure.h',
683 'contexts-inl.h',
684 'contexts.cc',
685 'contexts.h',
686 'conversions-inl.h',
687 'conversions.cc',
688 'conversions.h',
689 'counters-inl.h',
690 'counters.cc',
691 'counters.h',
692 'crankshaft/compilation-phase.cc',
693 'crankshaft/compilation-phase.h',
694 'crankshaft/hydrogen-alias-analysis.h',
695 'crankshaft/hydrogen-bce.cc',
696 'crankshaft/hydrogen-bce.h',
697 'crankshaft/hydrogen-canonicalize.cc',
698 'crankshaft/hydrogen-canonicalize.h',
699 'crankshaft/hydrogen-check-elimination.cc',
700 'crankshaft/hydrogen-check-elimination.h',
701 'crankshaft/hydrogen-dce.cc',
702 'crankshaft/hydrogen-dce.h',
703 'crankshaft/hydrogen-dehoist.cc',
704 'crankshaft/hydrogen-dehoist.h',
705 'crankshaft/hydrogen-environment-liveness.cc',
706 'crankshaft/hydrogen-environment-liveness.h',
707 'crankshaft/hydrogen-escape-analysis.cc',
708 'crankshaft/hydrogen-escape-analysis.h',
709 'crankshaft/hydrogen-flow-engine.h',
710 'crankshaft/hydrogen-gvn.cc',
711 'crankshaft/hydrogen-gvn.h',
712 'crankshaft/hydrogen-infer-representation.cc',
713 'crankshaft/hydrogen-infer-representation.h',
714 'crankshaft/hydrogen-infer-types.cc',
715 'crankshaft/hydrogen-infer-types.h',
716 'crankshaft/hydrogen-instructions.cc',
717 'crankshaft/hydrogen-instructions.h',
718 'crankshaft/hydrogen-load-elimination.cc',
719 'crankshaft/hydrogen-load-elimination.h',
720 'crankshaft/hydrogen-mark-deoptimize.cc',
721 'crankshaft/hydrogen-mark-deoptimize.h',
722 'crankshaft/hydrogen-mark-unreachable.cc',
723 'crankshaft/hydrogen-mark-unreachable.h',
724 'crankshaft/hydrogen-osr.cc',
725 'crankshaft/hydrogen-osr.h',
726 'crankshaft/hydrogen-range-analysis.cc',
727 'crankshaft/hydrogen-range-analysis.h',
728 'crankshaft/hydrogen-redundant-phi.cc',
729 'crankshaft/hydrogen-redundant-phi.h',
730 'crankshaft/hydrogen-removable-simulates.cc',
731 'crankshaft/hydrogen-removable-simulates.h',
732 'crankshaft/hydrogen-representation-changes.cc',
733 'crankshaft/hydrogen-representation-changes.h',
734 'crankshaft/hydrogen-sce.cc',
735 'crankshaft/hydrogen-sce.h',
736 'crankshaft/hydrogen-store-elimination.cc',
737 'crankshaft/hydrogen-store-elimination.h',
738 'crankshaft/hydrogen-types.cc',
739 'crankshaft/hydrogen-types.h',
740 'crankshaft/hydrogen-uint32-analysis.cc',
741 'crankshaft/hydrogen-uint32-analysis.h',
742 'crankshaft/hydrogen.cc',
743 'crankshaft/hydrogen.h',
744 'crankshaft/lithium-allocator-inl.h',
745 'crankshaft/lithium-allocator.cc',
746 'crankshaft/lithium-allocator.h',
747 'crankshaft/lithium-codegen.cc',
748 'crankshaft/lithium-codegen.h',
749 'crankshaft/lithium.cc',
750 'crankshaft/lithium.h',
751 'crankshaft/lithium-inl.h',
752 'crankshaft/typing.cc',
753 'crankshaft/typing.h',
754 'crankshaft/unique.h',
755 'date.cc',
756 'date.h',
757 'dateparser-inl.h',
758 'dateparser.cc',
759 'dateparser.h',
760 'debug/debug-evaluate.cc',
761 'debug/debug-evaluate.h',
762 'debug/debug-frames.cc',
763 'debug/debug-frames.h',
764 'debug/debug-scopes.cc',
765 'debug/debug-scopes.h',
766 'debug/debug.cc',
767 'debug/debug.h',
768 'debug/liveedit.cc',
769 'debug/liveedit.h',
770 'deoptimizer.cc',
771 'deoptimizer.h',
772 'disasm.h',
773 'disassembler.cc',
774 'disassembler.h',
775 'diy-fp.cc',
776 'diy-fp.h',
777 'double.h',
778 'dtoa.cc',
779 'dtoa.h',
780 'effects.h',
781 'elements-kind.cc',
782 'elements-kind.h',
783 'elements.cc',
784 'elements.h',
785 'execution.cc',
786 'execution.h',
787 'extensions/externalize-string-extension.cc',
788 'extensions/externalize-string-extension.h',
789 'extensions/free-buffer-extension.cc',
790 'extensions/free-buffer-extension.h',
791 'extensions/gc-extension.cc',
792 'extensions/gc-extension.h',
793 'extensions/ignition-statistics-extension.cc',
794 'extensions/ignition-statistics-extension.h',
795 'extensions/statistics-extension.cc',
796 'extensions/statistics-extension.h',
797 'extensions/trigger-failure-extension.cc',
798 'extensions/trigger-failure-extension.h',
799 'external-reference-table.cc',
800 'external-reference-table.h',
801 'factory.cc',
802 'factory.h',
803 'fast-accessor-assembler.cc',
804 'fast-accessor-assembler.h',
805 'fast-dtoa.cc',
806 'fast-dtoa.h',
807 'field-index.h',
808 'field-index-inl.h',
809 'field-type.cc',
810 'field-type.h',
811 'fixed-dtoa.cc',
812 'fixed-dtoa.h',
813 'flag-definitions.h',
814 'flags.cc',
815 'flags.h',
816 'frames-inl.h',
817 'frames.cc',
818 'frames.h',
819 'full-codegen/full-codegen.cc',
820 'full-codegen/full-codegen.h',
821 'futex-emulation.cc',
822 'futex-emulation.h',
823 'gdb-jit.cc',
824 'gdb-jit.h',
825 'global-handles.cc',
826 'global-handles.h',
827 'globals.h',
828 'handles-inl.h',
829 'handles.cc',
830 'handles.h',
831 'hashmap.h',
832 'heap-symbols.h',
833 'heap/array-buffer-tracker.cc',
834 'heap/array-buffer-tracker.h',
835 'heap/memory-reducer.cc',
836 'heap/memory-reducer.h',
837 'heap/gc-idle-time-handler.cc',
838 'heap/gc-idle-time-handler.h',
839 'heap/gc-tracer.cc',
840 'heap/gc-tracer.h',
841 'heap/heap-inl.h',
842 'heap/heap.cc',
843 'heap/heap.h',
844 'heap/incremental-marking-inl.h',
845 'heap/incremental-marking-job.cc',
846 'heap/incremental-marking-job.h',
847 'heap/incremental-marking.cc',
848 'heap/incremental-marking.h',
849 'heap/mark-compact-inl.h',
850 'heap/mark-compact.cc',
851 'heap/mark-compact.h',
852 'heap/object-stats.cc',
853 'heap/object-stats.h',
854 'heap/objects-visiting-inl.h',
855 'heap/objects-visiting.cc',
856 'heap/objects-visiting.h',
857 'heap/page-parallel-job.h',
858 'heap/remembered-set.cc',
859 'heap/remembered-set.h',
860 'heap/scavenge-job.h',
861 'heap/scavenge-job.cc',
862 'heap/scavenger-inl.h',
863 'heap/scavenger.cc',
864 'heap/scavenger.h',
865 'heap/slot-set.h',
866 'heap/spaces-inl.h',
867 'heap/spaces.cc',
868 'heap/spaces.h',
869 'heap/store-buffer.cc',
870 'heap/store-buffer.h',
871 'i18n.cc',
872 'i18n.h',
873 'icu_util.cc',
874 'icu_util.h',
875 'ic/access-compiler.cc',
876 'ic/access-compiler.h',
877 'ic/call-optimization.cc',
878 'ic/call-optimization.h',
879 'ic/handler-compiler.cc',
880 'ic/handler-compiler.h',
881 'ic/ic-inl.h',
882 'ic/ic-state.cc',
883 'ic/ic-state.h',
884 'ic/ic.cc',
885 'ic/ic.h',
886 'ic/ic-compiler.cc',
887 'ic/ic-compiler.h',
888 'identity-map.cc',
889 'identity-map.h',
890 'interface-descriptors.cc',
891 'interface-descriptors.h',
892 'interpreter/bytecodes.cc',
893 'interpreter/bytecodes.h',
894 'interpreter/bytecode-array-builder.cc',
895 'interpreter/bytecode-array-builder.h',
896 'interpreter/bytecode-array-iterator.cc',
897 'interpreter/bytecode-array-iterator.h',
898 'interpreter/bytecode-array-writer.cc',
899 'interpreter/bytecode-array-writer.h',
900 'interpreter/bytecode-peephole-optimizer.cc',
901 'interpreter/bytecode-peephole-optimizer.h',
902 'interpreter/bytecode-pipeline.cc',
903 'interpreter/bytecode-pipeline.h',
904 'interpreter/bytecode-register-allocator.cc',
905 'interpreter/bytecode-register-allocator.h',
906 'interpreter/bytecode-generator.cc',
907 'interpreter/bytecode-generator.h',
908 'interpreter/bytecode-traits.h',
909 'interpreter/constant-array-builder.cc',
910 'interpreter/constant-array-builder.h',
911 'interpreter/control-flow-builders.cc',
912 'interpreter/control-flow-builders.h',
913 'interpreter/handler-table-builder.cc',
914 'interpreter/handler-table-builder.h',
915 'interpreter/interpreter.cc',
916 'interpreter/interpreter.h',
917 'interpreter/interpreter-assembler.cc',
918 'interpreter/interpreter-assembler.h',
919 'interpreter/interpreter-intrinsics.cc',
920 'interpreter/interpreter-intrinsics.h',
921 'interpreter/source-position-table.cc',
922 'interpreter/source-position-table.h',
923 'isolate-inl.h',
924 'isolate.cc',
925 'isolate.h',
926 'json-parser.h',
927 'json-stringifier.h',
928 'keys.h',
929 'keys.cc',
930 'layout-descriptor-inl.h',
931 'layout-descriptor.cc',
932 'layout-descriptor.h',
933 'list-inl.h',
934 'list.h',
935 'locked-queue-inl.h',
936 'locked-queue.h',
937 'log-inl.h',
938 'log-utils.cc',
939 'log-utils.h',
940 'log.cc',
941 'log.h',
942 'lookup.cc',
943 'lookup.h',
944 'macro-assembler.h',
945 'machine-type.cc',
946 'machine-type.h',
947 'messages.cc',
948 'messages.h',
949 'msan.h',
950 'objects-body-descriptors-inl.h',
951 'objects-body-descriptors.h',
952 'objects-debug.cc',
953 'objects-inl.h',
954 'objects-printer.cc',
955 'objects.cc',
956 'objects.h',
957 'optimizing-compile-dispatcher.cc',
958 'optimizing-compile-dispatcher.h',
959 'ostreams.cc',
960 'ostreams.h',
961 'parsing/expression-classifier.h',
962 'parsing/func-name-inferrer.cc',
963 'parsing/func-name-inferrer.h',
964 'parsing/parameter-initializer-rewriter.cc',
965 'parsing/parameter-initializer-rewriter.h',
966 'parsing/parser-base.h',
967 'parsing/parser.cc',
968 'parsing/parser.h',
969 'parsing/pattern-rewriter.cc',
970 'parsing/preparse-data-format.h',
971 'parsing/preparse-data.cc',
972 'parsing/preparse-data.h',
973 'parsing/preparser.cc',
974 'parsing/preparser.h',
975 'parsing/rewriter.cc',
976 'parsing/rewriter.h',
977 'parsing/scanner-character-streams.cc',
978 'parsing/scanner-character-streams.h',
979 'parsing/scanner.cc',
980 'parsing/scanner.h',
981 'parsing/token.cc',
982 'parsing/token.h',
983 'pending-compilation-error-handler.cc',
984 'pending-compilation-error-handler.h',
985 'perf-jit.cc',
986 'perf-jit.h',
987 'profiler/allocation-tracker.cc',
988 'profiler/allocation-tracker.h',
989 'profiler/circular-queue-inl.h',
990 'profiler/circular-queue.h',
991 'profiler/cpu-profiler-inl.h',
992 'profiler/cpu-profiler.cc',
993 'profiler/cpu-profiler.h',
994 'profiler/heap-profiler.cc',
995 'profiler/heap-profiler.h',
996 'profiler/heap-snapshot-generator-inl.h',
997 'profiler/heap-snapshot-generator.cc',
998 'profiler/heap-snapshot-generator.h',
999 'profiler/profile-generator-inl.h',
1000 'profiler/profile-generator.cc',
1001 'profiler/profile-generator.h',
1002 'profiler/sampler.cc',
1003 'profiler/sampler.h',
1004 'profiler/sampling-heap-profiler.cc',
1005 'profiler/sampling-heap-profiler.h',
1006 'profiler/strings-storage.cc',
1007 'profiler/strings-storage.h',
1008 'profiler/tick-sample.cc',
1009 'profiler/tick-sample.h',
1010 'profiler/unbound-queue-inl.h',
1011 'profiler/unbound-queue.h',
1012 'property-descriptor.cc',
1013 'property-descriptor.h',
1014 'property-details.h',
1015 'property.cc',
1016 'property.h',
1017 'prototype.h',
1018 'regexp/bytecodes-irregexp.h',
1019 'regexp/interpreter-irregexp.cc',
1020 'regexp/interpreter-irregexp.h',
1021 'regexp/jsregexp-inl.h',
1022 'regexp/jsregexp.cc',
1023 'regexp/jsregexp.h',
1024 'regexp/regexp-ast.cc',
1025 'regexp/regexp-ast.h',
1026 'regexp/regexp-macro-assembler-irregexp-inl.h',
1027 'regexp/regexp-macro-assembler-irregexp.cc',
1028 'regexp/regexp-macro-assembler-irregexp.h',
1029 'regexp/regexp-macro-assembler-tracer.cc',
1030 'regexp/regexp-macro-assembler-tracer.h',
1031 'regexp/regexp-macro-assembler.cc',
1032 'regexp/regexp-macro-assembler.h',
1033 'regexp/regexp-parser.cc',
1034 'regexp/regexp-parser.h',
1035 'regexp/regexp-stack.cc',
1036 'regexp/regexp-stack.h',
1037 'register-configuration.cc',
1038 'register-configuration.h',
1039 'runtime-profiler.cc',
1040 'runtime-profiler.h',
1041 'runtime/runtime-array.cc',
1042 'runtime/runtime-atomics.cc',
1043 'runtime/runtime-classes.cc',
1044 'runtime/runtime-collections.cc',
1045 'runtime/runtime-compiler.cc',
1046 'runtime/runtime-date.cc',
1047 'runtime/runtime-debug.cc',
1048 'runtime/runtime-forin.cc',
1049 'runtime/runtime-function.cc',
1050 'runtime/runtime-futex.cc',
1051 'runtime/runtime-generator.cc',
1052 'runtime/runtime-i18n.cc',
1053 'runtime/runtime-internal.cc',
1054 'runtime/runtime-interpreter.cc',
1055 'runtime/runtime-json.cc',
1056 'runtime/runtime-literals.cc',
1057 'runtime/runtime-liveedit.cc',
1058 'runtime/runtime-maths.cc',
1059 'runtime/runtime-numbers.cc',
1060 'runtime/runtime-object.cc',
1061 'runtime/runtime-operators.cc',
1062 'runtime/runtime-proxy.cc',
1063 'runtime/runtime-regexp.cc',
1064 'runtime/runtime-scopes.cc',
1065 'runtime/runtime-simd.cc',
1066 'runtime/runtime-strings.cc',
1067 'runtime/runtime-symbol.cc',
1068 'runtime/runtime-test.cc',
1069 'runtime/runtime-typedarray.cc',
1070 'runtime/runtime-uri.cc',
1071 'runtime/runtime-utils.h',
1072 'runtime/runtime.cc',
1073 'runtime/runtime.h',
1074 'safepoint-table.cc',
1075 'safepoint-table.h',
1076 'signature.h',
1077 'simulator.h',
1078 'small-pointer-list.h',
1079 'snapshot/code-serializer.cc',
1080 'snapshot/code-serializer.h',
1081 'snapshot/deserializer.cc',
1082 'snapshot/deserializer.h',
1083 'snapshot/natives.h',
1084 'snapshot/natives-common.cc',
1085 'snapshot/partial-serializer.cc',
1086 'snapshot/partial-serializer.h',
1087 'snapshot/serializer.cc',
1088 'snapshot/serializer.h',
1089 'snapshot/serializer-common.cc',
1090 'snapshot/serializer-common.h',
1091 'snapshot/snapshot.h',
1092 'snapshot/snapshot-common.cc',
1093 'snapshot/snapshot-source-sink.cc',
1094 'snapshot/snapshot-source-sink.h',
1095 'snapshot/startup-serializer.cc',
1096 'snapshot/startup-serializer.h',
1097 'source-position.h',
1098 'splay-tree.h',
1099 'splay-tree-inl.h',
1100 'startup-data-util.cc',
1101 'startup-data-util.h',
1102 'string-builder.cc',
1103 'string-builder.h',
1104 'string-search.h',
1105 'string-stream.cc',
1106 'string-stream.h',
1107 'strtod.cc',
1108 'strtod.h',
1109 'ic/stub-cache.cc',
1110 'ic/stub-cache.h',
1111 'tracing/trace-event.cc',
1112 'tracing/trace-event.h',
1113 'transitions-inl.h',
1114 'transitions.cc',
1115 'transitions.h',
1116 'type-cache.cc',
1117 'type-cache.h',
1118 'type-feedback-vector-inl.h',
1119 'type-feedback-vector.cc',
1120 'type-feedback-vector.h',
1121 'type-info.cc',
1122 'type-info.h',
1123 'types.cc',
1124 'types.h',
1125 'typing-asm.cc',
1126 'typing-asm.h',
1127 'unicode-inl.h',
1128 'unicode.cc',
1129 'unicode.h',
1130 'unicode-cache-inl.h',
1131 'unicode-cache.h',
1132 'unicode-decoder.cc',
1133 'unicode-decoder.h',
1134 'uri.cc',
1135 'uri.h',
1136 'utils-inl.h',
1137 'utils.cc',
1138 'utils.h',
1139 'v8.cc',
1140 'v8.h',
1141 'v8memory.h',
1142 'v8threads.cc',
1143 'v8threads.h',
1144 'vector.h',
1145 'version.cc',
1146 'version.h',
1147 'vm-state-inl.h',
1148 'vm-state.h',
1149 'wasm/asm-wasm-builder.cc',
1150 'wasm/asm-wasm-builder.h',
1151 'wasm/ast-decoder.cc',
1152 'wasm/ast-decoder.h',
1153 'wasm/decoder.h',
1154 'wasm/encoder.cc',
1155 'wasm/encoder.h',
1156 'wasm/leb-helper.h',
1157 'wasm/module-decoder.cc',
1158 'wasm/module-decoder.h',
1159 'wasm/switch-logic.h',
1160 'wasm/switch-logic.cc',
1161 'wasm/wasm-external-refs.cc',
1162 'wasm/wasm-external-refs.h',
1163 'wasm/wasm-function-name-table.cc',
1164 'wasm/wasm-function-name-table.h',
1165 'wasm/wasm-js.cc',
1166 'wasm/wasm-js.h',
1167 'wasm/wasm-macro-gen.h',
1168 'wasm/wasm-module.cc',
1169 'wasm/wasm-module.h',
1170 'wasm/wasm-opcodes.cc',
1171 'wasm/wasm-opcodes.h',
1172 'wasm/wasm-result.cc',
1173 'wasm/wasm-result.h',
1174 'zone.cc',
1175 'zone.h',
1176 'zone-allocator.h',
1177 'zone-containers.h',
1178 'third_party/fdlibm/fdlibm.cc',
1179 'third_party/fdlibm/fdlibm.h',
1180 ],
1181 'conditions': [
1182 ['want_separate_host_toolset==1', {
1183 'toolsets': ['host', 'target'],
1184 }, {
1185 'toolsets': ['target'],
1186 }],
1187 ['v8_target_arch=="arm"', {
1188 'sources': [ ### gcmole(arch:arm) ###
1189 'arm/assembler-arm-inl.h',
1190 'arm/assembler-arm.cc',
1191 'arm/assembler-arm.h',
1192 'arm/builtins-arm.cc',
1193 'arm/code-stubs-arm.cc',
1194 'arm/code-stubs-arm.h',
1195 'arm/codegen-arm.cc',
1196 'arm/codegen-arm.h',
1197 'arm/constants-arm.h',
1198 'arm/constants-arm.cc',
1199 'arm/cpu-arm.cc',
1200 'arm/deoptimizer-arm.cc',
1201 'arm/disasm-arm.cc',
1202 'arm/frames-arm.cc',
1203 'arm/frames-arm.h',
1204 'arm/interface-descriptors-arm.cc',
1205 'arm/interface-descriptors-arm.h',
1206 'arm/macro-assembler-arm.cc',
1207 'arm/macro-assembler-arm.h',
1208 'arm/simulator-arm.cc',
1209 'arm/simulator-arm.h',
1210 'compiler/arm/code-generator-arm.cc',
1211 'compiler/arm/instruction-codes-arm.h',
1212 'compiler/arm/instruction-scheduler-arm.cc',
1213 'compiler/arm/instruction-selector-arm.cc',
1214 'crankshaft/arm/lithium-arm.cc',
1215 'crankshaft/arm/lithium-arm.h',
1216 'crankshaft/arm/lithium-codegen-arm.cc',
1217 'crankshaft/arm/lithium-codegen-arm.h',
1218 'crankshaft/arm/lithium-gap-resolver-arm.cc',
1219 'crankshaft/arm/lithium-gap-resolver-arm.h',
1220 'debug/arm/debug-arm.cc',
1221 'full-codegen/arm/full-codegen-arm.cc',
1222 'ic/arm/access-compiler-arm.cc',
1223 'ic/arm/handler-compiler-arm.cc',
1224 'ic/arm/ic-arm.cc',
1225 'ic/arm/ic-compiler-arm.cc',
1226 'ic/arm/stub-cache-arm.cc',
1227 'regexp/arm/regexp-macro-assembler-arm.cc',
1228 'regexp/arm/regexp-macro-assembler-arm.h',
1229 ],
1230 }],
1231 ['v8_target_arch=="arm64"', {
1232 'sources': [ ### gcmole(arch:arm64) ###
1233 'arm64/assembler-arm64.cc',
1234 'arm64/assembler-arm64.h',
1235 'arm64/assembler-arm64-inl.h',
1236 'arm64/builtins-arm64.cc',
1237 'arm64/codegen-arm64.cc',
1238 'arm64/codegen-arm64.h',
1239 'arm64/code-stubs-arm64.cc',
1240 'arm64/code-stubs-arm64.h',
1241 'arm64/constants-arm64.h',
1242 'arm64/cpu-arm64.cc',
1243 'arm64/decoder-arm64.cc',
1244 'arm64/decoder-arm64.h',
1245 'arm64/decoder-arm64-inl.h',
1246 'arm64/deoptimizer-arm64.cc',
1247 'arm64/disasm-arm64.cc',
1248 'arm64/disasm-arm64.h',
1249 'arm64/frames-arm64.cc',
1250 'arm64/frames-arm64.h',
1251 'arm64/instructions-arm64.cc',
1252 'arm64/instructions-arm64.h',
1253 'arm64/instrument-arm64.cc',
1254 'arm64/instrument-arm64.h',
1255 'arm64/interface-descriptors-arm64.cc',
1256 'arm64/interface-descriptors-arm64.h',
1257 'arm64/macro-assembler-arm64.cc',
1258 'arm64/macro-assembler-arm64.h',
1259 'arm64/macro-assembler-arm64-inl.h',
1260 'arm64/simulator-arm64.cc',
1261 'arm64/simulator-arm64.h',
1262 'arm64/utils-arm64.cc',
1263 'arm64/utils-arm64.h',
1264 'compiler/arm64/code-generator-arm64.cc',
1265 'compiler/arm64/instruction-codes-arm64.h',
1266 'compiler/arm64/instruction-scheduler-arm64.cc',
1267 'compiler/arm64/instruction-selector-arm64.cc',
1268 'crankshaft/arm64/delayed-masm-arm64.cc',
1269 'crankshaft/arm64/delayed-masm-arm64.h',
1270 'crankshaft/arm64/delayed-masm-arm64-inl.h',
1271 'crankshaft/arm64/lithium-arm64.cc',
1272 'crankshaft/arm64/lithium-arm64.h',
1273 'crankshaft/arm64/lithium-codegen-arm64.cc',
1274 'crankshaft/arm64/lithium-codegen-arm64.h',
1275 'crankshaft/arm64/lithium-gap-resolver-arm64.cc',
1276 'crankshaft/arm64/lithium-gap-resolver-arm64.h',
1277 'debug/arm64/debug-arm64.cc',
1278 'full-codegen/arm64/full-codegen-arm64.cc',
1279 'ic/arm64/access-compiler-arm64.cc',
1280 'ic/arm64/handler-compiler-arm64.cc',
1281 'ic/arm64/ic-arm64.cc',
1282 'ic/arm64/ic-compiler-arm64.cc',
1283 'ic/arm64/stub-cache-arm64.cc',
1284 'regexp/arm64/regexp-macro-assembler-arm64.cc',
1285 'regexp/arm64/regexp-macro-assembler-arm64.h',
1286 ],
1287 }],
1288 ['v8_target_arch=="ia32"', {
1289 'sources': [ ### gcmole(arch:ia32) ###
1290 'ia32/assembler-ia32-inl.h',
1291 'ia32/assembler-ia32.cc',
1292 'ia32/assembler-ia32.h',
1293 'ia32/builtins-ia32.cc',
1294 'ia32/code-stubs-ia32.cc',
1295 'ia32/code-stubs-ia32.h',
1296 'ia32/codegen-ia32.cc',
1297 'ia32/codegen-ia32.h',
1298 'ia32/cpu-ia32.cc',
1299 'ia32/deoptimizer-ia32.cc',
1300 'ia32/disasm-ia32.cc',
1301 'ia32/frames-ia32.cc',
1302 'ia32/frames-ia32.h',
1303 'ia32/interface-descriptors-ia32.cc',
1304 'ia32/macro-assembler-ia32.cc',
1305 'ia32/macro-assembler-ia32.h',
1306 'compiler/ia32/code-generator-ia32.cc',
1307 'compiler/ia32/instruction-codes-ia32.h',
1308 'compiler/ia32/instruction-scheduler-ia32.cc',
1309 'compiler/ia32/instruction-selector-ia32.cc',
1310 'crankshaft/ia32/lithium-codegen-ia32.cc',
1311 'crankshaft/ia32/lithium-codegen-ia32.h',
1312 'crankshaft/ia32/lithium-gap-resolver-ia32.cc',
1313 'crankshaft/ia32/lithium-gap-resolver-ia32.h',
1314 'crankshaft/ia32/lithium-ia32.cc',
1315 'crankshaft/ia32/lithium-ia32.h',
1316 'debug/ia32/debug-ia32.cc',
1317 'full-codegen/ia32/full-codegen-ia32.cc',
1318 'ic/ia32/access-compiler-ia32.cc',
1319 'ic/ia32/handler-compiler-ia32.cc',
1320 'ic/ia32/ic-ia32.cc',
1321 'ic/ia32/ic-compiler-ia32.cc',
1322 'ic/ia32/stub-cache-ia32.cc',
1323 'regexp/ia32/regexp-macro-assembler-ia32.cc',
1324 'regexp/ia32/regexp-macro-assembler-ia32.h',
1325 ],
1326 }],
1327 ['v8_target_arch=="x87"', {
1328 'sources': [ ### gcmole(arch:x87) ###
1329 'x87/assembler-x87-inl.h',
1330 'x87/assembler-x87.cc',
1331 'x87/assembler-x87.h',
1332 'x87/builtins-x87.cc',
1333 'x87/code-stubs-x87.cc',
1334 'x87/code-stubs-x87.h',
1335 'x87/codegen-x87.cc',
1336 'x87/codegen-x87.h',
1337 'x87/cpu-x87.cc',
1338 'x87/deoptimizer-x87.cc',
1339 'x87/disasm-x87.cc',
1340 'x87/frames-x87.cc',
1341 'x87/frames-x87.h',
1342 'x87/interface-descriptors-x87.cc',
1343 'x87/macro-assembler-x87.cc',
1344 'x87/macro-assembler-x87.h',
1345 'compiler/x87/code-generator-x87.cc',
1346 'compiler/x87/instruction-codes-x87.h',
1347 'compiler/x87/instruction-scheduler-x87.cc',
1348 'compiler/x87/instruction-selector-x87.cc',
1349 'crankshaft/x87/lithium-codegen-x87.cc',
1350 'crankshaft/x87/lithium-codegen-x87.h',
1351 'crankshaft/x87/lithium-gap-resolver-x87.cc',
1352 'crankshaft/x87/lithium-gap-resolver-x87.h',
1353 'crankshaft/x87/lithium-x87.cc',
1354 'crankshaft/x87/lithium-x87.h',
1355 'debug/x87/debug-x87.cc',
1356 'full-codegen/x87/full-codegen-x87.cc',
1357 'ic/x87/access-compiler-x87.cc',
1358 'ic/x87/handler-compiler-x87.cc',
1359 'ic/x87/ic-x87.cc',
1360 'ic/x87/ic-compiler-x87.cc',
1361 'ic/x87/stub-cache-x87.cc',
1362 'regexp/x87/regexp-macro-assembler-x87.cc',
1363 'regexp/x87/regexp-macro-assembler-x87.h',
1364 ],
1365 }],
1366 ['v8_target_arch=="mips" or v8_target_arch=="mipsel"', {
1367 'sources': [ ### gcmole(arch:mipsel) ###
1368 'mips/assembler-mips.cc',
1369 'mips/assembler-mips.h',
1370 'mips/assembler-mips-inl.h',
1371 'mips/builtins-mips.cc',
1372 'mips/codegen-mips.cc',
1373 'mips/codegen-mips.h',
1374 'mips/code-stubs-mips.cc',
1375 'mips/code-stubs-mips.h',
1376 'mips/constants-mips.cc',
1377 'mips/constants-mips.h',
1378 'mips/cpu-mips.cc',
1379 'mips/deoptimizer-mips.cc',
1380 'mips/disasm-mips.cc',
1381 'mips/frames-mips.cc',
1382 'mips/frames-mips.h',
1383 'mips/interface-descriptors-mips.cc',
1384 'mips/macro-assembler-mips.cc',
1385 'mips/macro-assembler-mips.h',
1386 'mips/simulator-mips.cc',
1387 'mips/simulator-mips.h',
1388 'compiler/mips/code-generator-mips.cc',
1389 'compiler/mips/instruction-codes-mips.h',
1390 'compiler/mips/instruction-scheduler-mips.cc',
1391 'compiler/mips/instruction-selector-mips.cc',
1392 'crankshaft/mips/lithium-codegen-mips.cc',
1393 'crankshaft/mips/lithium-codegen-mips.h',
1394 'crankshaft/mips/lithium-gap-resolver-mips.cc',
1395 'crankshaft/mips/lithium-gap-resolver-mips.h',
1396 'crankshaft/mips/lithium-mips.cc',
1397 'crankshaft/mips/lithium-mips.h',
1398 'full-codegen/mips/full-codegen-mips.cc',
1399 'debug/mips/debug-mips.cc',
1400 'ic/mips/access-compiler-mips.cc',
1401 'ic/mips/handler-compiler-mips.cc',
1402 'ic/mips/ic-mips.cc',
1403 'ic/mips/ic-compiler-mips.cc',
1404 'ic/mips/stub-cache-mips.cc',
1405 'regexp/mips/regexp-macro-assembler-mips.cc',
1406 'regexp/mips/regexp-macro-assembler-mips.h',
1407 ],
1408 }],
1409 ['v8_target_arch=="mips64" or v8_target_arch=="mips64el"', {
1410 'sources': [ ### gcmole(arch:mips64el) ###
1411 'mips64/assembler-mips64.cc',
1412 'mips64/assembler-mips64.h',
1413 'mips64/assembler-mips64-inl.h',
1414 'mips64/builtins-mips64.cc',
1415 'mips64/codegen-mips64.cc',
1416 'mips64/codegen-mips64.h',
1417 'mips64/code-stubs-mips64.cc',
1418 'mips64/code-stubs-mips64.h',
1419 'mips64/constants-mips64.cc',
1420 'mips64/constants-mips64.h',
1421 'mips64/cpu-mips64.cc',
1422 'mips64/deoptimizer-mips64.cc',
1423 'mips64/disasm-mips64.cc',
1424 'mips64/frames-mips64.cc',
1425 'mips64/frames-mips64.h',
1426 'mips64/interface-descriptors-mips64.cc',
1427 'mips64/macro-assembler-mips64.cc',
1428 'mips64/macro-assembler-mips64.h',
1429 'mips64/simulator-mips64.cc',
1430 'mips64/simulator-mips64.h',
1431 'compiler/mips64/code-generator-mips64.cc',
1432 'compiler/mips64/instruction-codes-mips64.h',
1433 'compiler/mips64/instruction-scheduler-mips64.cc',
1434 'compiler/mips64/instruction-selector-mips64.cc',
1435 'crankshaft/mips64/lithium-codegen-mips64.cc',
1436 'crankshaft/mips64/lithium-codegen-mips64.h',
1437 'crankshaft/mips64/lithium-gap-resolver-mips64.cc',
1438 'crankshaft/mips64/lithium-gap-resolver-mips64.h',
1439 'crankshaft/mips64/lithium-mips64.cc',
1440 'crankshaft/mips64/lithium-mips64.h',
1441 'debug/mips64/debug-mips64.cc',
1442 'full-codegen/mips64/full-codegen-mips64.cc',
1443 'ic/mips64/access-compiler-mips64.cc',
1444 'ic/mips64/handler-compiler-mips64.cc',
1445 'ic/mips64/ic-mips64.cc',
1446 'ic/mips64/ic-compiler-mips64.cc',
1447 'ic/mips64/stub-cache-mips64.cc',
1448 'regexp/mips64/regexp-macro-assembler-mips64.cc',
1449 'regexp/mips64/regexp-macro-assembler-mips64.h',
1450 ],
1451 }],
1452 ['v8_target_arch=="x64" or v8_target_arch=="x32"', {
1453 'sources': [ ### gcmole(arch:x64) ###
1454 'crankshaft/x64/lithium-codegen-x64.cc',
1455 'crankshaft/x64/lithium-codegen-x64.h',
1456 'crankshaft/x64/lithium-gap-resolver-x64.cc',
1457 'crankshaft/x64/lithium-gap-resolver-x64.h',
1458 'crankshaft/x64/lithium-x64.cc',
1459 'crankshaft/x64/lithium-x64.h',
1460 'x64/assembler-x64-inl.h',
1461 'x64/assembler-x64.cc',
1462 'x64/assembler-x64.h',
1463 'x64/builtins-x64.cc',
1464 'x64/code-stubs-x64.cc',
1465 'x64/code-stubs-x64.h',
1466 'x64/codegen-x64.cc',
1467 'x64/codegen-x64.h',
1468 'x64/cpu-x64.cc',
1469 'x64/deoptimizer-x64.cc',
1470 'x64/disasm-x64.cc',
1471 'x64/frames-x64.cc',
1472 'x64/frames-x64.h',
1473 'x64/interface-descriptors-x64.cc',
1474 'x64/macro-assembler-x64.cc',
1475 'x64/macro-assembler-x64.h',
1476 'debug/x64/debug-x64.cc',
1477 'full-codegen/x64/full-codegen-x64.cc',
1478 'ic/x64/access-compiler-x64.cc',
1479 'ic/x64/handler-compiler-x64.cc',
1480 'ic/x64/ic-x64.cc',
1481 'ic/x64/ic-compiler-x64.cc',
1482 'ic/x64/stub-cache-x64.cc',
1483 'regexp/x64/regexp-macro-assembler-x64.cc',
1484 'regexp/x64/regexp-macro-assembler-x64.h',
1485 ],
1486 }],
1487 ['v8_target_arch=="x64"', {
1488 'sources': [
1489 'compiler/x64/code-generator-x64.cc',
1490 'compiler/x64/instruction-codes-x64.h',
1491 'compiler/x64/instruction-scheduler-x64.cc',
1492 'compiler/x64/instruction-selector-x64.cc',
1493 ],
1494 }],
1495 ['v8_target_arch=="ppc" or v8_target_arch=="ppc64"', {
1496 'sources': [ ### gcmole(arch:ppc) ###
1497 'compiler/ppc/code-generator-ppc.cc',
1498 'compiler/ppc/instruction-codes-ppc.h',
1499 'compiler/ppc/instruction-scheduler-ppc.cc',
1500 'compiler/ppc/instruction-selector-ppc.cc',
1501 'crankshaft/ppc/lithium-ppc.cc',
1502 'crankshaft/ppc/lithium-ppc.h',
1503 'crankshaft/ppc/lithium-codegen-ppc.cc',
1504 'crankshaft/ppc/lithium-codegen-ppc.h',
1505 'crankshaft/ppc/lithium-gap-resolver-ppc.cc',
1506 'crankshaft/ppc/lithium-gap-resolver-ppc.h',
1507 'debug/ppc/debug-ppc.cc',
1508 'full-codegen/ppc/full-codegen-ppc.cc',
1509 'ic/ppc/access-compiler-ppc.cc',
1510 'ic/ppc/handler-compiler-ppc.cc',
1511 'ic/ppc/ic-ppc.cc',
1512 'ic/ppc/ic-compiler-ppc.cc',
1513 'ic/ppc/stub-cache-ppc.cc',
1514 'ppc/assembler-ppc-inl.h',
1515 'ppc/assembler-ppc.cc',
1516 'ppc/assembler-ppc.h',
1517 'ppc/builtins-ppc.cc',
1518 'ppc/code-stubs-ppc.cc',
1519 'ppc/code-stubs-ppc.h',
1520 'ppc/codegen-ppc.cc',
1521 'ppc/codegen-ppc.h',
1522 'ppc/constants-ppc.h',
1523 'ppc/constants-ppc.cc',
1524 'ppc/cpu-ppc.cc',
1525 'ppc/deoptimizer-ppc.cc',
1526 'ppc/disasm-ppc.cc',
1527 'ppc/frames-ppc.cc',
1528 'ppc/frames-ppc.h',
1529 'ppc/interface-descriptors-ppc.cc',
1530 'ppc/macro-assembler-ppc.cc',
1531 'ppc/macro-assembler-ppc.h',
1532 'ppc/simulator-ppc.cc',
1533 'ppc/simulator-ppc.h',
1534 'regexp/ppc/regexp-macro-assembler-ppc.cc',
1535 'regexp/ppc/regexp-macro-assembler-ppc.h',
1536 ],
1537 }],
1538 ['v8_target_arch=="s390" or v8_target_arch=="s390x"', {
1539 'sources': [ ### gcmole(arch:s390) ###
1540 'compiler/s390/code-generator-s390.cc',
1541 'compiler/s390/instruction-codes-s390.h',
1542 'compiler/s390/instruction-scheduler-s390.cc',
1543 'compiler/s390/instruction-selector-s390.cc',
1544 'crankshaft/s390/lithium-codegen-s390.cc',
1545 'crankshaft/s390/lithium-codegen-s390.h',
1546 'crankshaft/s390/lithium-gap-resolver-s390.cc',
1547 'crankshaft/s390/lithium-gap-resolver-s390.h',
1548 'crankshaft/s390/lithium-s390.cc',
1549 'crankshaft/s390/lithium-s390.h',
1550 'debug/s390/debug-s390.cc',
1551 'full-codegen/s390/full-codegen-s390.cc',
1552 'ic/s390/access-compiler-s390.cc',
1553 'ic/s390/handler-compiler-s390.cc',
1554 'ic/s390/ic-compiler-s390.cc',
1555 'ic/s390/ic-s390.cc',
1556 'ic/s390/stub-cache-s390.cc',
1557 'regexp/s390/regexp-macro-assembler-s390.cc',
1558 'regexp/s390/regexp-macro-assembler-s390.h',
1559 's390/assembler-s390.cc',
1560 's390/assembler-s390.h',
1561 's390/assembler-s390-inl.h',
1562 's390/builtins-s390.cc',
1563 's390/codegen-s390.cc',
1564 's390/codegen-s390.h',
1565 's390/code-stubs-s390.cc',
1566 's390/code-stubs-s390.h',
1567 's390/constants-s390.cc',
1568 's390/constants-s390.h',
1569 's390/cpu-s390.cc',
1570 's390/deoptimizer-s390.cc',
1571 's390/disasm-s390.cc',
1572 's390/frames-s390.cc',
1573 's390/frames-s390.h',
1574 's390/interface-descriptors-s390.cc',
1575 's390/macro-assembler-s390.cc',
1576 's390/macro-assembler-s390.h',
1577 's390/simulator-s390.cc',
1578 's390/simulator-s390.h',
1579 ],
1580 }],
1581 ['OS=="win"', {
1582 'variables': {
1583 'gyp_generators': '<!(echo $GYP_GENERATORS)',
1584 },
1585 'msvs_disabled_warnings': [4351, 4355, 4800],
1586 # When building Official, the .lib is too large and exceeds the 2G
1587 # limit. This breaks it into multiple pieces to avoid the limit.
1588 # See http://crbug.com/485155.
1589 'msvs_shard': 4,
1590 }],
1591 ['component=="shared_library"', {
1592 'defines': [
1593 'BUILDING_V8_SHARED',
1594 'V8_SHARED',
1595 ],
1596 }],
1597 ['v8_postmortem_support=="true"', {
1598 'sources': [
1599 '<(SHARED_INTERMEDIATE_DIR)/debug-support.cc',
1600 ]
1601 }],
1602 ['v8_enable_i18n_support==1', {
1603 'dependencies': [
1604 '<(icu_gyp_path):icui18n',
1605 '<(icu_gyp_path):icuuc',
1606 ],
1607 'conditions': [
1608 ['icu_use_data_file_flag==1', {
1609 'defines': ['ICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE'],
1610 }, { # else icu_use_data_file_flag !=1
1611 'conditions': [
1612 ['OS=="win"', {
1613 'defines': ['ICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_SHARED'],
1614 }, {
1615 'defines': ['ICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC'],
1616 }],
1617 ],
1618 }],
1619 ],
1620 }, { # v8_enable_i18n_support==0
1621 'sources!': [
1622 'i18n.cc',
1623 'i18n.h',
1624 ],
1625 }],
1626 ['OS=="win" and v8_enable_i18n_support==1', {
1627 'dependencies': [
1628 '<(icu_gyp_path):icudata',
1629 ],
1630 }],
1631 ],
1632 },
1633 {
1634 'target_name': 'v8_libbase',
1635 'type': 'static_library',
1636 'variables': {
1637 'optimize': 'max',
1638 },
1639 'include_dirs+': [
1640 '..',
1641 ],
1642 'sources': [
1643 'base/accounting-allocator.cc',
1644 'base/accounting-allocator.h',
1645 'base/adapters.h',
1646 'base/atomic-utils.h',
1647 'base/atomicops.h',
1648 'base/atomicops_internals_arm64_gcc.h',
1649 'base/atomicops_internals_arm_gcc.h',
1650 'base/atomicops_internals_atomicword_compat.h',
1651 'base/atomicops_internals_mac.h',
1652 'base/atomicops_internals_mips_gcc.h',
1653 'base/atomicops_internals_mips64_gcc.h',
1654 'base/atomicops_internals_portable.h',
1655 'base/atomicops_internals_ppc_gcc.h',
1656 'base/atomicops_internals_s390_gcc.h',
1657 'base/atomicops_internals_tsan.h',
1658 'base/atomicops_internals_x86_gcc.cc',
1659 'base/atomicops_internals_x86_gcc.h',
1660 'base/atomicops_internals_x86_msvc.h',
1661 'base/bits.cc',
1662 'base/bits.h',
1663 'base/build_config.h',
1664 'base/compiler-specific.h',
1665 'base/cpu.cc',
1666 'base/cpu.h',
1667 'base/division-by-constant.cc',
1668 'base/division-by-constant.h',
1669 'base/flags.h',
1670 'base/format-macros.h',
1671 'base/functional.cc',
1672 'base/functional.h',
1673 'base/iterator.h',
1674 'base/lazy-instance.h',
1675 'base/logging.cc',
1676 'base/logging.h',
1677 'base/macros.h',
1678 'base/once.cc',
1679 'base/once.h',
1680 'base/platform/elapsed-timer.h',
1681 'base/platform/time.cc',
1682 'base/platform/time.h',
1683 'base/platform/condition-variable.cc',
1684 'base/platform/condition-variable.h',
1685 'base/platform/mutex.cc',
1686 'base/platform/mutex.h',
1687 'base/platform/platform.h',
1688 'base/platform/semaphore.cc',
1689 'base/platform/semaphore.h',
1690 'base/safe_conversions.h',
1691 'base/safe_conversions_impl.h',
1692 'base/safe_math.h',
1693 'base/safe_math_impl.h',
1694 'base/smart-pointers.h',
1695 'base/sys-info.cc',
1696 'base/sys-info.h',
1697 'base/utils/random-number-generator.cc',
1698 'base/utils/random-number-generator.h',
1699 ],
1700 'conditions': [
1701 ['want_separate_host_toolset==1', {
1702 'toolsets': ['host', 'target'],
1703 }, {
1704 'toolsets': ['target'],
1705 }],
1706 ['OS=="linux"', {
1707 'conditions': [
1708 ['nacl_target_arch=="none"', {
1709 'link_settings': {
1710 'libraries': [
1711 '-ldl',
1712 '-lrt'
1713 ],
1714 },
1715 }, {
1716 'defines': [
1717 'V8_LIBRT_NOT_AVAILABLE=1',
1718 ],
1719 }],
1720 ],
1721 'sources': [
1722 'base/platform/platform-linux.cc',
1723 'base/platform/platform-posix.cc'
1724 ],
1725 }
1726 ],
1727 ['OS=="android"', {
1728 'sources': [
1729 'base/platform/platform-posix.cc'
1730 ],
1731 'link_settings': {
1732 'target_conditions': [
1733 ['_toolset=="host" and host_os!="mac"', {
1734 # Only include libdl and librt on host builds because they
1735 # are included by default on Android target builds, and we
1736 # don't want to re-include them here since this will change
1737 # library order and break (see crbug.com/469973).
1738 # These libraries do not exist on Mac hosted builds.
1739 'libraries': [
1740 '-ldl',
1741 '-lrt'
1742 ]
1743 }]
1744 ]
1745 },
1746 'conditions': [
1747 ['host_os=="mac"', {
1748 'target_conditions': [
1749 ['_toolset=="host"', {
1750 'sources': [
1751 'base/platform/platform-macos.cc'
1752 ]
1753 }, {
1754 'sources': [
1755 'base/platform/platform-linux.cc'
1756 ]
1757 }],
1758 ],
1759 }, {
1760 'sources': [
1761 'base/platform/platform-linux.cc'
1762 ]
1763 }],
1764 ],
1765 },
1766 ],
1767 ['OS=="qnx"', {
1768 'link_settings': {
1769 'target_conditions': [
1770 ['_toolset=="host" and host_os=="linux"', {
1771 'libraries': [
1772 '-lrt'
1773 ],
1774 }],
1775 ['_toolset=="target"', {
1776 'libraries': [
1777 '-lbacktrace'
1778 ],
1779 }],
1780 ],
1781 },
1782 'sources': [
1783 'base/platform/platform-posix.cc',
1784 'base/qnx-math.h',
1785 ],
1786 'target_conditions': [
1787 ['_toolset=="host" and host_os=="linux"', {
1788 'sources': [
1789 'base/platform/platform-linux.cc'
1790 ],
1791 }],
1792 ['_toolset=="host" and host_os=="mac"', {
1793 'sources': [
1794 'base/platform/platform-macos.cc'
1795 ],
1796 }],
1797 ['_toolset=="target"', {
1798 'sources': [
1799 'base/platform/platform-qnx.cc'
1800 ],
1801 }],
1802 ],
1803 },
1804 ],
1805 ['OS=="freebsd"', {
1806 'link_settings': {
1807 'libraries': [
1808 '-L/usr/local/lib -lexecinfo',
1809 ]},
1810 'sources': [
1811 'base/platform/platform-freebsd.cc',
1812 'base/platform/platform-posix.cc'
1813 ],
1814 }
1815 ],
1816 ['OS=="openbsd"', {
1817 'link_settings': {
1818 'libraries': [
1819 '-L/usr/local/lib -lexecinfo',
1820 ]},
1821 'sources': [
1822 'base/platform/platform-openbsd.cc',
1823 'base/platform/platform-posix.cc'
1824 ],
1825 }
1826 ],
1827 ['OS=="netbsd"', {
1828 'link_settings': {
1829 'libraries': [
1830 '-L/usr/pkg/lib -Wl,-R/usr/pkg/lib -lexecinfo',
1831 ]},
1832 'sources': [
1833 'base/platform/platform-openbsd.cc',
1834 'base/platform/platform-posix.cc'
1835 ],
1836 }
1837 ],
1838 ['OS=="aix"', {
1839 'sources': [
1840 'base/platform/platform-aix.cc',
1841 'base/platform/platform-posix.cc'
1842 ]},
1843 ],
1844 ['OS=="solaris"', {
1845 'link_settings': {
1846 'libraries': [
1847 '-lnsl -lrt',
1848 ]},
1849 'sources': [
1850 'base/platform/platform-solaris.cc',
1851 'base/platform/platform-posix.cc'
1852 ],
1853 }
1854 ],
1855 ['OS=="mac"', {
1856 'sources': [
1857 'base/platform/platform-macos.cc',
1858 'base/platform/platform-posix.cc'
1859 ]},
1860 ],
1861 ['OS=="win"', {
1862 'defines': [
1863 '_CRT_RAND_S' # for rand_s()
1864 ],
1865 'variables': {
1866 'gyp_generators': '<!(echo $GYP_GENERATORS)',
1867 },
1868 'conditions': [
1869 ['gyp_generators=="make"', {
1870 'variables': {
1871 'build_env': '<!(uname -o)',
1872 },
1873 'conditions': [
1874 ['build_env=="Cygwin"', {
1875 'sources': [
1876 'base/platform/platform-cygwin.cc',
1877 'base/platform/platform-posix.cc'
1878 ],
1879 }, {
1880 'sources': [
1881 'base/platform/platform-win32.cc',
1882 'base/win32-headers.h',
1883 ],
1884 }],
1885 ],
1886 'link_settings': {
1887 'libraries': [ '-lwinmm', '-lws2_32' ],
1888 },
1889 }, {
1890 'sources': [
1891 'base/platform/platform-win32.cc',
1892 'base/win32-headers.h',
1893 ],
1894 'msvs_disabled_warnings': [4351, 4355, 4800],
1895 'link_settings': {
1896 'libraries': [ '-lwinmm.lib', '-lws2_32.lib' ],
1897 },
1898 }],
1899 ],
1900 }],
1901 ],
1902 },
1903 {
1904 'target_name': 'v8_libplatform',
1905 'type': 'static_library',
1906 'variables': {
1907 'optimize': 'max',
1908 },
1909 'dependencies': [
1910 'v8_libbase',
1911 ],
1912 'include_dirs+': [
1913 '..',
1914 '../include',
1915 ],
1916 'sources': [
1917 '../include/libplatform/libplatform.h',
1918 'libplatform/default-platform.cc',
1919 'libplatform/default-platform.h',
1920 'libplatform/task-queue.cc',
1921 'libplatform/task-queue.h',
1922 'libplatform/worker-thread.cc',
1923 'libplatform/worker-thread.h',
1924 ],
1925 'conditions': [
1926 ['want_separate_host_toolset==1', {
1927 'toolsets': ['host', 'target'],
1928 }, {
1929 'toolsets': ['target'],
1930 }],
1931 ],
1932 'direct_dependent_settings': {
1933 'include_dirs': [
1934 '../include',
1935 ],
1936 },
1937 },
1938 {
1939 'target_name': 'natives_blob',
1940 'type': 'none',
1941 'conditions': [
1942 [ 'v8_use_external_startup_data==1', {
1943 'conditions': [
1944 ['want_separate_host_toolset==1', {
1945 'dependencies': ['js2c#host'],
1946 }, {
1947 'dependencies': ['js2c'],
1948 }],
1949 ],
1950 'actions': [{
1951 'action_name': 'concatenate_natives_blob',
1952 'inputs': [
1953 '../tools/concatenate-files.py',
1954 '<(SHARED_INTERMEDIATE_DIR)/libraries.bin',
1955 '<(SHARED_INTERMEDIATE_DIR)/libraries-experimental.bin',
1956 '<(SHARED_INTERMEDIATE_DIR)/libraries-extras.bin',
1957 '<(SHARED_INTERMEDIATE_DIR)/libraries-experimental-extras.bin',
1958 ],
1959 'conditions': [
1960 ['want_separate_host_toolset==1', {
1961 'target_conditions': [
1962 ['_toolset=="host"', {
1963 'outputs': [
1964 '<(PRODUCT_DIR)/natives_blob_host.bin',
1965 ],
1966 'action': [
1967 'python', '<@(_inputs)', '<(PRODUCT_DIR)/natives_blob_host.bin'
1968 ],
1969 }, {
1970 'outputs': [
1971 '<(PRODUCT_DIR)/natives_blob.bin',
1972 ],
1973 'action': [
1974 'python', '<@(_inputs)', '<(PRODUCT_DIR)/natives_blob.bin'
1975 ],
1976 }],
1977 ],
1978 }, {
1979 'outputs': [
1980 '<(PRODUCT_DIR)/natives_blob.bin',
1981 ],
1982 'action': [
1983 'python', '<@(_inputs)', '<(PRODUCT_DIR)/natives_blob.bin'
1984 ],
1985 }],
1986 ],
1987 }],
1988 }],
1989 ['want_separate_host_toolset==1', {
1990 'toolsets': ['host', 'target'],
1991 }, {
1992 'toolsets': ['target'],
1993 }],
1994 ]
1995 },
1996 {
1997 'target_name': 'js2c',
1998 'type': 'none',
1999 'conditions': [
2000 ['want_separate_host_toolset==1', {
2001 'toolsets': ['host'],
2002 }, {
2003 'toolsets': ['target'],
2004 }],
2005 ],
2006 'variables': {
2007 'library_files': [
2008 'js/macros.py',
2009 'messages.h',
2010 'js/prologue.js',
2011 'js/runtime.js',
2012 'js/v8natives.js',
2013 'js/symbol.js',
2014 'js/array.js',
2015 'js/string.js',
2016 'js/uri.js',
2017 'js/math.js',
2018 'third_party/fdlibm/fdlibm.js',
2019 'js/regexp.js',
2020 'js/arraybuffer.js',
2021 'js/typedarray.js',
2022 'js/iterator-prototype.js',
2023 'js/collection.js',
2024 'js/weak-collection.js',
2025 'js/collection-iterator.js',
2026 'js/promise.js',
2027 'js/messages.js',
2028 'js/json.js',
2029 'js/array-iterator.js',
2030 'js/string-iterator.js',
2031 'js/templates.js',
2032 'js/spread.js',
2033 'js/proxy.js',
2034 'debug/mirrors.js',
2035 'debug/debug.js',
2036 'debug/liveedit.js',
2037 ],
2038 'experimental_library_files': [
2039 'js/macros.py',
2040 'messages.h',
2041 'js/harmony-atomics.js',
2042 'js/harmony-regexp-exec.js',
2043 'js/harmony-sharedarraybuffer.js',
2044 'js/harmony-simd.js',
2045 'js/harmony-species.js',
2046 'js/harmony-unicode-regexps.js',
2047 'js/harmony-string-padding.js',
2048 'js/promise-extra.js',
2049 'js/harmony-async-await.js'
2050 ],
2051 'libraries_bin_file': '<(SHARED_INTERMEDIATE_DIR)/libraries.bin',
2052 'libraries_experimental_bin_file': '<(SHARED_INTERMEDIATE_DIR)/libraries-experimental.bin',
2053 'libraries_extras_bin_file': '<(SHARED_INTERMEDIATE_DIR)/libraries-extras.bin',
2054 'libraries_experimental_extras_bin_file': '<(SHARED_INTERMEDIATE_DIR)/libraries-experimental-extras.bin',
2055 'conditions': [
2056 ['v8_enable_i18n_support==1', {
2057 'library_files': ['js/i18n.js'],
2058 'experimental_library_files': [
2059 'js/icu-case-mapping.js',
2060 'js/intl-extra.js',
2061 ],
2062 }],
2063 ],
2064 },
2065 'actions': [
2066 {
2067 'action_name': 'js2c',
2068 'inputs': [
2069 '../tools/js2c.py',
2070 '<@(library_files)',
2071 ],
2072 'outputs': ['<(SHARED_INTERMEDIATE_DIR)/libraries.cc'],
2073 'action': [
2074 'python',
2075 '../tools/js2c.py',
2076 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc',
2077 'CORE',
2078 '<@(library_files)',
2079 ],
2080 },
2081 {
2082 'action_name': 'js2c_bin',
2083 'inputs': [
2084 '../tools/js2c.py',
2085 '<@(library_files)',
2086 ],
2087 'outputs': ['<@(libraries_bin_file)'],
2088 'action': [
2089 'python',
2090 '../tools/js2c.py',
2091 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc',
2092 'CORE',
2093 '<@(library_files)',
2094 '--startup_blob', '<@(libraries_bin_file)',
2095 '--nojs',
2096 ],
2097 },
2098 {
2099 'action_name': 'js2c_experimental',
2100 'inputs': [
2101 '../tools/js2c.py',
2102 '<@(experimental_library_files)',
2103 ],
2104 'outputs': ['<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc'],
2105 'action': [
2106 'python',
2107 '../tools/js2c.py',
2108 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc',
2109 'EXPERIMENTAL',
2110 '<@(experimental_library_files)',
2111 ],
2112 },
2113 {
2114 'action_name': 'js2c_experimental_bin',
2115 'inputs': [
2116 '../tools/js2c.py',
2117 '<@(experimental_library_files)',
2118 ],
2119 'outputs': ['<@(libraries_experimental_bin_file)'],
2120 'action': [
2121 'python',
2122 '../tools/js2c.py',
2123 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc',
2124 'EXPERIMENTAL',
2125 '<@(experimental_library_files)',
2126 '--startup_blob', '<@(libraries_experimental_bin_file)',
2127 '--nojs',
2128 ],
2129 },
2130 {
2131 'action_name': 'js2c_extras',
2132 'inputs': [
2133 '../tools/js2c.py',
2134 '<@(v8_extra_library_files)',
2135 ],
2136 'outputs': ['<(SHARED_INTERMEDIATE_DIR)/extras-libraries.cc'],
2137 'action': [
2138 'python',
2139 '../tools/js2c.py',
2140 '<(SHARED_INTERMEDIATE_DIR)/extras-libraries.cc',
2141 'EXTRAS',
2142 '<@(v8_extra_library_files)',
2143 ],
2144 },
2145 {
2146 'action_name': 'js2c_extras_bin',
2147 'inputs': [
2148 '../tools/js2c.py',
2149 '<@(v8_extra_library_files)',
2150 ],
2151 'outputs': ['<@(libraries_extras_bin_file)'],
2152 'action': [
2153 'python',
2154 '../tools/js2c.py',
2155 '<(SHARED_INTERMEDIATE_DIR)/extras-libraries.cc',
2156 'EXTRAS',
2157 '<@(v8_extra_library_files)',
2158 '--startup_blob', '<@(libraries_extras_bin_file)',
2159 '--nojs',
2160 ],
2161 },
2162 {
2163 'action_name': 'js2c_experimental_extras',
2164 'inputs': [
2165 '../tools/js2c.py',
2166 '<@(v8_experimental_extra_library_files)',
2167 ],
2168 'outputs': [
2169 '<(SHARED_INTERMEDIATE_DIR)/experimental-extras-libraries.cc',
2170 ],
2171 'action': [
2172 'python',
2173 '../tools/js2c.py',
2174 '<(SHARED_INTERMEDIATE_DIR)/experimental-extras-libraries.cc',
2175 'EXPERIMENTAL_EXTRAS',
2176 '<@(v8_experimental_extra_library_files)',
2177 ],
2178 },
2179 {
2180 'action_name': 'js2c_experimental_extras_bin',
2181 'inputs': [
2182 '../tools/js2c.py',
2183 '<@(v8_experimental_extra_library_files)',
2184 ],
2185 'outputs': ['<@(libraries_experimental_extras_bin_file)'],
2186 'action': [
2187 'python',
2188 '../tools/js2c.py',
2189 '<(SHARED_INTERMEDIATE_DIR)/experimental-extras-libraries.cc',
2190 'EXPERIMENTAL_EXTRAS',
2191 '<@(v8_experimental_extra_library_files)',
2192 '--startup_blob', '<@(libraries_experimental_extras_bin_file)',
2193 '--nojs',
2194 ],
2195 },
2196 ],
2197 },
2198 {
2199 'target_name': 'postmortem-metadata',
2200 'type': 'none',
2201 'variables': {
2202 'heapobject_files': [
2203 'objects.h',
2204 'objects-inl.h',
2205 ],
2206 },
2207 'actions': [
2208 {
2209 'action_name': 'gen-postmortem-metadata',
2210 'inputs': [
2211 '../tools/gen-postmortem-metadata.py',
2212 '<@(heapobject_files)',
2213 ],
2214 'outputs': [
2215 '<(SHARED_INTERMEDIATE_DIR)/debug-support.cc',
2216 ],
2217 'action': [
2218 'python',
2219 '../tools/gen-postmortem-metadata.py',
2220 '<@(_outputs)',
2221 '<@(heapobject_files)'
2222 ]
2223 }
2224 ]
2225 },
2226 {
2227 'target_name': 'mksnapshot',
2228 'type': 'executable',
2229 'dependencies': ['v8_base', 'v8_nosnapshot', 'v8_libplatform'],
2230 'include_dirs+': [
2231 '..',
2232 ],
2233 'sources': [
2234 'snapshot/mksnapshot.cc',
2235 ],
2236 'conditions': [
2237 ['v8_enable_i18n_support==1', {
2238 'dependencies': [
2239 '<(icu_gyp_path):icui18n',
2240 '<(icu_gyp_path):icuuc',
2241 ]
2242 }],
2243 ['want_separate_host_toolset==1', {
2244 'toolsets': ['host'],
2245 }, {
2246 'toolsets': ['target'],
2247 }],
2248 ],
2249 },
2250 ],
2251}