2016-06-01 14:14:28 +00:00
|
|
|
# Copyright 2016 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.
|
|
|
|
|
|
|
|
import("../../gni/v8.gni")
|
|
|
|
|
2016-06-14 10:07:22 +00:00
|
|
|
v8_executable("cctest") {
|
2016-06-01 14:14:28 +00:00
|
|
|
testonly = true
|
2017-09-24 20:50:48 +00:00
|
|
|
deps = [
|
|
|
|
":cctest_sources",
|
|
|
|
]
|
2018-03-26 13:12:27 +00:00
|
|
|
|
|
|
|
data_deps = [
|
|
|
|
"../../tools:v8_testrunner",
|
|
|
|
]
|
|
|
|
|
|
|
|
data = [
|
|
|
|
"testcfg.py",
|
|
|
|
"cctest.status",
|
|
|
|
"interpreter/bytecode_expectations/",
|
|
|
|
]
|
|
|
|
|
2017-09-24 20:50:48 +00:00
|
|
|
configs = [
|
|
|
|
"../..:external_config",
|
|
|
|
"../..:internal_config_base",
|
|
|
|
]
|
|
|
|
|
|
|
|
ldflags = []
|
|
|
|
|
|
|
|
# TODO(machenbach): Translate from gyp.
|
|
|
|
#["OS=="aix"", {
|
|
|
|
# "ldflags": [ "-Wl,-bbigtoc" ],
|
|
|
|
#}],
|
|
|
|
|
|
|
|
# crbug.com/676417: Suppress symbol import warning from linker.
|
|
|
|
if (is_win && is_component_build) {
|
|
|
|
ldflags += [
|
|
|
|
"/ignore:4217",
|
|
|
|
"/ignore:4049",
|
|
|
|
]
|
|
|
|
remove_configs = [ "//build/config/win:default_incremental_linking" ]
|
|
|
|
configs += [ "//build/config/win:no_incremental_linking" ]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
v8_source_set("cctest_sources") {
|
|
|
|
testonly = true
|
2016-06-01 14:14:28 +00:00
|
|
|
|
2016-09-14 19:02:12 +00:00
|
|
|
sources = [
|
|
|
|
"$target_gen_dir/resources.cc",
|
2016-09-21 11:44:10 +00:00
|
|
|
|
|
|
|
### gcmole(all) ###
|
Reland "[turboassembler] Introduce hard-abort mode"
This is a reland of a462a7854a081f4f34bb4c112ee33f3d69efa309
Original change's description:
> [turboassembler] Introduce hard-abort mode
>
> For checks and assertions (mostly for debug code, like stack alignment
> or zero extension), we had two modes: Emit a call to the {Abort}
> runtime function (the default), and emit a debug break (used for
> testing, enabled via --trap-on-abort).
> In wasm, where we cannot just call a runtime function because code must
> be isolate independent, we always used the trap-on-abort behaviour.
> This causes problems for our fuzzers, which do not catch SIGTRAP, and
> hence do not detect debug code failures.
>
> This CL introduces a third mode ("hard abort"), which calls a C
> function via {ExternalReference}. The C function still outputs the
> abort reason, but does not print the stack trace. It then aborts via
> "OS::Abort", just like the runtime function.
> This will allow fuzzers to detect the crash and even find a nice error
> message.
>
> Even though this looks like a lot of code churn, it is actually not.
> Most added lines are new tests, and other changes are minimal.
>
> R=mstarzinger@chromium.org
>
> Bug: chromium:863799
> Change-Id: I77c58ff72db552d49014614436259ccfb49ba87b
> Reviewed-on: https://chromium-review.googlesource.com/1142163
> Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
> Reviewed-by: Michael Starzinger <mstarzinger@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#54592}
Bug: chromium:863799
Change-Id: I7729a47b4823a982a8e201df36520aa2b6ef5326
Reviewed-on: https://chromium-review.googlesource.com/1146100
Reviewed-by: Michael Starzinger <mstarzinger@chromium.org>
Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#54656}
2018-07-24 14:12:47 +00:00
|
|
|
"../common/assembler-tester.h",
|
|
|
|
"../common/wasm/flag-utils.h",
|
|
|
|
"../common/wasm/test-signatures.h",
|
|
|
|
"../common/wasm/wasm-macro-gen.h",
|
2016-09-14 19:02:12 +00:00
|
|
|
"cctest.cc",
|
2016-09-19 10:58:59 +00:00
|
|
|
"cctest.h",
|
2016-09-14 19:02:12 +00:00
|
|
|
"compiler/c-signature.h",
|
2016-09-19 10:58:59 +00:00
|
|
|
"compiler/call-tester.h",
|
2016-09-14 19:02:12 +00:00
|
|
|
"compiler/code-assembler-tester.h",
|
|
|
|
"compiler/codegen-tester.cc",
|
|
|
|
"compiler/codegen-tester.h",
|
|
|
|
"compiler/function-tester.cc",
|
|
|
|
"compiler/function-tester.h",
|
|
|
|
"compiler/graph-builder-tester.h",
|
|
|
|
"compiler/test-basic-block-profiler.cc",
|
|
|
|
"compiler/test-branch-combine.cc",
|
|
|
|
"compiler/test-code-assembler.cc",
|
2017-07-13 09:55:16 +00:00
|
|
|
"compiler/test-code-generator.cc",
|
2016-09-14 19:02:12 +00:00
|
|
|
"compiler/test-gap-resolver.cc",
|
|
|
|
"compiler/test-graph-visualizer.cc",
|
2018-03-13 13:50:00 +00:00
|
|
|
"compiler/test-instruction-scheduler.cc",
|
2016-09-14 19:02:12 +00:00
|
|
|
"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-multiple-return.cc",
|
|
|
|
"compiler/test-node.cc",
|
|
|
|
"compiler/test-operator.cc",
|
|
|
|
"compiler/test-representation-change.cc",
|
|
|
|
"compiler/test-run-bytecode-graph-builder.cc",
|
|
|
|
"compiler/test-run-calls-to-external-references.cc",
|
|
|
|
"compiler/test-run-deopt.cc",
|
|
|
|
"compiler/test-run-intrinsics.cc",
|
|
|
|
"compiler/test-run-jsbranches.cc",
|
|
|
|
"compiler/test-run-jscalls.cc",
|
|
|
|
"compiler/test-run-jsexceptions.cc",
|
|
|
|
"compiler/test-run-jsobjects.cc",
|
|
|
|
"compiler/test-run-jsops.cc",
|
|
|
|
"compiler/test-run-load-store.cc",
|
|
|
|
"compiler/test-run-machops.cc",
|
|
|
|
"compiler/test-run-native-calls.cc",
|
2018-01-16 09:06:23 +00:00
|
|
|
"compiler/test-run-retpoline.cc",
|
2016-09-14 19:02:12 +00:00
|
|
|
"compiler/test-run-stackcheck.cc",
|
2017-12-18 18:55:23 +00:00
|
|
|
"compiler/test-run-tail-calls.cc",
|
2016-09-14 19:02:12 +00:00
|
|
|
"compiler/test-run-unwinding-info.cc",
|
|
|
|
"compiler/test-run-variables.cc",
|
2017-10-18 10:13:34 +00:00
|
|
|
"compiler/value-helper.cc",
|
2016-09-19 10:58:59 +00:00
|
|
|
"compiler/value-helper.h",
|
|
|
|
"expression-type-collector-macros.h",
|
2016-09-14 19:02:12 +00:00
|
|
|
"gay-fixed.cc",
|
2016-09-19 10:58:59 +00:00
|
|
|
"gay-fixed.h",
|
2016-09-14 19:02:12 +00:00
|
|
|
"gay-precision.cc",
|
2016-09-19 10:58:59 +00:00
|
|
|
"gay-precision.h",
|
2016-09-14 19:02:12 +00:00
|
|
|
"gay-shortest.cc",
|
2016-09-19 10:58:59 +00:00
|
|
|
"gay-shortest.h",
|
2016-09-14 19:02:12 +00:00
|
|
|
"heap/heap-tester.h",
|
|
|
|
"heap/heap-utils.cc",
|
|
|
|
"heap/heap-utils.h",
|
|
|
|
"heap/test-alloc.cc",
|
|
|
|
"heap/test-array-buffer-tracker.cc",
|
|
|
|
"heap/test-compaction.cc",
|
2017-03-06 15:19:36 +00:00
|
|
|
"heap/test-concurrent-marking.cc",
|
2017-12-07 13:02:05 +00:00
|
|
|
"heap/test-embedder-tracing.cc",
|
2018-07-26 06:42:03 +00:00
|
|
|
"heap/test-external-string-tracker.cc",
|
2016-09-14 19:02:12 +00:00
|
|
|
"heap/test-heap.cc",
|
|
|
|
"heap/test-incremental-marking.cc",
|
2017-08-02 17:27:11 +00:00
|
|
|
"heap/test-invalidated-slots.cc",
|
2016-09-14 19:02:12 +00:00
|
|
|
"heap/test-lab.cc",
|
|
|
|
"heap/test-mark-compact.cc",
|
|
|
|
"heap/test-page-promotion.cc",
|
|
|
|
"heap/test-spaces.cc",
|
2018-04-19 15:34:13 +00:00
|
|
|
"heap/test-unmapper.cc",
|
2018-03-05 13:18:51 +00:00
|
|
|
"heap/test-weak-references.cc",
|
2016-09-14 19:02:12 +00:00
|
|
|
"interpreter/bytecode-expectations-printer.cc",
|
|
|
|
"interpreter/bytecode-expectations-printer.h",
|
|
|
|
"interpreter/interpreter-tester.cc",
|
2016-09-19 10:58:59 +00:00
|
|
|
"interpreter/interpreter-tester.h",
|
2016-09-14 19:02:12 +00:00
|
|
|
"interpreter/source-position-matcher.cc",
|
|
|
|
"interpreter/source-position-matcher.h",
|
|
|
|
"interpreter/test-bytecode-generator.cc",
|
|
|
|
"interpreter/test-interpreter-intrinsics.cc",
|
|
|
|
"interpreter/test-interpreter.cc",
|
|
|
|
"interpreter/test-source-positions.cc",
|
|
|
|
"libplatform/test-tracing.cc",
|
|
|
|
"libsampler/test-sampler.cc",
|
2016-11-18 14:56:32 +00:00
|
|
|
"parsing/test-parse-decision.cc",
|
2017-02-07 10:11:01 +00:00
|
|
|
"parsing/test-preparser.cc",
|
2016-09-16 13:59:40 +00:00
|
|
|
"parsing/test-scanner-streams.cc",
|
2016-09-19 16:50:29 +00:00
|
|
|
"parsing/test-scanner.cc",
|
2016-09-14 19:02:12 +00:00
|
|
|
"print-extension.cc",
|
2016-09-19 10:58:59 +00:00
|
|
|
"print-extension.h",
|
2016-09-14 19:02:12 +00:00
|
|
|
"profiler-extension.cc",
|
2016-09-19 10:58:59 +00:00
|
|
|
"profiler-extension.h",
|
2017-02-07 10:11:01 +00:00
|
|
|
"scope-test-helper.h",
|
2017-04-07 13:31:29 +00:00
|
|
|
"setup-isolate-for-tests.cc",
|
|
|
|
"setup-isolate-for-tests.h",
|
2016-09-14 19:02:12 +00:00
|
|
|
"test-access-checks.cc",
|
2016-11-16 14:25:51 +00:00
|
|
|
"test-accessor-assembler.cc",
|
2016-09-14 19:02:12 +00:00
|
|
|
"test-accessors.cc",
|
2017-08-01 01:41:13 +00:00
|
|
|
"test-allocation.cc",
|
2016-09-14 19:02:12 +00:00
|
|
|
"test-api-accessors.cc",
|
|
|
|
"test-api-interceptors.cc",
|
|
|
|
"test-api.cc",
|
|
|
|
"test-api.h",
|
|
|
|
"test-array-list.cc",
|
|
|
|
"test-atomicops.cc",
|
|
|
|
"test-bignum-dtoa.cc",
|
|
|
|
"test-bignum.cc",
|
|
|
|
"test-bit-vector.cc",
|
|
|
|
"test-circular-queue.cc",
|
|
|
|
"test-code-layout.cc",
|
|
|
|
"test-code-stub-assembler.cc",
|
|
|
|
"test-compiler.cc",
|
|
|
|
"test-constantpool.cc",
|
|
|
|
"test-conversions.cc",
|
|
|
|
"test-cpu-profiler.cc",
|
|
|
|
"test-date.cc",
|
|
|
|
"test-debug.cc",
|
|
|
|
"test-decls.cc",
|
|
|
|
"test-deoptimization.cc",
|
|
|
|
"test-dictionary.cc",
|
|
|
|
"test-diy-fp.cc",
|
|
|
|
"test-double.cc",
|
|
|
|
"test-dtoa.cc",
|
|
|
|
"test-elements-kind.cc",
|
2018-12-05 16:12:12 +00:00
|
|
|
"test-factory.cc",
|
2016-09-14 19:02:12 +00:00
|
|
|
"test-fast-dtoa.cc",
|
|
|
|
"test-feedback-vector.cc",
|
2016-09-19 10:58:59 +00:00
|
|
|
"test-feedback-vector.h",
|
2016-09-14 19:02:12 +00:00
|
|
|
"test-field-type-tracking.cc",
|
|
|
|
"test-fixed-dtoa.cc",
|
|
|
|
"test-flags.cc",
|
|
|
|
"test-func-name-inference.cc",
|
|
|
|
"test-global-handles.cc",
|
|
|
|
"test-global-object.cc",
|
2017-08-21 01:58:40 +00:00
|
|
|
"test-hashcode.cc",
|
2016-09-14 19:02:12 +00:00
|
|
|
"test-hashmap.cc",
|
|
|
|
"test-heap-profiler.cc",
|
2018-11-20 14:45:08 +00:00
|
|
|
"test-icache.cc",
|
2016-09-14 19:02:12 +00:00
|
|
|
"test-identity-map.cc",
|
|
|
|
"test-inobject-slack-tracking.cc",
|
2018-06-05 16:03:05 +00:00
|
|
|
"test-inspector.cc",
|
2017-06-29 22:28:00 +00:00
|
|
|
"test-intl.cc",
|
2018-10-11 12:56:18 +00:00
|
|
|
"test-js-weak-refs.cc",
|
2016-09-14 19:02:12 +00:00
|
|
|
"test-liveedit.cc",
|
|
|
|
"test-lockers.cc",
|
|
|
|
"test-log.cc",
|
2017-02-21 17:23:38 +00:00
|
|
|
"test-managed.cc",
|
2016-09-14 19:02:12 +00:00
|
|
|
"test-mementos.cc",
|
2016-09-20 23:38:58 +00:00
|
|
|
"test-modules.cc",
|
2016-09-14 19:02:12 +00:00
|
|
|
"test-object.cc",
|
2017-05-29 09:29:19 +00:00
|
|
|
"test-orderedhashtable.cc",
|
2016-09-14 19:02:12 +00:00
|
|
|
"test-parsing.cc",
|
|
|
|
"test-platform.cc",
|
|
|
|
"test-profile-generator.cc",
|
|
|
|
"test-random-number-generator.cc",
|
|
|
|
"test-regexp.cc",
|
|
|
|
"test-representation.cc",
|
2018-07-04 18:11:11 +00:00
|
|
|
"test-roots.cc",
|
2016-09-14 19:02:12 +00:00
|
|
|
"test-sampler-api.cc",
|
|
|
|
"test-serialize.cc",
|
2018-09-05 09:28:55 +00:00
|
|
|
"test-smi-lexicographic-compare.cc",
|
2016-09-14 19:02:12 +00:00
|
|
|
"test-strings.cc",
|
|
|
|
"test-strtod.cc",
|
|
|
|
"test-symbols.cc",
|
|
|
|
"test-thread-termination.cc",
|
|
|
|
"test-threads.cc",
|
|
|
|
"test-trace-event.cc",
|
2016-10-06 15:27:03 +00:00
|
|
|
"test-traced-value.cc",
|
2016-09-14 19:02:12 +00:00
|
|
|
"test-transitions.cc",
|
2017-07-28 07:01:59 +00:00
|
|
|
"test-transitions.h",
|
2016-09-14 19:02:12 +00:00
|
|
|
"test-typedarrays.cc",
|
|
|
|
"test-types.cc",
|
|
|
|
"test-unbound-queue.cc",
|
|
|
|
"test-unboxed-doubles.cc",
|
|
|
|
"test-unscopables-hidden-prototype.cc",
|
2018-11-22 15:23:05 +00:00
|
|
|
"test-unwinder.cc",
|
2016-09-14 19:02:12 +00:00
|
|
|
"test-usecounters.cc",
|
|
|
|
"test-utils.cc",
|
|
|
|
"test-version.cc",
|
|
|
|
"test-weakmaps.cc",
|
|
|
|
"test-weaksets.cc",
|
2018-05-13 10:10:44 +00:00
|
|
|
"torque/test-torque.cc",
|
2016-09-14 19:02:12 +00:00
|
|
|
"trace-extension.cc",
|
2016-09-19 10:58:59 +00:00
|
|
|
"trace-extension.h",
|
|
|
|
"types-fuzz.h",
|
2018-09-07 09:17:06 +00:00
|
|
|
"unicode-helpers.cc",
|
2017-02-07 10:11:01 +00:00
|
|
|
"unicode-helpers.h",
|
2017-08-07 11:40:21 +00:00
|
|
|
"wasm/test-c-wasm-entry.cc",
|
2018-08-07 10:33:50 +00:00
|
|
|
"wasm/test-jump-table-assembler.cc",
|
2016-09-14 19:02:12 +00:00
|
|
|
"wasm/test-run-wasm-64.cc",
|
|
|
|
"wasm/test-run-wasm-asmjs.cc",
|
2017-08-02 21:40:45 +00:00
|
|
|
"wasm/test-run-wasm-atomics.cc",
|
2018-08-25 01:32:25 +00:00
|
|
|
"wasm/test-run-wasm-atomics64.cc",
|
2016-09-14 19:02:12 +00:00
|
|
|
"wasm/test-run-wasm-interpreter.cc",
|
|
|
|
"wasm/test-run-wasm-js.cc",
|
|
|
|
"wasm/test-run-wasm-module.cc",
|
2018-01-25 22:40:32 +00:00
|
|
|
"wasm/test-run-wasm-sign-extension.cc",
|
2017-02-27 23:45:03 +00:00
|
|
|
"wasm/test-run-wasm-simd.cc",
|
2016-09-14 19:02:12 +00:00
|
|
|
"wasm/test-run-wasm.cc",
|
2017-09-14 17:34:15 +00:00
|
|
|
"wasm/test-streaming-compilation.cc",
|
2016-12-19 17:22:55 +00:00
|
|
|
"wasm/test-wasm-breakpoints.cc",
|
2017-11-08 23:33:46 +00:00
|
|
|
"wasm/test-wasm-codegen.cc",
|
2018-10-10 12:22:19 +00:00
|
|
|
"wasm/test-wasm-import-wrapper-cache.cc",
|
2017-02-21 18:21:31 +00:00
|
|
|
"wasm/test-wasm-interpreter-entry.cc",
|
2018-06-21 10:58:58 +00:00
|
|
|
"wasm/test-wasm-serialization.cc",
|
2018-07-05 09:17:35 +00:00
|
|
|
"wasm/test-wasm-shared-engine.cc",
|
2016-09-14 19:02:12 +00:00
|
|
|
"wasm/test-wasm-stack.cc",
|
|
|
|
"wasm/test-wasm-trap-position.cc",
|
2018-02-28 22:17:39 +00:00
|
|
|
"wasm/wasm-atomics-utils.h",
|
2017-09-01 12:57:34 +00:00
|
|
|
"wasm/wasm-run-utils.cc",
|
2016-09-14 19:02:12 +00:00
|
|
|
"wasm/wasm-run-utils.h",
|
|
|
|
]
|
2016-06-01 14:14:28 +00:00
|
|
|
|
2017-09-24 20:50:48 +00:00
|
|
|
if (use_jumbo_build) {
|
|
|
|
jumbo_excluded_sources = [
|
|
|
|
# TODO(mostynb@opera.com): figure out the jumbo issues with these source
|
|
|
|
# files, and include them in jumbo compilation units.
|
|
|
|
"interpreter/bytecode-expectations-printer.cc",
|
2017-09-25 19:01:15 +00:00
|
|
|
"interpreter/test-bytecode-generator.cc",
|
2017-09-24 20:50:48 +00:00
|
|
|
"test-api.cc",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2016-07-15 22:32:55 +00:00
|
|
|
if (v8_current_cpu == "arm") {
|
2016-09-21 11:44:10 +00:00
|
|
|
sources += [ ### gcmole(arch:arm) ###
|
Revert "Revert "[cctest] Clarify that tests for sync instructions are simulator specific""
This reverts commit 1feadfe81b7cc250df83cbf0b2fdfd17ac348cf8.
Reason for revert: Reland as bot stayed red after revert.
Original change's description:
> Revert "[cctest] Clarify that tests for sync instructions are simulator specific"
>
> This reverts commit 4013518fe3be92f0fbd043b09017f5eb8b8629d8.
>
> Reason for revert:
> https://build.chromium.org/p/client.v8.ports/builders/V8%20Linux%20-%20arm64%20-%20sim%20-%20gc%20stress
>
> Original change's description:
> > [cctest] Clarify that tests for sync instructions are simulator specific
> >
> > Some tests were recently added to test-simulator-arm.cc, however this file is
> > meant for tests that are specific to the simulator and therefore are not written
> > to work on hardware. While this sounds surprising, the reason is that our simulation
> > of synchronisation instructions is more conservative than on hardware.
> >
> > To make this more clear, this patch renames the "test-simulator-arm{,64}.cc"
> > files to "test-sync-primitives-arm{,64}.cc", and moves the vneg and vabs tests
> > into "test-assembler-arm.cc" which is were tests that are garanteed to work in
> > either native or simulated environments live.
> >
> > Finally, take the opportunity to share a little bit of code.
> >
> > Bug: v8:6963
> > Change-Id: Ifb85d3671c823b9bba73d09f419536b089a4e87c
> > Reviewed-on: https://chromium-review.googlesource.com/749387
> > Reviewed-by: Clemens Hammacher <clemensh@chromium.org>
> > Commit-Queue: Pierre Langlois <pierre.langlois@arm.com>
> > Cr-Commit-Position: refs/heads/master@{#49073}
>
> TBR=clemensh@chromium.org,pierre.langlois@arm.com,bmeurer@chromium.org
>
> Change-Id: I1bfb4e9c7c18b716f417a84b18a14cb2e1fa3a7a
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Bug: v8:6963
> Reviewed-on: https://chromium-review.googlesource.com/750624
> Reviewed-by: Michael Achenbach <machenbach@chromium.org>
> Commit-Queue: Michael Achenbach <machenbach@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#49074}
TBR=machenbach@chromium.org,clemensh@chromium.org,pierre.langlois@arm.com,bmeurer@chromium.org
Change-Id: I5af7bd3678758130534730a2f6f0b651b64c6956
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: v8:6963
Reviewed-on: https://chromium-review.googlesource.com/750903
Reviewed-by: Michael Achenbach <machenbach@chromium.org>
Commit-Queue: Michael Achenbach <machenbach@chromium.org>
Cr-Commit-Position: refs/heads/master@{#49075}
2017-11-02 13:11:29 +00:00
|
|
|
"assembler-helper-arm.cc",
|
|
|
|
"assembler-helper-arm.h",
|
2016-09-14 19:02:12 +00:00
|
|
|
"test-assembler-arm.cc",
|
|
|
|
"test-disasm-arm.cc",
|
|
|
|
"test-macro-assembler-arm.cc",
|
2018-10-09 05:09:43 +00:00
|
|
|
"test-poison-disasm-arm.cc",
|
Revert "Revert "[cctest] Clarify that tests for sync instructions are simulator specific""
This reverts commit 1feadfe81b7cc250df83cbf0b2fdfd17ac348cf8.
Reason for revert: Reland as bot stayed red after revert.
Original change's description:
> Revert "[cctest] Clarify that tests for sync instructions are simulator specific"
>
> This reverts commit 4013518fe3be92f0fbd043b09017f5eb8b8629d8.
>
> Reason for revert:
> https://build.chromium.org/p/client.v8.ports/builders/V8%20Linux%20-%20arm64%20-%20sim%20-%20gc%20stress
>
> Original change's description:
> > [cctest] Clarify that tests for sync instructions are simulator specific
> >
> > Some tests were recently added to test-simulator-arm.cc, however this file is
> > meant for tests that are specific to the simulator and therefore are not written
> > to work on hardware. While this sounds surprising, the reason is that our simulation
> > of synchronisation instructions is more conservative than on hardware.
> >
> > To make this more clear, this patch renames the "test-simulator-arm{,64}.cc"
> > files to "test-sync-primitives-arm{,64}.cc", and moves the vneg and vabs tests
> > into "test-assembler-arm.cc" which is were tests that are garanteed to work in
> > either native or simulated environments live.
> >
> > Finally, take the opportunity to share a little bit of code.
> >
> > Bug: v8:6963
> > Change-Id: Ifb85d3671c823b9bba73d09f419536b089a4e87c
> > Reviewed-on: https://chromium-review.googlesource.com/749387
> > Reviewed-by: Clemens Hammacher <clemensh@chromium.org>
> > Commit-Queue: Pierre Langlois <pierre.langlois@arm.com>
> > Cr-Commit-Position: refs/heads/master@{#49073}
>
> TBR=clemensh@chromium.org,pierre.langlois@arm.com,bmeurer@chromium.org
>
> Change-Id: I1bfb4e9c7c18b716f417a84b18a14cb2e1fa3a7a
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Bug: v8:6963
> Reviewed-on: https://chromium-review.googlesource.com/750624
> Reviewed-by: Michael Achenbach <machenbach@chromium.org>
> Commit-Queue: Michael Achenbach <machenbach@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#49074}
TBR=machenbach@chromium.org,clemensh@chromium.org,pierre.langlois@arm.com,bmeurer@chromium.org
Change-Id: I5af7bd3678758130534730a2f6f0b651b64c6956
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: v8:6963
Reviewed-on: https://chromium-review.googlesource.com/750903
Reviewed-by: Michael Achenbach <machenbach@chromium.org>
Commit-Queue: Michael Achenbach <machenbach@chromium.org>
Cr-Commit-Position: refs/heads/master@{#49075}
2017-11-02 13:11:29 +00:00
|
|
|
"test-sync-primitives-arm.cc",
|
2016-09-14 19:02:12 +00:00
|
|
|
]
|
2016-07-15 22:32:55 +00:00
|
|
|
} else if (v8_current_cpu == "arm64") {
|
2016-09-21 11:44:10 +00:00
|
|
|
sources += [ ### gcmole(arch:arm64) ###
|
2016-09-14 19:02:12 +00:00
|
|
|
"test-assembler-arm64.cc",
|
|
|
|
"test-disasm-arm64.cc",
|
|
|
|
"test-fuzz-arm64.cc",
|
|
|
|
"test-javascript-arm64.cc",
|
|
|
|
"test-js-arm64-variables.cc",
|
Revert "Revert "[cctest] Clarify that tests for sync instructions are simulator specific""
This reverts commit 1feadfe81b7cc250df83cbf0b2fdfd17ac348cf8.
Reason for revert: Reland as bot stayed red after revert.
Original change's description:
> Revert "[cctest] Clarify that tests for sync instructions are simulator specific"
>
> This reverts commit 4013518fe3be92f0fbd043b09017f5eb8b8629d8.
>
> Reason for revert:
> https://build.chromium.org/p/client.v8.ports/builders/V8%20Linux%20-%20arm64%20-%20sim%20-%20gc%20stress
>
> Original change's description:
> > [cctest] Clarify that tests for sync instructions are simulator specific
> >
> > Some tests were recently added to test-simulator-arm.cc, however this file is
> > meant for tests that are specific to the simulator and therefore are not written
> > to work on hardware. While this sounds surprising, the reason is that our simulation
> > of synchronisation instructions is more conservative than on hardware.
> >
> > To make this more clear, this patch renames the "test-simulator-arm{,64}.cc"
> > files to "test-sync-primitives-arm{,64}.cc", and moves the vneg and vabs tests
> > into "test-assembler-arm.cc" which is were tests that are garanteed to work in
> > either native or simulated environments live.
> >
> > Finally, take the opportunity to share a little bit of code.
> >
> > Bug: v8:6963
> > Change-Id: Ifb85d3671c823b9bba73d09f419536b089a4e87c
> > Reviewed-on: https://chromium-review.googlesource.com/749387
> > Reviewed-by: Clemens Hammacher <clemensh@chromium.org>
> > Commit-Queue: Pierre Langlois <pierre.langlois@arm.com>
> > Cr-Commit-Position: refs/heads/master@{#49073}
>
> TBR=clemensh@chromium.org,pierre.langlois@arm.com,bmeurer@chromium.org
>
> Change-Id: I1bfb4e9c7c18b716f417a84b18a14cb2e1fa3a7a
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Bug: v8:6963
> Reviewed-on: https://chromium-review.googlesource.com/750624
> Reviewed-by: Michael Achenbach <machenbach@chromium.org>
> Commit-Queue: Michael Achenbach <machenbach@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#49074}
TBR=machenbach@chromium.org,clemensh@chromium.org,pierre.langlois@arm.com,bmeurer@chromium.org
Change-Id: I5af7bd3678758130534730a2f6f0b651b64c6956
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: v8:6963
Reviewed-on: https://chromium-review.googlesource.com/750903
Reviewed-by: Michael Achenbach <machenbach@chromium.org>
Commit-Queue: Michael Achenbach <machenbach@chromium.org>
Cr-Commit-Position: refs/heads/master@{#49075}
2017-11-02 13:11:29 +00:00
|
|
|
"test-sync-primitives-arm64.cc",
|
2016-09-14 19:02:12 +00:00
|
|
|
"test-utils-arm64.cc",
|
2016-09-19 10:58:59 +00:00
|
|
|
"test-utils-arm64.h",
|
2016-09-14 19:02:12 +00:00
|
|
|
]
|
2016-07-15 22:32:55 +00:00
|
|
|
} else if (v8_current_cpu == "x86") {
|
2016-09-21 11:44:10 +00:00
|
|
|
sources += [ ### gcmole(arch:ia32) ###
|
2016-09-14 19:02:12 +00:00
|
|
|
"test-assembler-ia32.cc",
|
|
|
|
"test-disasm-ia32.cc",
|
|
|
|
"test-log-stack-tracer.cc",
|
|
|
|
]
|
2016-07-15 22:32:55 +00:00
|
|
|
} else if (v8_current_cpu == "mips") {
|
2016-09-21 11:44:10 +00:00
|
|
|
sources += [ ### gcmole(arch:mips) ###
|
2016-09-14 19:02:12 +00:00
|
|
|
"test-assembler-mips.cc",
|
|
|
|
"test-disasm-mips.cc",
|
|
|
|
"test-macro-assembler-mips.cc",
|
|
|
|
]
|
2016-07-15 22:32:55 +00:00
|
|
|
} else if (v8_current_cpu == "mipsel") {
|
2016-09-21 11:44:10 +00:00
|
|
|
sources += [ ### gcmole(arch:mipsel) ###
|
2016-09-14 19:02:12 +00:00
|
|
|
"test-assembler-mips.cc",
|
|
|
|
"test-disasm-mips.cc",
|
|
|
|
"test-macro-assembler-mips.cc",
|
|
|
|
]
|
2016-07-15 22:32:55 +00:00
|
|
|
} else if (v8_current_cpu == "mips64") {
|
2016-09-21 11:44:10 +00:00
|
|
|
sources += [ ### gcmole(arch:mips64) ###
|
2016-09-14 19:02:12 +00:00
|
|
|
"test-assembler-mips64.cc",
|
|
|
|
"test-disasm-mips64.cc",
|
|
|
|
"test-macro-assembler-mips64.cc",
|
|
|
|
]
|
2016-07-15 22:32:55 +00:00
|
|
|
} else if (v8_current_cpu == "mips64el") {
|
2016-09-21 11:44:10 +00:00
|
|
|
sources += [ ### gcmole(arch:mips64el) ###
|
2016-09-14 19:02:12 +00:00
|
|
|
"test-assembler-mips64.cc",
|
|
|
|
"test-disasm-mips64.cc",
|
|
|
|
"test-macro-assembler-mips64.cc",
|
|
|
|
]
|
2016-07-15 22:32:55 +00:00
|
|
|
} else if (v8_current_cpu == "x64") {
|
2016-09-21 11:44:10 +00:00
|
|
|
sources += [ ### gcmole(arch:x64) ###
|
2016-09-14 19:02:12 +00:00
|
|
|
"test-assembler-x64.cc",
|
|
|
|
"test-disasm-x64.cc",
|
|
|
|
"test-log-stack-tracer.cc",
|
|
|
|
"test-macro-assembler-x64.cc",
|
|
|
|
]
|
2016-07-15 22:32:55 +00:00
|
|
|
} else if (v8_current_cpu == "ppc" || v8_current_cpu == "ppc64") {
|
2016-09-21 11:44:10 +00:00
|
|
|
sources += [ ### gcmole(arch:ppc) ###
|
2016-09-14 19:02:12 +00:00
|
|
|
"test-assembler-ppc.cc",
|
|
|
|
"test-disasm-ppc.cc",
|
|
|
|
]
|
2016-07-15 22:32:55 +00:00
|
|
|
} else if (v8_current_cpu == "s390" || v8_current_cpu == "s390x") {
|
2016-09-21 11:44:10 +00:00
|
|
|
sources += [ ### gcmole(arch:s390) ###
|
2016-09-14 19:02:12 +00:00
|
|
|
"test-assembler-s390.cc",
|
|
|
|
"test-disasm-s390.cc",
|
|
|
|
]
|
2016-06-01 14:14:28 +00:00
|
|
|
}
|
|
|
|
|
2016-06-14 10:07:22 +00:00
|
|
|
configs = [
|
2016-06-01 14:14:28 +00:00
|
|
|
"../..:external_config",
|
|
|
|
"../..:internal_config_base",
|
|
|
|
]
|
|
|
|
|
2017-09-24 20:50:48 +00:00
|
|
|
public_deps = [
|
2016-06-01 14:14:28 +00:00
|
|
|
":resources",
|
2017-09-06 10:48:08 +00:00
|
|
|
"../..:v8_initializers",
|
2016-10-07 07:56:43 +00:00
|
|
|
"../..:v8_libbase",
|
2016-06-01 14:14:28 +00:00
|
|
|
"../..:v8_libplatform",
|
2016-09-14 10:31:23 +00:00
|
|
|
"../..:wasm_module_runner",
|
2016-06-01 14:14:28 +00:00
|
|
|
"//build/win:default_exe_manifest",
|
|
|
|
]
|
|
|
|
|
2016-10-13 12:44:15 +00:00
|
|
|
defines = []
|
2018-05-13 10:10:44 +00:00
|
|
|
deps = [
|
|
|
|
"../..:run_torque",
|
|
|
|
]
|
2016-10-13 12:44:15 +00:00
|
|
|
|
2016-06-01 14:14:28 +00:00
|
|
|
if (is_component_build) {
|
|
|
|
# cctest can't be built against a shared library, so we
|
|
|
|
# need to depend on the underlying static target in that case.
|
|
|
|
deps += [ "../..:v8_maybe_snapshot" ]
|
2016-10-13 12:44:15 +00:00
|
|
|
defines += [ "BUILDING_V8_SHARED" ]
|
2016-06-01 14:14:28 +00:00
|
|
|
} else {
|
|
|
|
deps += [ "../..:v8" ]
|
|
|
|
}
|
2016-06-03 08:21:11 +00:00
|
|
|
|
2017-06-29 22:28:00 +00:00
|
|
|
if (v8_enable_i18n_support) {
|
|
|
|
defines += [ "V8_INTL_SUPPORT" ]
|
2018-06-19 18:03:56 +00:00
|
|
|
public_deps += [ "//third_party/icu" ]
|
2017-06-29 22:28:00 +00:00
|
|
|
} else {
|
|
|
|
sources -= [ "test-intl.cc" ]
|
|
|
|
}
|
|
|
|
|
2016-07-25 09:31:44 +00:00
|
|
|
cflags = []
|
|
|
|
if (v8_current_cpu == "ppc" || v8_current_cpu == "ppc64" ||
|
|
|
|
v8_current_cpu == "arm" || v8_current_cpu == "arm64" ||
|
2016-12-15 11:50:12 +00:00
|
|
|
v8_current_cpu == "s390" || v8_current_cpu == "s390x" ||
|
|
|
|
v8_current_cpu == "mips" || v8_current_cpu == "mips64" ||
|
|
|
|
v8_current_cpu == "mipsel" || v8_current_cpu == "mipsel64") {
|
2016-07-25 09:31:44 +00:00
|
|
|
# Disable fmadd/fmsub so that expected results match generated code in
|
|
|
|
# RunFloat64MulAndFloat64Add1 and friends.
|
2018-10-23 23:30:20 +00:00
|
|
|
if (!is_win) {
|
|
|
|
cflags += [ "-ffp-contract=off" ]
|
|
|
|
}
|
2016-07-25 09:31:44 +00:00
|
|
|
}
|
|
|
|
|
2016-06-03 08:21:11 +00:00
|
|
|
if (is_win) {
|
|
|
|
# This warning is benignly triggered by the U16 and U32 macros in
|
|
|
|
# bytecode-utils.h.
|
|
|
|
# C4309: 'static_cast': truncation of constant value
|
2016-07-25 09:31:44 +00:00
|
|
|
cflags += [ "/wd4309" ]
|
|
|
|
|
|
|
|
# MSVS wants this for gay-{precision,shortest}.cc.
|
|
|
|
cflags += [ "/bigobj" ]
|
2016-06-03 08:21:11 +00:00
|
|
|
}
|
2016-06-01 14:14:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
action("resources") {
|
|
|
|
visibility = [ ":*" ] # Only targets in this file can depend on this.
|
|
|
|
|
|
|
|
script = "../../tools/js2c.py"
|
|
|
|
|
|
|
|
# NOSORT
|
|
|
|
sources = [
|
|
|
|
"../../tools/splaytree.js",
|
|
|
|
"../../tools/codemap.js",
|
|
|
|
"../../tools/csvparser.js",
|
|
|
|
"../../tools/consarray.js",
|
|
|
|
"../../tools/profile.js",
|
|
|
|
"../../tools/profile_view.js",
|
2017-10-23 22:47:02 +00:00
|
|
|
"../../tools/arguments.js",
|
2016-06-01 14:14:28 +00:00
|
|
|
"../../tools/logreader.js",
|
|
|
|
"log-eq-of-logging-and-traversal.js",
|
|
|
|
]
|
|
|
|
|
|
|
|
outputs = [
|
|
|
|
"$target_gen_dir/resources.cc",
|
|
|
|
]
|
|
|
|
|
|
|
|
args = [
|
|
|
|
rebase_path("$target_gen_dir/resources.cc", root_build_dir),
|
|
|
|
"TEST",
|
|
|
|
]
|
|
|
|
args += rebase_path(sources, root_build_dir)
|
|
|
|
}
|
2016-06-27 11:55:33 +00:00
|
|
|
|
|
|
|
v8_executable("generate-bytecode-expectations") {
|
|
|
|
sources = [
|
|
|
|
"interpreter/bytecode-expectations-printer.cc",
|
|
|
|
"interpreter/bytecode-expectations-printer.h",
|
|
|
|
"interpreter/generate-bytecode-expectations.cc",
|
|
|
|
]
|
|
|
|
|
|
|
|
configs = [
|
|
|
|
"../..:external_config",
|
|
|
|
"../..:internal_config_base",
|
|
|
|
]
|
|
|
|
|
|
|
|
deps = [
|
2016-10-14 08:55:40 +00:00
|
|
|
"../..:v8",
|
|
|
|
"../..:v8_libbase",
|
2016-06-27 11:55:33 +00:00
|
|
|
"../..:v8_libplatform",
|
|
|
|
"//build/win:default_exe_manifest",
|
|
|
|
]
|
|
|
|
}
|
2018-11-29 10:10:21 +00:00
|
|
|
|
|
|
|
#Target to generate all .cc files.
|
|
|
|
group("v8_generated_cc_files") {
|
|
|
|
testonly = true
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
":resources",
|
|
|
|
]
|
|
|
|
}
|