2014-10-01 08:34:25 +00:00
|
|
|
# Copyright 2014 the V8 project authors. All rights reserved.
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
|
2016-06-28 13:22:46 +00:00
|
|
|
# The sources are kept automatically in sync with BUILD.gn.
|
2016-06-01 12:28:57 +00:00
|
|
|
|
2014-10-01 08:34:25 +00:00
|
|
|
{
|
|
|
|
'variables': {
|
|
|
|
'v8_code': 1,
|
2016-06-28 13:22:46 +00:00
|
|
|
'unittests_sources': [ ### gcmole(all) ###
|
2017-02-20 10:07:05 +00:00
|
|
|
'api/access-check-unittest.cc',
|
2017-02-08 16:12:59 +00:00
|
|
|
'api/exception-unittest.cc',
|
2017-03-29 11:03:38 +00:00
|
|
|
'api/interceptor-unittest.cc',
|
2017-02-08 09:38:50 +00:00
|
|
|
'api/isolate-unittest.cc',
|
2017-02-16 21:46:15 +00:00
|
|
|
'api/remote-object-unittest.cc',
|
2017-02-10 05:56:00 +00:00
|
|
|
'api/v8-object-unittest.cc',
|
2017-03-16 18:10:45 +00:00
|
|
|
'asmjs/asm-scanner-unittest.cc',
|
2017-05-09 12:24:09 +00:00
|
|
|
'asmjs/asm-types-unittest.cc',
|
|
|
|
'asmjs/switch-logic-unittest.cc',
|
2016-06-28 13:22:46 +00:00
|
|
|
'base/atomic-utils-unittest.cc',
|
|
|
|
'base/bits-unittest.cc',
|
|
|
|
'base/cpu-unittest.cc',
|
|
|
|
'base/division-by-constant-unittest.cc',
|
|
|
|
'base/flags-unittest.cc',
|
|
|
|
'base/functional-unittest.cc',
|
|
|
|
'base/ieee754-unittest.cc',
|
|
|
|
'base/logging-unittest.cc',
|
2017-07-26 13:32:14 +00:00
|
|
|
'base/macros-unittest.cc',
|
2016-06-28 13:22:46 +00:00
|
|
|
'base/iterator-unittest.cc',
|
2017-07-24 18:03:03 +00:00
|
|
|
'base/ostreams-unittest.cc',
|
2016-06-28 13:22:46 +00:00
|
|
|
'base/platform/condition-variable-unittest.cc',
|
|
|
|
'base/platform/mutex-unittest.cc',
|
|
|
|
'base/platform/platform-unittest.cc',
|
|
|
|
'base/platform/semaphore-unittest.cc',
|
|
|
|
'base/platform/time-unittest.cc',
|
|
|
|
'base/sys-info-unittest.cc',
|
|
|
|
'base/utils/random-number-generator-unittest.cc',
|
|
|
|
'cancelable-tasks-unittest.cc',
|
|
|
|
'char-predicates-unittest.cc',
|
|
|
|
'compiler/branch-elimination-unittest.cc',
|
2016-12-05 10:47:38 +00:00
|
|
|
'compiler/bytecode-analysis-unittest.cc',
|
2016-06-28 13:22:46 +00:00
|
|
|
'compiler/checkpoint-elimination-unittest.cc',
|
|
|
|
'compiler/common-operator-reducer-unittest.cc',
|
|
|
|
'compiler/common-operator-unittest.cc',
|
|
|
|
'compiler/compiler-test-utils.h',
|
|
|
|
'compiler/control-equivalence-unittest.cc',
|
|
|
|
'compiler/control-flow-optimizer-unittest.cc',
|
|
|
|
'compiler/dead-code-elimination-unittest.cc',
|
|
|
|
'compiler/diamond-unittest.cc',
|
|
|
|
'compiler/effect-control-linearizer-unittest.cc',
|
|
|
|
'compiler/escape-analysis-unittest.cc',
|
|
|
|
'compiler/graph-reducer-unittest.cc',
|
|
|
|
'compiler/graph-reducer-unittest.h',
|
|
|
|
'compiler/graph-trimmer-unittest.cc',
|
|
|
|
'compiler/graph-unittest.cc',
|
|
|
|
'compiler/graph-unittest.h',
|
2016-10-26 16:04:11 +00:00
|
|
|
'compiler/instruction-unittest.cc',
|
2016-06-28 13:22:46 +00:00
|
|
|
'compiler/instruction-selector-unittest.cc',
|
|
|
|
'compiler/instruction-selector-unittest.h',
|
|
|
|
'compiler/instruction-sequence-unittest.cc',
|
|
|
|
'compiler/instruction-sequence-unittest.h',
|
|
|
|
'compiler/int64-lowering-unittest.cc',
|
|
|
|
'compiler/js-builtin-reducer-unittest.cc',
|
|
|
|
'compiler/js-create-lowering-unittest.cc',
|
|
|
|
'compiler/js-intrinsic-lowering-unittest.cc',
|
|
|
|
'compiler/js-operator-unittest.cc',
|
|
|
|
'compiler/js-typed-lowering-unittest.cc',
|
|
|
|
'compiler/linkage-tail-call-unittest.cc',
|
2016-09-19 10:58:59 +00:00
|
|
|
'compiler/live-range-builder.h',
|
2016-12-17 00:24:36 +00:00
|
|
|
'compiler/regalloc/live-range-unittest.cc',
|
2016-06-28 13:22:46 +00:00
|
|
|
'compiler/load-elimination-unittest.cc',
|
|
|
|
'compiler/loop-peeling-unittest.cc',
|
|
|
|
'compiler/machine-operator-reducer-unittest.cc',
|
|
|
|
'compiler/machine-operator-unittest.cc',
|
2016-12-17 00:24:36 +00:00
|
|
|
'compiler/regalloc/move-optimizer-unittest.cc',
|
2016-06-28 13:22:46 +00:00
|
|
|
'compiler/node-cache-unittest.cc',
|
|
|
|
'compiler/node-matchers-unittest.cc',
|
|
|
|
'compiler/node-properties-unittest.cc',
|
|
|
|
'compiler/node-test-utils.cc',
|
|
|
|
'compiler/node-test-utils.h',
|
|
|
|
'compiler/node-unittest.cc',
|
|
|
|
'compiler/opcodes-unittest.cc',
|
2017-07-31 09:05:39 +00:00
|
|
|
'compiler/persistent-unittest.cc',
|
2016-12-17 00:24:36 +00:00
|
|
|
'compiler/regalloc/register-allocator-unittest.cc',
|
2016-06-28 13:22:46 +00:00
|
|
|
'compiler/schedule-unittest.cc',
|
|
|
|
'compiler/scheduler-unittest.cc',
|
|
|
|
'compiler/scheduler-rpo-unittest.cc',
|
|
|
|
'compiler/simplified-operator-reducer-unittest.cc',
|
|
|
|
'compiler/simplified-operator-unittest.cc',
|
|
|
|
'compiler/state-values-utils-unittest.cc',
|
2016-08-26 07:57:57 +00:00
|
|
|
'compiler/typed-optimization-unittest.cc',
|
2016-06-28 13:22:46 +00:00
|
|
|
'compiler/typer-unittest.cc',
|
|
|
|
'compiler/value-numbering-reducer-unittest.cc',
|
2016-10-10 19:00:31 +00:00
|
|
|
'compiler/zone-stats-unittest.cc',
|
2016-10-14 08:12:16 +00:00
|
|
|
'compiler-dispatcher/compiler-dispatcher-tracer-unittest.cc',
|
2016-12-12 15:35:41 +00:00
|
|
|
'compiler-dispatcher/compiler-dispatcher-unittest.cc',
|
2017-01-30 19:27:00 +00:00
|
|
|
'compiler-dispatcher/optimizing-compile-dispatcher-unittest.cc',
|
2017-07-27 13:33:53 +00:00
|
|
|
'compiler-dispatcher/unoptimized-compile-job-unittest.cc',
|
2016-06-28 13:22:46 +00:00
|
|
|
'counters-unittest.cc',
|
2016-07-14 10:31:02 +00:00
|
|
|
'eh-frame-iterator-unittest.cc',
|
|
|
|
'eh-frame-writer-unittest.cc',
|
2017-04-18 14:01:12 +00:00
|
|
|
'heap/bitmap-unittest.cc',
|
|
|
|
'heap/embedder-tracing-unittest.cc',
|
|
|
|
'heap/gc-idle-time-handler-unittest.cc',
|
|
|
|
'heap/gc-tracer-unittest.cc',
|
2017-05-16 20:57:05 +00:00
|
|
|
'heap/item-parallel-job-unittest.cc',
|
2017-04-18 14:01:12 +00:00
|
|
|
'heap/marking-unittest.cc',
|
|
|
|
'heap/memory-reducer-unittest.cc',
|
|
|
|
'heap/heap-unittest.cc',
|
|
|
|
'heap/scavenge-job-unittest.cc',
|
|
|
|
'heap/slot-set-unittest.cc',
|
|
|
|
'heap/spaces-unittest.cc',
|
|
|
|
'heap/unmapper-unittest.cc',
|
2017-06-23 10:44:53 +00:00
|
|
|
'heap/worklist-unittest.cc',
|
2016-06-28 13:22:46 +00:00
|
|
|
'interpreter/bytecodes-unittest.cc',
|
|
|
|
'interpreter/bytecode-array-builder-unittest.cc',
|
|
|
|
'interpreter/bytecode-array-iterator-unittest.cc',
|
2016-12-05 13:03:07 +00:00
|
|
|
'interpreter/bytecode-array-random-iterator-unittest.cc',
|
2017-06-27 08:44:35 +00:00
|
|
|
'interpreter/bytecode-array-writer-unittest.cc',
|
2016-07-15 12:03:04 +00:00
|
|
|
'interpreter/bytecode-decoder-unittest.cc',
|
2017-06-27 08:44:35 +00:00
|
|
|
'interpreter/bytecode-node-unittest.cc',
|
2016-12-15 07:55:10 +00:00
|
|
|
'interpreter/bytecode-operands-unittest.cc',
|
2016-06-28 13:22:46 +00:00
|
|
|
'interpreter/bytecode-register-allocator-unittest.cc',
|
|
|
|
'interpreter/bytecode-register-optimizer-unittest.cc',
|
2017-04-11 13:37:25 +00:00
|
|
|
'interpreter/bytecode-source-info-unittest.cc',
|
2016-09-19 10:58:59 +00:00
|
|
|
'interpreter/bytecode-utils.h',
|
2016-06-28 13:22:46 +00:00
|
|
|
'interpreter/constant-array-builder-unittest.cc',
|
|
|
|
'interpreter/interpreter-assembler-unittest.cc',
|
|
|
|
'interpreter/interpreter-assembler-unittest.h',
|
|
|
|
'libplatform/default-platform-unittest.cc',
|
|
|
|
'libplatform/task-queue-unittest.cc',
|
|
|
|
'libplatform/worker-thread-unittest.cc',
|
|
|
|
'locked-queue-unittest.cc',
|
2016-12-19 12:50:30 +00:00
|
|
|
'object-unittest.cc',
|
2017-04-18 14:01:12 +00:00
|
|
|
'parser/preparser-unittest.cc',
|
2016-06-28 13:22:46 +00:00
|
|
|
'register-configuration-unittest.cc',
|
|
|
|
'run-all-unittests.cc',
|
|
|
|
'source-position-table-unittest.cc',
|
2017-04-18 14:01:12 +00:00
|
|
|
'test-helpers.cc',
|
|
|
|
'test-helpers.h',
|
2016-06-28 13:22:46 +00:00
|
|
|
'test-utils.h',
|
|
|
|
'test-utils.cc',
|
2016-11-22 09:27:41 +00:00
|
|
|
'unicode-unittest.cc',
|
2016-08-12 14:49:09 +00:00
|
|
|
'value-serializer-unittest.cc',
|
2016-10-20 14:48:13 +00:00
|
|
|
'zone/segmentpool-unittest.cc',
|
2017-03-24 17:32:08 +00:00
|
|
|
'zone/zone-allocator-unittest.cc',
|
2016-10-26 17:07:48 +00:00
|
|
|
'zone/zone-chunk-list-unittest.cc',
|
2017-02-06 11:14:56 +00:00
|
|
|
'zone/zone-unittest.cc',
|
2016-06-28 13:22:46 +00:00
|
|
|
'wasm/control-transfer-unittest.cc',
|
|
|
|
'wasm/decoder-unittest.cc',
|
2016-12-21 12:42:06 +00:00
|
|
|
'wasm/function-body-decoder-unittest.cc',
|
2016-06-28 13:22:46 +00:00
|
|
|
'wasm/leb-helper-unittest.cc',
|
|
|
|
'wasm/loop-assignment-analysis-unittest.cc',
|
|
|
|
'wasm/module-decoder-unittest.cc',
|
2017-05-11 08:51:54 +00:00
|
|
|
'wasm/streaming-decoder-unittest.cc',
|
2016-06-28 13:22:46 +00:00
|
|
|
'wasm/wasm-macro-gen-unittest.cc',
|
2016-09-29 11:29:05 +00:00
|
|
|
'wasm/wasm-module-builder-unittest.cc',
|
2017-01-20 13:28:29 +00:00
|
|
|
'wasm/wasm-opcodes-unittest.cc',
|
2016-06-28 13:22:46 +00:00
|
|
|
],
|
|
|
|
'unittests_sources_arm': [ ### gcmole(arch:arm) ###
|
|
|
|
'compiler/arm/instruction-selector-arm-unittest.cc',
|
|
|
|
],
|
|
|
|
'unittests_sources_arm64': [ ### gcmole(arch:arm64) ###
|
|
|
|
'compiler/arm64/instruction-selector-arm64-unittest.cc',
|
|
|
|
],
|
|
|
|
'unittests_sources_ia32': [ ### gcmole(arch:ia32) ###
|
|
|
|
'compiler/ia32/instruction-selector-ia32-unittest.cc',
|
|
|
|
],
|
|
|
|
'unittests_sources_mips': [ ### gcmole(arch:mips) ###
|
|
|
|
'compiler/mips/instruction-selector-mips-unittest.cc',
|
|
|
|
],
|
|
|
|
'unittests_sources_mips64': [ ### gcmole(arch:mips64) ###
|
|
|
|
'compiler/mips64/instruction-selector-mips64-unittest.cc',
|
|
|
|
],
|
|
|
|
'unittests_sources_x64': [ ### gcmole(arch:x64) ###
|
|
|
|
'compiler/x64/instruction-selector-x64-unittest.cc',
|
|
|
|
],
|
|
|
|
'unittests_sources_ppc': [ ### gcmole(arch:ppc) ###
|
|
|
|
'compiler/ppc/instruction-selector-ppc-unittest.cc',
|
|
|
|
],
|
|
|
|
'unittests_sources_s390': [ ### gcmole(arch:s390) ###
|
|
|
|
'compiler/s390/instruction-selector-s390-unittest.cc',
|
|
|
|
],
|
2014-10-01 08:34:25 +00:00
|
|
|
},
|
2016-04-29 10:08:53 +00:00
|
|
|
'includes': ['../../gypfiles/toolchain.gypi', '../../gypfiles/features.gypi'],
|
2014-10-01 08:34:25 +00:00
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': 'unittests',
|
|
|
|
'type': 'executable',
|
|
|
|
'variables': {
|
|
|
|
'optimize': 'max',
|
|
|
|
},
|
|
|
|
'dependencies': [
|
|
|
|
'../../testing/gmock.gyp:gmock',
|
|
|
|
'../../testing/gtest.gyp:gtest',
|
2016-10-17 10:01:42 +00:00
|
|
|
'../../src/v8.gyp:v8',
|
2016-10-07 07:56:43 +00:00
|
|
|
'../../src/v8.gyp:v8_libbase',
|
2016-04-25 12:19:32 +00:00
|
|
|
'../../src/v8.gyp:v8_libplatform',
|
2017-05-05 10:59:39 +00:00
|
|
|
'../../src/v8.gyp:v8_maybe_snapshot',
|
2014-10-01 08:34:25 +00:00
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'../..',
|
|
|
|
],
|
2016-06-28 13:22:46 +00:00
|
|
|
'sources': [
|
|
|
|
'<@(unittests_sources)',
|
2014-10-01 08:34:25 +00:00
|
|
|
],
|
|
|
|
'conditions': [
|
|
|
|
['v8_target_arch=="arm"', {
|
2016-06-28 13:22:46 +00:00
|
|
|
'sources': [
|
|
|
|
'<@(unittests_sources_arm)',
|
2014-10-01 08:34:25 +00:00
|
|
|
],
|
|
|
|
}],
|
|
|
|
['v8_target_arch=="arm64"', {
|
2016-06-28 13:22:46 +00:00
|
|
|
'sources': [
|
|
|
|
'<@(unittests_sources_arm64)',
|
2014-10-01 08:34:25 +00:00
|
|
|
],
|
|
|
|
}],
|
|
|
|
['v8_target_arch=="ia32"', {
|
2016-06-28 13:22:46 +00:00
|
|
|
'sources': [
|
|
|
|
'<@(unittests_sources_ia32)',
|
2014-10-01 08:34:25 +00:00
|
|
|
],
|
|
|
|
}],
|
2016-04-11 06:35:32 +00:00
|
|
|
['v8_target_arch=="mips"', {
|
2016-06-28 13:22:46 +00:00
|
|
|
'sources': [
|
|
|
|
'<@(unittests_sources_mips)',
|
2016-04-11 06:35:32 +00:00
|
|
|
],
|
|
|
|
}],
|
2014-10-02 15:48:48 +00:00
|
|
|
['v8_target_arch=="mipsel"', {
|
2016-06-28 13:22:46 +00:00
|
|
|
'sources': [
|
|
|
|
'<@(unittests_sources_mips)',
|
2014-10-02 15:48:48 +00:00
|
|
|
],
|
|
|
|
}],
|
2016-04-11 06:35:32 +00:00
|
|
|
['v8_target_arch=="mips64"', {
|
2016-06-28 13:22:46 +00:00
|
|
|
'sources': [
|
|
|
|
'<@(unittests_sources_mips64)',
|
2016-04-11 06:35:32 +00:00
|
|
|
],
|
|
|
|
}],
|
2014-11-19 15:44:39 +00:00
|
|
|
['v8_target_arch=="mips64el"', {
|
2016-06-28 13:22:46 +00:00
|
|
|
'sources': [
|
|
|
|
'<@(unittests_sources_mips64)',
|
2014-11-19 15:44:39 +00:00
|
|
|
],
|
|
|
|
}],
|
2014-10-01 08:34:25 +00:00
|
|
|
['v8_target_arch=="x64"', {
|
2016-06-28 13:22:46 +00:00
|
|
|
'sources': [
|
|
|
|
'<@(unittests_sources_x64)',
|
2014-10-01 08:34:25 +00:00
|
|
|
],
|
|
|
|
}],
|
2015-01-16 07:42:00 +00:00
|
|
|
['v8_target_arch=="ppc" or v8_target_arch=="ppc64"', {
|
2016-06-28 13:22:46 +00:00
|
|
|
'sources': [
|
|
|
|
'<@(unittests_sources_ppc)',
|
2015-01-16 07:42:00 +00:00
|
|
|
],
|
|
|
|
}],
|
2016-03-15 18:07:43 +00:00
|
|
|
['v8_target_arch=="s390" or v8_target_arch=="s390x"', {
|
2016-06-28 13:22:46 +00:00
|
|
|
'sources': [
|
|
|
|
'<@(unittests_sources_s390)',
|
2016-03-15 18:07:43 +00:00
|
|
|
],
|
|
|
|
}],
|
2015-04-30 07:50:22 +00:00
|
|
|
['OS=="aix"', {
|
|
|
|
'ldflags': [ '-Wl,-bbigtoc' ],
|
|
|
|
}],
|
2016-11-14 10:00:58 +00:00
|
|
|
['v8_enable_i18n_support==1', {
|
|
|
|
'dependencies': [
|
|
|
|
'<(icu_gyp_path):icui18n',
|
|
|
|
'<(icu_gyp_path):icuuc',
|
|
|
|
],
|
|
|
|
}],
|
2017-05-19 13:14:45 +00:00
|
|
|
['v8_use_snapshot=="true"', {
|
|
|
|
'dependencies': ['../../src/v8.gyp:v8_builtins_generators'],
|
|
|
|
}],
|
2014-10-01 08:34:25 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
2015-10-05 09:48:25 +00:00
|
|
|
'conditions': [
|
|
|
|
['test_isolation_mode != "noop"', {
|
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': 'unittests_run',
|
|
|
|
'type': 'none',
|
|
|
|
'dependencies': [
|
|
|
|
'unittests',
|
|
|
|
],
|
|
|
|
'includes': [
|
2016-04-29 10:08:53 +00:00
|
|
|
'../../gypfiles/isolate.gypi',
|
2015-10-05 09:48:25 +00:00
|
|
|
],
|
|
|
|
'sources': [
|
|
|
|
'unittests.isolate',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
2014-10-01 08:34:25 +00:00
|
|
|
}
|