v8/test/cctest/compiler
Jakob Gruber c51041f454 [nci] Replace CompilationTarget with a new Code::Kind value
With the new Turbofan variants (NCI and Turboprop), we need a way to
distinguish between them both during and after compilation. We
initially introduced CompilationTarget to track the variant during
compilation, but decided to reuse the code kind as the canonical spot to
store this information instead.

Why? Because it is an established mechanism, already available in most
of the necessary spots (inside the pipeline, on Code objects, in
profiling traces).

This CL removes CompilationTarget and adds a new
NATIVE_CONTEXT_INDEPENDENT kind, plus helper functions to determine
various things about a given code kind (e.g.: does this code kind
deopt?).

As a (very large) drive-by, refactor both Code::Kind and
AbstractCode::Kind into a new CodeKind enum class.

Bug: v8:8888
Change-Id: Ie858b9a53311b0731630be35cf5cd108dee95b39
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2336793
Commit-Queue: Jakob Gruber <jgruber@chromium.org>
Reviewed-by: Clemens Backes <clemensb@chromium.org>
Reviewed-by: Ross McIlroy <rmcilroy@chromium.org>
Reviewed-by: Dominik Inführ <dinfuehr@chromium.org>
Reviewed-by: Georg Neis <neis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#69244}
2020-08-05 12:27:22 +00:00
..
c-signature.h [zone] Cleanup zone allocations in src/compiler and tests, pt.3 2020-07-10 16:39:05 +00:00
call-tester.h Move handles-related files to src/handles 2019-05-23 06:00:15 +00:00
code-assembler-tester.h [nci] Replace CompilationTarget with a new Code::Kind value 2020-08-05 12:27:22 +00:00
codegen-tester.cc Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
codegen-tester.h [nci] Replace CompilationTarget with a new Code::Kind value 2020-08-05 12:27:22 +00:00
function-tester.cc [nci] Replace CompilationTarget with a new Code::Kind value 2020-08-05 12:27:22 +00:00
function-tester.h Move handles-related files to src/handles 2019-05-23 06:00:15 +00:00
graph-and-builders.h [zone] Cleanup zone allocations in src/compiler and tests, pt.3 2020-07-10 16:39:05 +00:00
serializer-tester.cc [nci] Refactor optimized compilation info flags 2020-06-10 13:46:10 +00:00
serializer-tester.h [iwyu] Add missing includes of <memory> for std::unique_ptr 2019-09-13 17:13:36 +00:00
test-basic-block-profiler.cc [diagnostics] Support --turbo-profiling for builtins 2020-05-21 16:31:52 +00:00
test-branch-combine.cc Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
test-code-assembler.cc [tests] Fix parameter indices in test-code-stub-assembler 2020-07-15 15:44:51 +00:00
test-code-generator.cc [nci] Replace CompilationTarget with a new Code::Kind value 2020-08-05 12:27:22 +00:00
test-gap-resolver.cc [zone] Cleanup zone allocations in src/compiler and tests, pt.3 2020-07-10 16:39:05 +00:00
test-graph-visualizer.cc Reland "[zone-compr] Introduce ZoneTypeTraits and ZoneCompression" 2020-07-31 11:43:08 +00:00
test-instruction-scheduler.cc Reland "[zone-compr] Introduce ZoneTypeTraits and ZoneCompression" 2020-07-31 11:43:08 +00:00
test-instruction.cc [zone-compr] Add kCompressGraphZone constant 2020-07-24 08:50:11 +00:00
test-js-constant-cache.cc [zone-compr] Add kCompressGraphZone constant 2020-07-24 08:50:11 +00:00
test-js-context-specialization.cc [zone-compr] Add kCompressGraphZone constant 2020-07-24 08:50:11 +00:00
test-js-typed-lowering.cc [zone-compr] Add kCompressGraphZone constant 2020-07-24 08:50:11 +00:00
test-jump-threading.cc Augment jump threading to handle redundant returns 2020-07-29 18:36:07 +00:00
test-linkage.cc [nci] Replace CompilationTarget with a new Code::Kind value 2020-08-05 12:27:22 +00:00
test-loop-analysis.cc [zone-compr] Add kCompressGraphZone constant 2020-07-24 08:50:11 +00:00
test-machine-operator-reducer.cc [zone-compr] Add kCompressGraphZone constant 2020-07-24 08:50:11 +00:00
test-multiple-return.cc [nci] Replace CompilationTarget with a new Code::Kind value 2020-08-05 12:27:22 +00:00
test-node.cc Reland "[zone-compr] Introduce ZoneTypeTraits and ZoneCompression" 2020-07-31 11:43:08 +00:00
test-operator.cc Normalize casing of hexadecimal digits 2017-12-02 01:24:40 +00:00
test-representation-change.cc [zone-compr] Add kCompressGraphZone constant 2020-07-24 08:50:11 +00:00
test-run-bytecode-graph-builder.cc [nci] Replace CompilationTarget with a new Code::Kind value 2020-08-05 12:27:22 +00:00
test-run-calls-to-external-references.cc Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
test-run-deopt.cc Move relevant files to src/execution 2019-05-22 08:36:33 +00:00
test-run-intrinsics.cc [nci] Refactor optimized compilation info flags 2020-06-10 13:46:10 +00:00
test-run-jsbranches.cc Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
test-run-jscalls.cc Move remaining files in src/ 2019-05-24 18:24:36 +00:00
test-run-jsexceptions.cc Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
test-run-jsobjects.cc [keys] Handle RangeError in GetKeysWithPrototypeInfoCache 2020-03-04 13:38:10 +00:00
test-run-jsops.cc Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
test-run-load-store.cc [ptr-compr] Enable pointer compression on s390x 2020-03-31 17:06:17 +00:00
test-run-machops.cc PPC/s390: [turbofan][wasm] Improved float32 to int32. 2020-07-28 13:32:51 +00:00
test-run-native-calls.cc [nci] Replace CompilationTarget with a new Code::Kind value 2020-08-05 12:27:22 +00:00
test-run-retpoline.cc [zone] Cleanup zone allocations in src/compiler and tests, pt.3 2020-07-10 16:39:05 +00:00
test-run-stackcheck.cc Move relevant files to src/execution 2019-05-22 08:36:33 +00:00
test-run-tail-calls.cc [zone] Cleanup zone allocations in src/compiler and tests, pt.3 2020-07-10 16:39:05 +00:00
test-run-unwinding-info.cc Remove --perf-prof flag on non-linux 2020-01-10 13:58:50 +00:00
test-run-variables.cc Move more relevant files to src/objects 2019-05-23 08:52:30 +00:00
value-helper.cc Reland "[test] Avoid unnecessary std::vector allocations" 2017-10-19 08:47:31 +00:00
value-helper.h [base] Fix {StaticCharVector} and add {StaticOneByteVector} 2020-04-17 18:45:32 +00:00