v8/test/cctest/wasm
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
..
OWNERS [wasm] Update OWNERS 2020-01-08 14:56:06 +00:00
test-c-wasm-entry.cc [wasm-simd] Add JS-API errors for Simd, tests 2020-06-16 00:27:48 +00:00
test-compilation-cache.cc Reland "Reland "[wasm] Cache streaming compilation result"" 2020-02-03 13:49:18 +00:00
test-gc.cc [wasm-gc] Test improvements/additions. 2020-08-04 09:51:24 +00:00
test-grow-memory.cc [zone] Cleanup zone allocations in src/wasm and tests 2020-07-10 12:11:55 +00:00
test-jump-table-assembler.cc [arm64][cfi] Use x16/x17 for tail calls 2020-07-02 13:13:09 +00:00
test-liftoff-inspection.cc [wasm] Implement dynamic tiering in wasm 2020-07-21 16:07:01 +00:00
test-run-wasm-64.cc [wasm] Turn ValueType from an enum to a class 2020-03-12 17:03:16 +00:00
test-run-wasm-asmjs.cc [Liftoff] List unsupported opcodes explicitly 2019-05-29 09:47:28 +00:00
test-run-wasm-atomics64.cc [wasm][liftoff][arm] Implement CompareExchange 2020-05-06 10:11:49 +00:00
test-run-wasm-atomics.cc Make atomic operations effectful. 2019-07-31 16:12:04 +00:00
test-run-wasm-bulk-memory.cc [wasm] Rename anyref to externref, anyref flag/feature to reftypes 2020-06-09 17:51:04 +00:00
test-run-wasm-exceptions.cc [wasm] Prepare tests for flipping the wasm-bigint flag 2020-06-12 18:12:42 +00:00
test-run-wasm-interpreter.cc [wasm] Mark tail calls as unconditional jumps 2020-07-31 09:06:09 +00:00
test-run-wasm-js.cc [wasm] Remove interpreter entry code 2020-05-05 11:18:05 +00:00
test-run-wasm-module.cc [zone] Cleanup zone allocations in src/wasm and tests 2020-07-10 12:11:55 +00:00
test-run-wasm-sign-extension.cc [wasm] Remove Sign Extension flag, and helper functions 2019-12-06 13:14:44 +00:00
test-run-wasm-simd-liftoff.cc [wasm-simd][liftoff][arm64] Check offset fits in str immediate 2020-06-29 19:57:07 +00:00
test-run-wasm-simd-scalar-lowering.cc [wasm-simd] Scalar lowering to convert i8x16 to f32x4 2020-05-07 17:09:53 +00:00
test-run-wasm-simd.cc [wasm-simd] Run MultiShuffleFuzzTest on Liftoff 2020-07-30 16:52:40 +00:00
test-run-wasm.cc [zone-compr] Add kCompressGraphZone constant 2020-07-24 08:50:11 +00:00
test-streaming-compilation.cc [wasm] Switch compilation to Jobs API 2020-08-05 08:30:11 +00:00
test-wasm-breakpoints.cc [wasm][debug] Pass pointer for detected features 2020-06-15 08:54:12 +00:00
test-wasm-codegen.cc [zone] Cleanup zone allocations in src/wasm and tests 2020-07-10 12:11:55 +00:00
test-wasm-debug-evaluate.cc [wasm debugging] Implement __getOperand and __getGlobal 2020-07-07 11:52:13 +00:00
test-wasm-import-wrapper-cache.cc [wasm] Faster wasm-to-js calls with arguments mismatch 2020-07-28 15:53:21 +00:00
test-wasm-serialization.cc [zone] Cleanup zone allocations in src/wasm and tests 2020-07-10 12:11:55 +00:00
test-wasm-shared-engine.cc [zone] Cleanup zone allocations in src/wasm and tests 2020-07-10 12:11:55 +00:00
test-wasm-stack.cc [wasm] Remove interpreter entry code 2020-05-05 11:18:05 +00:00
test-wasm-trap-position.cc [wasm] Remove interpreter entry code 2020-05-05 11:18:05 +00:00
wasm-atomics-utils.h [wasm][cleanup] Using 'using' instead of 'typedef' 2019-03-29 10:20:30 +00:00
wasm-run-utils.cc [nci] Replace CompilationTarget with a new Code::Kind value 2020-08-05 12:27:22 +00:00
wasm-run-utils.h [zone-compr] Add kCompressGraphZone constant 2020-07-24 08:50:11 +00:00