summaryrefslogtreecommitdiff
path: root/deps/v8/test/cctest/BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/cctest/BUILD.gn')
-rw-r--r--deps/v8/test/cctest/BUILD.gn125
1 files changed, 73 insertions, 52 deletions
diff --git a/deps/v8/test/cctest/BUILD.gn b/deps/v8/test/cctest/BUILD.gn
index 59965d6e0c..3451d833ed 100644
--- a/deps/v8/test/cctest/BUILD.gn
+++ b/deps/v8/test/cctest/BUILD.gn
@@ -91,38 +91,6 @@ v8_source_set("cctest_sources") {
"../common/value-helper.h",
"cctest-utils.h",
"collector.h",
- "compiler/codegen-tester.cc",
- "compiler/codegen-tester.h",
- "compiler/function-tester.cc",
- "compiler/function-tester.h",
- "compiler/test-atomic-load-store-codegen.cc",
- "compiler/test-basic-block-profiler.cc",
- "compiler/test-branch-combine.cc",
- "compiler/test-calls-with-arraylike-or-spread.cc",
- "compiler/test-code-assembler.cc",
- "compiler/test-code-generator.cc",
- "compiler/test-concurrent-shared-function-info.cc",
- "compiler/test-gap-resolver.cc",
- "compiler/test-graph-visualizer.cc",
- "compiler/test-instruction-scheduler.cc",
- "compiler/test-instruction.cc",
- "compiler/test-js-constant-cache.cc",
- "compiler/test-js-context-specialization.cc",
- "compiler/test-js-typed-lowering.cc",
- "compiler/test-jump-threading.cc",
- "compiler/test-linkage.cc",
- "compiler/test-loop-analysis.cc",
- "compiler/test-machine-operator-reducer.cc",
- "compiler/test-node.cc",
- "compiler/test-operator.cc",
- "compiler/test-representation-change.cc",
- "compiler/test-run-calls-to-external-references.cc",
- "compiler/test-run-load-store.cc",
- "compiler/test-run-machops.cc",
- "compiler/test-run-stackcheck.cc",
- "compiler/test-run-unwinding-info.cc",
- "compiler/test-run-variables.cc",
- "compiler/test-verify-type.cc",
"expression-type-collector-macros.h",
"feedback-vector-helper.h",
"heap/heap-tester.h",
@@ -150,9 +118,6 @@ v8_source_set("cctest_sources") {
"print-extension.h",
"profiler-extension.cc",
"profiler-extension.h",
- "setup-isolate-for-tests.cc",
- "setup-isolate-for-tests.h",
- "test-accessor-assembler.cc",
"test-accessors.cc",
"test-allocation.cc",
"test-api-array-buffer.cc",
@@ -161,12 +126,10 @@ v8_source_set("cctest_sources") {
"test-api-typed-array.cc",
"test-api.cc",
"test-api.h",
- "test-code-stub-assembler.cc",
"test-constantpool.cc",
"test-cpu-profiler.cc",
"test-debug-helper.cc",
"test-debug.cc",
- "test-descriptor-array.cc",
"test-disasm-regex-helper.cc",
"test-disasm-regex-helper.h",
"test-field-type-tracking.cc",
@@ -184,12 +147,11 @@ v8_source_set("cctest_sources") {
"test-property-details.cc",
"test-ptr-compr-cage.cc",
"test-random-number-generator.cc",
+ "test-regexp.cc",
"test-sampler-api.cc",
- "test-serialize.cc",
"test-shared-strings.cc",
"test-smi-lexicographic-compare.cc",
"test-strings.cc",
- "test-swiss-name-dictionary-csa.cc",
"test-swiss-name-dictionary-infra.cc",
"test-swiss-name-dictionary.cc",
"test-trace-event.cc",
@@ -201,13 +163,58 @@ v8_source_set("cctest_sources") {
"test-usecounters.cc",
"test-utils.cc",
"test-verifiers.cc",
- "torque/test-torque.cc",
"trace-extension.cc",
"trace-extension.h",
]
+ if (v8_enable_turbofan) {
+ sources += [
+ "compiler/codegen-tester.cc",
+ "compiler/codegen-tester.h",
+ "compiler/function-tester.cc",
+ "compiler/function-tester.h",
+ "compiler/test-atomic-load-store-codegen.cc",
+ "compiler/test-basic-block-profiler.cc",
+ "compiler/test-branch-combine.cc",
+ "compiler/test-calls-with-arraylike-or-spread.cc",
+ "compiler/test-code-assembler.cc",
+ "compiler/test-code-generator.cc",
+ "compiler/test-concurrent-shared-function-info.cc",
+ "compiler/test-gap-resolver.cc",
+ "compiler/test-graph-visualizer.cc",
+ "compiler/test-instruction-scheduler.cc",
+ "compiler/test-instruction.cc",
+ "compiler/test-js-constant-cache.cc",
+ "compiler/test-js-context-specialization.cc",
+ "compiler/test-js-typed-lowering.cc",
+ "compiler/test-jump-threading.cc",
+ "compiler/test-linkage.cc",
+ "compiler/test-loop-analysis.cc",
+ "compiler/test-machine-operator-reducer.cc",
+ "compiler/test-node.cc",
+ "compiler/test-operator.cc",
+ "compiler/test-representation-change.cc",
+ "compiler/test-run-calls-to-external-references.cc",
+ "compiler/test-run-load-store.cc",
+ "compiler/test-run-machops.cc",
+ "compiler/test-run-stackcheck.cc",
+ "compiler/test-run-unwinding-info.cc",
+ "compiler/test-run-variables.cc",
+ "compiler/test-verify-type.cc",
+ "setup-isolate-for-tests.cc",
+ "setup-isolate-for-tests.h",
+ "test-accessor-assembler.cc",
+ "test-code-stub-assembler.cc",
+ "test-descriptor-array.cc",
+ "test-serialize.cc",
+ "test-swiss-name-dictionary-csa.cc",
+ "torque/test-torque.cc",
+ ]
+ }
+
if (v8_current_cpu == "arm") {
- sources += [ ### gcmole(arch:arm) ###
+ sources += [
+ ### gcmole(arm) ###
"assembler-helper-arm.cc",
"assembler-helper-arm.h",
"test-assembler-arm.cc",
@@ -215,7 +222,8 @@ v8_source_set("cctest_sources") {
"test-sync-primitives-arm.cc",
]
} else if (v8_current_cpu == "arm64") {
- sources += [ ### gcmole(arch:arm64) ###
+ sources += [
+ ### gcmole(arm64) ###
"test-assembler-arm64.cc",
"test-fuzz-arm64.cc",
"test-javascript-arm64.cc",
@@ -228,48 +236,60 @@ v8_source_set("cctest_sources") {
sources += [ "test-stack-unwinding-win64.cc" ]
}
} else if (v8_current_cpu == "x86") {
- sources += [ ### gcmole(arch:ia32) ###
+ sources += [
+ ### gcmole(ia32) ###
"test-assembler-ia32.cc",
"test-log-stack-tracer.cc",
]
} else if (v8_current_cpu == "mips64") {
- sources += [ ### gcmole(arch:mips64) ###
+ sources += [
+ ### gcmole(mips64) ###
"test-assembler-mips64.cc",
"test-macro-assembler-mips64.cc",
]
} else if (v8_current_cpu == "mips64el") {
- sources += [ ### gcmole(arch:mips64el) ###
+ sources += [
+ ### gcmole(mips64el) ###
"test-assembler-mips64.cc",
"test-macro-assembler-mips64.cc",
]
} else if (v8_current_cpu == "x64") {
sources += [
- ### gcmole(arch:x64) ###
+ ### gcmole(x64) ###
"test-log-stack-tracer.cc",
]
if (is_win) {
sources += [ "test-stack-unwinding-win64.cc" ]
}
} else if (v8_current_cpu == "ppc" || v8_current_cpu == "ppc64") {
- sources += [ "test-assembler-ppc.cc" ] ### gcmole(arch:ppc) ###
+ sources += [
+ ### gcmole(ppc) ###
+ "test-assembler-ppc.cc",
+ ]
} else if (v8_current_cpu == "s390" || v8_current_cpu == "s390x") {
- sources += [ "test-assembler-s390.cc" ] ### gcmole(arch:s390) ###
+ sources += [
+ ### gcmole(s390) ###
+ "test-assembler-s390.cc",
+ ]
} else if (v8_current_cpu == "riscv64") {
- sources += [ ### gcmole(arch:riscv64) ###
+ sources += [
+ ### gcmole(riscv64) ###
"test-assembler-riscv64.cc",
"test-helper-riscv64.cc",
"test-macro-assembler-riscv64.cc",
"test-simple-riscv64.cc",
]
} else if (v8_current_cpu == "riscv32") {
- sources += [ ### gcmole(arch:riscv32) ###
+ sources += [
+ ### gcmole(riscv32) ###
"test-assembler-riscv32.cc",
"test-helper-riscv32.cc",
"test-macro-assembler-riscv32.cc",
"test-simple-riscv32.cc",
]
} else if (v8_current_cpu == "loong64") {
- sources += [ ### gcmole(arch:loong64) ###
+ sources += [
+ ### gcmole(loong64) ###
"test-assembler-loong64.cc",
"test-macro-assembler-loong64.cc",
]
@@ -352,11 +372,12 @@ v8_source_set("cctest_sources") {
deps = [
"../..:run_torque",
"../..:v8_shared_internal_headers",
+ "../..:v8_tracing",
]
if (v8_enable_i18n_support) {
defines += [ "V8_INTL_SUPPORT" ]
- public_deps += [ "//third_party/icu" ]
+ public_deps += [ v8_icu_path ]
}
cflags = []