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.
|
|
|
|
|
|
|
|
{
|
|
|
|
'variables': {
|
|
|
|
'v8_code': 1,
|
|
|
|
},
|
|
|
|
'includes': ['../../build/toolchain.gypi', '../../build/features.gypi'],
|
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': 'unittests',
|
|
|
|
'type': 'executable',
|
|
|
|
'variables': {
|
|
|
|
'optimize': 'max',
|
|
|
|
},
|
|
|
|
'dependencies': [
|
|
|
|
'../../testing/gmock.gyp:gmock',
|
|
|
|
'../../testing/gtest.gyp:gtest',
|
|
|
|
'../../tools/gyp/v8.gyp:v8_libplatform',
|
|
|
|
],
|
|
|
|
'include_dirs': [
|
|
|
|
'../..',
|
|
|
|
],
|
|
|
|
'sources': [ ### gcmole(all) ###
|
2015-09-04 14:02:13 +00:00
|
|
|
'atomic-utils-unittest.cc',
|
2014-10-01 08:34:25 +00:00
|
|
|
'base/bits-unittest.cc',
|
|
|
|
'base/cpu-unittest.cc',
|
|
|
|
'base/division-by-constant-unittest.cc',
|
|
|
|
'base/flags-unittest.cc',
|
2014-10-06 12:27:24 +00:00
|
|
|
'base/functional-unittest.cc',
|
2015-01-30 09:29:25 +00:00
|
|
|
'base/logging-unittest.cc',
|
2014-12-16 07:31:46 +00:00
|
|
|
'base/iterator-unittest.cc',
|
2014-10-01 08:34:25 +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',
|
2015-11-14 01:20:07 +00:00
|
|
|
'cancelable-tasks-unittest.cc',
|
2014-10-10 08:06:21 +00:00
|
|
|
'char-predicates-unittest.cc',
|
2015-10-17 17:50:11 +00:00
|
|
|
'compiler/branch-elimination-unittest.cc',
|
2014-10-01 08:34:25 +00:00
|
|
|
'compiler/change-lowering-unittest.cc',
|
2015-07-22 04:50:16 +00:00
|
|
|
'compiler/coalesced-live-ranges-unittest.cc',
|
2014-12-22 13:06:34 +00:00
|
|
|
'compiler/common-operator-reducer-unittest.cc',
|
2014-10-01 08:34:25 +00:00
|
|
|
'compiler/common-operator-unittest.cc',
|
|
|
|
'compiler/compiler-test-utils.h',
|
2014-12-02 15:56:22 +00:00
|
|
|
'compiler/control-equivalence-unittest.cc',
|
2015-02-17 13:29:31 +00:00
|
|
|
'compiler/control-flow-optimizer-unittest.cc',
|
[turbofan] Proper dead code elimination as regular reducer.
The three different concerns that the ControlReducer used to deal with
are now properly separated into
a.) DeadCodeElimination, which is a regular AdvancedReducer, that
propagates Dead via control edges,
b.) CommonOperatorReducer, which does strength reduction on common
operators (i.e. Branch, Phi, and friends), and
c.) GraphTrimming, which removes dead->live edges from the graph.
This will make it possible to run the DeadCodeElimination together with
other passes that actually introduce Dead nodes, i.e. typed lowering;
and it opens the door for general inlining without two stage fix point
iteration.
To make the DeadCodeElimination easier and more uniform, we basically
reverted the introduction of DeadValue and DeadEffect, and changed the
Dead operator to produce control, value and effect. Note however that
this is not a requirement, but merely a way to make dead propagation
easier and more uniform. We could always go back and decide to have
different Dead operators if some other change requires that.
Note that there are several additional opportunities for cleanup now,
i.e. OSR deconstruction could be a regular reducer now, and we don't
need to use TheHole as dead value marker in the GraphReducer. And we can
actually run the dead code elimination together with the other passes
instead of using separate passes over the graph. We will do this in
follow up CLs.
R=jarin@chromium.org, mstarzinger@chromium.org
Review URL: https://codereview.chromium.org/1193833002
Cr-Commit-Position: refs/heads/master@{#29146}
2015-06-19 12:07:17 +00:00
|
|
|
'compiler/dead-code-elimination-unittest.cc',
|
2014-11-04 14:37:22 +00:00
|
|
|
'compiler/diamond-unittest.cc',
|
2016-04-18 08:28:33 +00:00
|
|
|
'compiler/effect-control-linearizer-unittest.cc',
|
2015-12-02 10:53:28 +00:00
|
|
|
'compiler/escape-analysis-unittest.cc',
|
2014-10-01 08:34:25 +00:00
|
|
|
'compiler/graph-reducer-unittest.cc',
|
2015-05-06 10:12:47 +00:00
|
|
|
'compiler/graph-reducer-unittest.h',
|
2015-06-17 10:56:27 +00:00
|
|
|
'compiler/graph-trimmer-unittest.cc',
|
2014-10-01 08:34:25 +00:00
|
|
|
'compiler/graph-unittest.cc',
|
|
|
|
'compiler/graph-unittest.h',
|
|
|
|
'compiler/instruction-selector-unittest.cc',
|
|
|
|
'compiler/instruction-selector-unittest.h',
|
2014-11-27 09:19:31 +00:00
|
|
|
'compiler/instruction-sequence-unittest.cc',
|
|
|
|
'compiler/instruction-sequence-unittest.h',
|
2016-02-23 15:33:06 +00:00
|
|
|
'compiler/int64-lowering-unittest.cc',
|
2014-10-01 08:34:25 +00:00
|
|
|
'compiler/js-builtin-reducer-unittest.cc',
|
2016-02-08 12:33:44 +00:00
|
|
|
'compiler/js-create-lowering-unittest.cc',
|
2015-01-26 09:05:47 +00:00
|
|
|
'compiler/js-intrinsic-lowering-unittest.cc',
|
2014-10-01 08:34:25 +00:00
|
|
|
'compiler/js-operator-unittest.cc',
|
2014-10-07 07:36:21 +00:00
|
|
|
'compiler/js-typed-lowering-unittest.cc',
|
2015-07-22 18:27:16 +00:00
|
|
|
'compiler/linkage-tail-call-unittest.cc',
|
2015-03-17 09:38:37 +00:00
|
|
|
'compiler/liveness-analyzer-unittest.cc',
|
2015-08-31 13:26:57 +00:00
|
|
|
'compiler/live-range-unittest.cc',
|
2014-12-05 07:59:04 +00:00
|
|
|
'compiler/load-elimination-unittest.cc',
|
2015-01-20 09:45:02 +00:00
|
|
|
'compiler/loop-peeling-unittest.cc',
|
2014-10-01 08:34:25 +00:00
|
|
|
'compiler/machine-operator-reducer-unittest.cc',
|
2015-01-02 07:43:34 +00:00
|
|
|
'compiler/machine-operator-unittest.cc',
|
2014-11-27 09:19:31 +00:00
|
|
|
'compiler/move-optimizer-unittest.cc',
|
2015-04-29 14:39:55 +00:00
|
|
|
'compiler/node-cache-unittest.cc',
|
2014-11-07 16:47:25 +00:00
|
|
|
'compiler/node-matchers-unittest.cc',
|
2015-01-16 11:04:01 +00:00
|
|
|
'compiler/node-properties-unittest.cc',
|
2014-10-20 11:26:23 +00:00
|
|
|
'compiler/node-test-utils.cc',
|
|
|
|
'compiler/node-test-utils.h',
|
2015-01-16 11:04:01 +00:00
|
|
|
'compiler/node-unittest.cc',
|
2015-01-09 14:19:55 +00:00
|
|
|
'compiler/opcodes-unittest.cc',
|
2014-11-03 13:26:46 +00:00
|
|
|
'compiler/register-allocator-unittest.cc',
|
2015-01-22 13:01:02 +00:00
|
|
|
'compiler/schedule-unittest.cc',
|
2015-01-26 11:21:14 +00:00
|
|
|
'compiler/scheduler-unittest.cc',
|
2016-02-14 11:27:25 +00:00
|
|
|
'compiler/scheduler-rpo-unittest.cc',
|
2015-06-25 04:47:06 +00:00
|
|
|
'compiler/simplified-operator-reducer-unittest.cc',
|
2014-10-01 08:34:25 +00:00
|
|
|
'compiler/simplified-operator-unittest.cc',
|
2015-03-16 13:43:02 +00:00
|
|
|
'compiler/state-values-utils-unittest.cc',
|
2015-05-05 09:42:59 +00:00
|
|
|
'compiler/tail-call-optimization-unittest.cc',
|
2015-02-12 15:21:17 +00:00
|
|
|
'compiler/typer-unittest.cc',
|
2014-10-01 08:34:25 +00:00
|
|
|
'compiler/value-numbering-reducer-unittest.cc',
|
2014-10-21 12:38:46 +00:00
|
|
|
'compiler/zone-pool-unittest.cc',
|
2015-05-07 10:03:35 +00:00
|
|
|
'counters-unittest.cc',
|
2015-09-02 17:48:10 +00:00
|
|
|
'interpreter/bytecodes-unittest.cc',
|
2015-08-13 11:27:54 +00:00
|
|
|
'interpreter/bytecode-array-builder-unittest.cc',
|
2015-09-10 16:21:34 +00:00
|
|
|
'interpreter/bytecode-array-iterator-unittest.cc',
|
2016-01-14 13:43:14 +00:00
|
|
|
'interpreter/bytecode-register-allocator-unittest.cc',
|
2016-01-05 19:08:11 +00:00
|
|
|
'interpreter/constant-array-builder-unittest.cc',
|
2016-02-10 16:38:49 +00:00
|
|
|
'interpreter/interpreter-assembler-unittest.cc',
|
|
|
|
'interpreter/interpreter-assembler-unittest.h',
|
2016-02-24 17:12:31 +00:00
|
|
|
'interpreter/source-position-table-unittest.cc',
|
2014-10-01 08:34:25 +00:00
|
|
|
'libplatform/default-platform-unittest.cc',
|
|
|
|
'libplatform/task-queue-unittest.cc',
|
|
|
|
'libplatform/worker-thread-unittest.cc',
|
2015-10-08 13:49:19 +00:00
|
|
|
'heap/bitmap-unittest.cc',
|
2014-10-01 08:34:25 +00:00
|
|
|
'heap/gc-idle-time-handler-unittest.cc',
|
2016-03-29 12:51:43 +00:00
|
|
|
'heap/gc-tracer-unittest.cc',
|
2015-07-07 11:37:44 +00:00
|
|
|
'heap/memory-reducer-unittest.cc',
|
2015-06-15 08:32:52 +00:00
|
|
|
'heap/heap-unittest.cc',
|
2015-09-25 14:49:07 +00:00
|
|
|
'heap/scavenge-job-unittest.cc',
|
2016-02-08 08:51:02 +00:00
|
|
|
'heap/slot-set-unittest.cc',
|
2015-11-18 10:54:00 +00:00
|
|
|
'locked-queue-unittest.cc',
|
2014-10-01 08:34:25 +00:00
|
|
|
'run-all-unittests.cc',
|
|
|
|
'test-utils.h',
|
|
|
|
'test-utils.cc',
|
2016-01-05 18:06:34 +00:00
|
|
|
'wasm/ast-decoder-unittest.cc',
|
2016-02-29 18:41:28 +00:00
|
|
|
'wasm/decoder-unittest.cc',
|
2016-01-05 18:06:34 +00:00
|
|
|
'wasm/encoder-unittest.cc',
|
2016-04-21 10:14:34 +00:00
|
|
|
'wasm/leb-helper-unittest.cc',
|
2016-01-25 10:27:29 +00:00
|
|
|
'wasm/loop-assignment-analysis-unittest.cc',
|
2016-01-05 18:06:34 +00:00
|
|
|
'wasm/module-decoder-unittest.cc',
|
2016-04-13 21:55:52 +00:00
|
|
|
'wasm/switch-logic-unittest.cc',
|
2016-01-05 18:06:34 +00:00
|
|
|
'wasm/wasm-macro-gen-unittest.cc',
|
2014-10-01 08:34:25 +00:00
|
|
|
],
|
|
|
|
'conditions': [
|
|
|
|
['v8_target_arch=="arm"', {
|
|
|
|
'sources': [ ### gcmole(arch:arm) ###
|
|
|
|
'compiler/arm/instruction-selector-arm-unittest.cc',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
['v8_target_arch=="arm64"', {
|
|
|
|
'sources': [ ### gcmole(arch:arm64) ###
|
|
|
|
'compiler/arm64/instruction-selector-arm64-unittest.cc',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
['v8_target_arch=="ia32"', {
|
|
|
|
'sources': [ ### gcmole(arch:ia32) ###
|
|
|
|
'compiler/ia32/instruction-selector-ia32-unittest.cc',
|
|
|
|
],
|
|
|
|
}],
|
2016-04-11 06:35:32 +00:00
|
|
|
['v8_target_arch=="mips"', {
|
|
|
|
'sources': [ ### gcmole(arch:mips) ###
|
|
|
|
'compiler/mips/instruction-selector-mips-unittest.cc',
|
|
|
|
],
|
|
|
|
}],
|
2014-10-02 15:48:48 +00:00
|
|
|
['v8_target_arch=="mipsel"', {
|
|
|
|
'sources': [ ### gcmole(arch:mipsel) ###
|
|
|
|
'compiler/mips/instruction-selector-mips-unittest.cc',
|
|
|
|
],
|
|
|
|
}],
|
2016-04-11 06:35:32 +00:00
|
|
|
['v8_target_arch=="mips64"', {
|
|
|
|
'sources': [ ### gcmole(arch:mips64) ###
|
|
|
|
'compiler/mips64/instruction-selector-mips64-unittest.cc',
|
|
|
|
],
|
|
|
|
}],
|
2014-11-19 15:44:39 +00:00
|
|
|
['v8_target_arch=="mips64el"', {
|
|
|
|
'sources': [ ### gcmole(arch:mips64el) ###
|
|
|
|
'compiler/mips64/instruction-selector-mips64-unittest.cc',
|
|
|
|
],
|
|
|
|
}],
|
2014-10-01 08:34:25 +00:00
|
|
|
['v8_target_arch=="x64"', {
|
|
|
|
'sources': [ ### gcmole(arch:x64) ###
|
|
|
|
'compiler/x64/instruction-selector-x64-unittest.cc',
|
|
|
|
],
|
|
|
|
}],
|
2015-01-16 07:42:00 +00:00
|
|
|
['v8_target_arch=="ppc" or v8_target_arch=="ppc64"', {
|
|
|
|
'sources': [ ### gcmole(arch:ppc) ###
|
|
|
|
'compiler/ppc/instruction-selector-ppc-unittest.cc',
|
|
|
|
],
|
|
|
|
}],
|
2016-03-15 18:07:43 +00:00
|
|
|
['v8_target_arch=="s390" or v8_target_arch=="s390x"', {
|
|
|
|
'sources': [ ### gcmole(arch:s390) ###
|
|
|
|
'compiler/s390/instruction-selector-s390-unittest.cc',
|
|
|
|
],
|
|
|
|
}],
|
2015-04-30 07:50:22 +00:00
|
|
|
['OS=="aix"', {
|
|
|
|
'ldflags': [ '-Wl,-bbigtoc' ],
|
|
|
|
}],
|
2014-10-01 08:34:25 +00:00
|
|
|
['component=="shared_library"', {
|
|
|
|
# compiler-unittests can't be built against a shared library, so we
|
|
|
|
# need to depend on the underlying static target in that case.
|
2015-03-30 14:54:22 +00:00
|
|
|
'dependencies': ['../../tools/gyp/v8.gyp:v8_maybe_snapshot'],
|
2014-10-01 08:34:25 +00:00
|
|
|
}, {
|
|
|
|
'dependencies': ['../../tools/gyp/v8.gyp:v8'],
|
|
|
|
}],
|
|
|
|
['os_posix == 1', {
|
|
|
|
# TODO(svenpanne): This is a temporary work-around to fix the warnings
|
|
|
|
# that show up because we use -std=gnu++0x instead of -std=c++11.
|
|
|
|
'cflags!': [
|
|
|
|
'-pedantic',
|
|
|
|
],
|
|
|
|
'direct_dependent_settings': {
|
|
|
|
'cflags!': [
|
|
|
|
'-pedantic',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
2015-10-05 09:48:25 +00:00
|
|
|
'conditions': [
|
|
|
|
['test_isolation_mode != "noop"', {
|
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': 'unittests_run',
|
|
|
|
'type': 'none',
|
|
|
|
'dependencies': [
|
|
|
|
'unittests',
|
|
|
|
],
|
|
|
|
'includes': [
|
|
|
|
'../../build/isolate.gypi',
|
|
|
|
],
|
|
|
|
'sources': [
|
|
|
|
'unittests.isolate',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
2014-10-01 08:34:25 +00:00
|
|
|
}
|