OLD | NEW |
---|---|
(Empty) | |
1 # Copyright 2016 The V8 project 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 | |
Michael Achenbach
2016/05/25 09:12:53
This ports https://code.google.com/p/chromium/code
| |
5 import("../../gni/v8.gni") | |
6 | |
7 executable("unittests") { | |
8 testonly = true | |
9 | |
10 sources = [ | |
11 "base/atomic-utils-unittest.cc", | |
12 "base/bits-unittest.cc", | |
13 "base/cpu-unittest.cc", | |
14 "base/division-by-constant-unittest.cc", | |
15 "base/flags-unittest.cc", | |
16 "base/functional-unittest.cc", | |
17 "base/logging-unittest.cc", | |
18 "base/iterator-unittest.cc", | |
19 "base/platform/condition-variable-unittest.cc", | |
20 "base/platform/mutex-unittest.cc", | |
21 "base/platform/platform-unittest.cc", | |
22 "base/platform/semaphore-unittest.cc", | |
23 "base/platform/time-unittest.cc", | |
24 "base/sys-info-unittest.cc", | |
25 "base/utils/random-number-generator-unittest.cc", | |
26 "cancelable-tasks-unittest.cc", | |
27 "char-predicates-unittest.cc", | |
28 "compiler/branch-elimination-unittest.cc", | |
29 "compiler/coalesced-live-ranges-unittest.cc", | |
30 "compiler/common-operator-reducer-unittest.cc", | |
31 "compiler/common-operator-unittest.cc", | |
32 "compiler/compiler-test-utils.h", | |
33 "compiler/control-equivalence-unittest.cc", | |
34 "compiler/control-flow-optimizer-unittest.cc", | |
35 "compiler/dead-code-elimination-unittest.cc", | |
36 "compiler/diamond-unittest.cc", | |
37 "compiler/effect-control-linearizer-unittest.cc", | |
38 "compiler/escape-analysis-unittest.cc", | |
39 "compiler/graph-reducer-unittest.cc", | |
40 "compiler/graph-reducer-unittest.h", | |
41 "compiler/graph-trimmer-unittest.cc", | |
42 "compiler/graph-unittest.cc", | |
43 "compiler/graph-unittest.h", | |
44 "compiler/instruction-selector-unittest.cc", | |
45 "compiler/instruction-selector-unittest.h", | |
46 "compiler/instruction-sequence-unittest.cc", | |
47 "compiler/instruction-sequence-unittest.h", | |
48 "compiler/int64-lowering-unittest.cc", | |
49 "compiler/js-builtin-reducer-unittest.cc", | |
50 "compiler/js-create-lowering-unittest.cc", | |
51 "compiler/js-intrinsic-lowering-unittest.cc", | |
52 "compiler/js-operator-unittest.cc", | |
53 "compiler/js-typed-lowering-unittest.cc", | |
54 "compiler/linkage-tail-call-unittest.cc", | |
55 "compiler/liveness-analyzer-unittest.cc", | |
56 "compiler/live-range-unittest.cc", | |
57 "compiler/load-elimination-unittest.cc", | |
58 "compiler/loop-peeling-unittest.cc", | |
59 "compiler/machine-operator-reducer-unittest.cc", | |
60 "compiler/machine-operator-unittest.cc", | |
61 "compiler/move-optimizer-unittest.cc", | |
62 "compiler/node-cache-unittest.cc", | |
63 "compiler/node-matchers-unittest.cc", | |
64 "compiler/node-properties-unittest.cc", | |
65 "compiler/node-test-utils.cc", | |
66 "compiler/node-test-utils.h", | |
67 "compiler/node-unittest.cc", | |
68 "compiler/opcodes-unittest.cc", | |
69 "compiler/register-allocator-unittest.cc", | |
70 "compiler/schedule-unittest.cc", | |
71 "compiler/scheduler-unittest.cc", | |
72 "compiler/scheduler-rpo-unittest.cc", | |
73 "compiler/simplified-operator-reducer-unittest.cc", | |
74 "compiler/simplified-operator-unittest.cc", | |
75 "compiler/state-values-utils-unittest.cc", | |
76 "compiler/tail-call-optimization-unittest.cc", | |
77 "compiler/typer-unittest.cc", | |
78 "compiler/value-numbering-reducer-unittest.cc", | |
79 "compiler/zone-pool-unittest.cc", | |
80 "counters-unittest.cc", | |
81 "interpreter/bytecodes-unittest.cc", | |
82 "interpreter/bytecode-array-builder-unittest.cc", | |
83 "interpreter/bytecode-array-iterator-unittest.cc", | |
84 "interpreter/bytecode-array-writer-unittest.cc", | |
85 "interpreter/bytecode-peephole-optimizer-unittest.cc", | |
86 "interpreter/bytecode-register-allocator-unittest.cc", | |
87 "interpreter/bytecode-pipeline-unittest.cc", | |
88 "interpreter/constant-array-builder-unittest.cc", | |
89 "interpreter/interpreter-assembler-unittest.cc", | |
90 "interpreter/interpreter-assembler-unittest.h", | |
91 "interpreter/source-position-table-unittest.cc", | |
92 "libplatform/default-platform-unittest.cc", | |
93 "libplatform/task-queue-unittest.cc", | |
94 "libplatform/worker-thread-unittest.cc", | |
95 "heap/bitmap-unittest.cc", | |
vogelheim
2016/05/25 09:30:58
This looks like mostly-alphabetically sorted, in w
Michael Achenbach
2016/05/25 09:55:37
Done. Was c/p from gyp.
| |
96 "heap/gc-idle-time-handler-unittest.cc", | |
97 "heap/gc-tracer-unittest.cc", | |
98 "heap/memory-reducer-unittest.cc", | |
99 "heap/heap-unittest.cc", | |
100 "heap/scavenge-job-unittest.cc", | |
101 "heap/slot-set-unittest.cc", | |
102 "locked-queue-unittest.cc", | |
103 "run-all-unittests.cc", | |
104 "test-utils.h", | |
105 "test-utils.cc", | |
106 "wasm/ast-decoder-unittest.cc", | |
107 "wasm/decoder-unittest.cc", | |
108 "wasm/encoder-unittest.cc", | |
109 "wasm/leb-helper-unittest.cc", | |
110 "wasm/loop-assignment-analysis-unittest.cc", | |
111 "wasm/module-decoder-unittest.cc", | |
112 "wasm/switch-logic-unittest.cc", | |
113 "wasm/wasm-macro-gen-unittest.cc", | |
114 ] | |
115 | |
116 if (v8_target_arch == "arm") { | |
117 sources += [ "compiler/arm/instruction-selector-arm-unittest.cc" ] | |
118 } | |
119 if (v8_target_arch == "arm64") { | |
vogelheim
2016/05/25 09:30:58
[here & below] else if ?
(Readability nitpick, re
Michael Achenbach
2016/05/25 09:55:37
Done. Was c/p from the gyp structure. Not sure if
| |
120 sources += [ "compiler/arm64/instruction-selector-arm64-unittest.cc" ] | |
121 } | |
122 if (v8_target_arch == "ia32") { | |
123 sources += [ "compiler/ia32/instruction-selector-ia32-unittest.cc" ] | |
124 } | |
125 if (v8_target_arch == "mips") { | |
126 sources += [ "compiler/mips/instruction-selector-mips-unittest.cc" ] | |
127 } | |
128 if (v8_target_arch == "mipsel") { | |
129 sources += [ "compiler/mipsel/instruction-selector-mipsel-unittest.cc" ] | |
130 } | |
131 if (v8_target_arch == "mips64") { | |
132 sources += [ "compiler/mips64/instruction-selector-mips64-unittest.cc" ] | |
133 } | |
134 if (v8_target_arch == "mips64el") { | |
135 sources += [ "compiler/mips64el/instruction-selector-mips64el-unittest.cc" ] | |
136 } | |
137 if (v8_target_arch == "x64") { | |
138 sources += [ "compiler/x64/instruction-selector-x64-unittest.cc" ] | |
139 } | |
140 if (v8_target_arch == "ppc" || v8_target_arch == "ppc64") { | |
141 sources += [ "compiler/ppc/instruction-selector-ppc-unittest.cc" ] | |
142 } | |
143 if (v8_target_arch == "s390" || v8_target_arch == "s390x") { | |
144 sources += [ "compiler/s390/instruction-selector-s390-unittest.cc" ] | |
145 } | |
146 | |
147 configs -= [ "//build/config/compiler:chromium_code" ] | |
148 configs += [ "//build/config/compiler:no_chromium_code" ] | |
149 configs += [ | |
150 "../..:internal_config_base", | |
151 "../..:features", | |
152 "../..:toolchain", | |
153 ] | |
154 | |
155 # TODO(machenbach): Translate from gyp. | |
156 #['OS=="aix"', { | |
157 # 'ldflags': [ '-Wl,-bbigtoc' ], | |
158 #}], | |
159 | |
160 deps = [ | |
161 "../..:v8_libplatform", | |
162 "//build/config/sanitizers:deps", | |
163 "//build/win:default_exe_manifest", | |
vogelheim
2016/05/25 09:30:58
"win:default_exe_manifest" _sounds_ like something
Michael Achenbach
2016/05/25 09:55:36
That's included unconditionally for all exes. The
| |
164 "//testing/gmock", | |
165 "//testing/gtest", | |
166 ] | |
167 | |
168 if (is_component_build) { | |
169 # compiler-unittests can't be built against a shared library, so we | |
170 # need to depend on the underlying static target in that case. | |
171 # TODO(machenbach): Translate from gyp. | |
172 # 'dependencies': ['../../src/v8.gyp:v8_maybe_snapshot'], | |
173 } else { | |
174 deps += [ "../..:v8" ] | |
175 } | |
176 } | |
OLD | NEW |