| 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 | |
| 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/iterator-unittest.cc", | |
| 18 "base/logging-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/live-range-unittest.cc", | |
| 56 "compiler/liveness-analyzer-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-rpo-unittest.cc", | |
| 72 "compiler/scheduler-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 "heap/bitmap-unittest.cc", | |
| 82 "heap/gc-idle-time-handler-unittest.cc", | |
| 83 "heap/gc-tracer-unittest.cc", | |
| 84 "heap/heap-unittest.cc", | |
| 85 "heap/memory-reducer-unittest.cc", | |
| 86 "heap/scavenge-job-unittest.cc", | |
| 87 "heap/slot-set-unittest.cc", | |
| 88 "interpreter/bytecode-array-builder-unittest.cc", | |
| 89 "interpreter/bytecode-array-iterator-unittest.cc", | |
| 90 "interpreter/bytecode-array-writer-unittest.cc", | |
| 91 "interpreter/bytecode-peephole-optimizer-unittest.cc", | |
| 92 "interpreter/bytecode-pipeline-unittest.cc", | |
| 93 "interpreter/bytecode-register-allocator-unittest.cc", | |
| 94 "interpreter/bytecodes-unittest.cc", | |
| 95 "interpreter/constant-array-builder-unittest.cc", | |
| 96 "interpreter/interpreter-assembler-unittest.cc", | |
| 97 "interpreter/interpreter-assembler-unittest.h", | |
| 98 "interpreter/source-position-table-unittest.cc", | |
| 99 "libplatform/default-platform-unittest.cc", | |
| 100 "libplatform/task-queue-unittest.cc", | |
| 101 "libplatform/worker-thread-unittest.cc", | |
| 102 "locked-queue-unittest.cc", | |
| 103 "run-all-unittests.cc", | |
| 104 "test-utils.cc", | |
| 105 "test-utils.h", | |
| 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 } else if (v8_target_arch == "arm64") { | |
| 119 sources += [ "compiler/arm64/instruction-selector-arm64-unittest.cc" ] | |
| 120 } else if (v8_target_arch == "ia32") { | |
| 121 sources += [ "compiler/ia32/instruction-selector-ia32-unittest.cc" ] | |
| 122 } else if (v8_target_arch == "mips") { | |
| 123 sources += [ "compiler/mips/instruction-selector-mips-unittest.cc" ] | |
| 124 } else if (v8_target_arch == "mipsel") { | |
| 125 sources += [ "compiler/mipsel/instruction-selector-mipsel-unittest.cc" ] | |
| 126 } else if (v8_target_arch == "mips64") { | |
| 127 sources += [ "compiler/mips64/instruction-selector-mips64-unittest.cc" ] | |
| 128 } else if (v8_target_arch == "mips64el") { | |
| 129 sources += [ "compiler/mips64el/instruction-selector-mips64el-unittest.cc" ] | |
| 130 } else if (v8_target_arch == "x64") { | |
| 131 sources += [ "compiler/x64/instruction-selector-x64-unittest.cc" ] | |
| 132 } else if (v8_target_arch == "ppc" || v8_target_arch == "ppc64") { | |
| 133 sources += [ "compiler/ppc/instruction-selector-ppc-unittest.cc" ] | |
| 134 } else if (v8_target_arch == "s390" || v8_target_arch == "s390x") { | |
| 135 sources += [ "compiler/s390/instruction-selector-s390-unittest.cc" ] | |
| 136 } | |
| 137 | |
| 138 configs -= [ "//build/config/compiler:chromium_code" ] | |
| 139 configs += [ "//build/config/compiler:no_chromium_code" ] | |
| 140 configs += [ | |
| 141 "../..:internal_config_base", | |
| 142 "../..:features", | |
| 143 "../..:toolchain", | |
| 144 ] | |
| 145 | |
| 146 # TODO(machenbach): Translate from gyp. | |
| 147 #['OS=="aix"', { | |
| 148 # 'ldflags': [ '-Wl,-bbigtoc' ], | |
| 149 #}], | |
| 150 | |
| 151 deps = [ | |
| 152 "../..:v8_libplatform", | |
| 153 "//build/config/sanitizers:deps", | |
| 154 "//build/win:default_exe_manifest", | |
| 155 "//testing/gmock", | |
| 156 "//testing/gtest", | |
| 157 ] | |
| 158 | |
| 159 if (is_component_build) { | |
| 160 # compiler-unittests can't be built against a shared library, so we | |
| 161 # need to depend on the underlying static target in that case. | |
| 162 deps += [ "../..:v8_maybe_snapshot" ] | |
| 163 } else { | |
| 164 deps += [ "../..:v8" ] | |
| 165 } | |
| 166 } | |
| OLD | NEW |