v8/test/cctest/compiler
Clemens Backes c33257e1a2 [wasm] Use AssemblerBufferCache also for TurboFan
The AssemblerBufferCache was so far only used for Liftoff compilation.
Hence all TurboFan compilation was using unprotected assembler buffers.

This CL passes the AssemblerBufferCache from the function compiler down
to the TurboFan PipelineData. From there it is used when instantiating
the CodeGenerator to generate the AssemblerBuffer for the
TurboAssembler. This will protect the assembler buffers used for
TurboFan Wasm compilation via PKU, if available.

Since PipelineData has a single constructor for all Wasm compilation, we
have a single choke point to ensure that an AssemblerBufferCache is
passed down. For Wasm stub compilation (import wrappers etc) we
currently explicitly pass a nullptr, this will be fixed in a follow-up
CL.

R=thibaudm@chromium.org, tebbi@chromium.org

Bug: v8:12809
Change-Id: I268bd21047adbd7f0aab78e8b0a4b4df1d1f8ddf
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3596172
Reviewed-by: Tobias Tebbi <tebbi@chromium.org>
Reviewed-by: Thibaud Michaud <thibaudm@chromium.org>
Commit-Queue: Clemens Backes <clemensb@chromium.org>
Cr-Commit-Position: refs/heads/main@{#80210}
2022-04-27 09:42:30 +00:00
..
c-signature.h Fix c++17 related warning emitted by gcc 2021-12-01 13:07:20 +00:00
call-tester.h [ext-code-space][compiler] Support calling CodeT targets 2021-12-16 13:45:12 +00:00
code-assembler-tester.h [Compiler] Remove untrusted code mitigations. 2021-08-12 12:58:24 +00:00
function-tester.cc [ext-code-space][cleanup] Remove CodeDataContainer table 2021-12-16 17:32:39 +00:00
function-tester.h
graph-and-builders.h
node-observer-tester.h Reland "[no-wasm] Exclude src/wasm from compilation" 2021-03-11 14:29:26 +00:00
serializer-tester.h [compiler] Fix serialization for Function#bind 2021-06-22 12:42:19 +00:00
test-atomic-load-store-codegen.cc Unify naming convention for tests and filter them in TestLoader for cctest 2022-04-20 14:19:55 +00:00
test-basic-block-profiler.cc Unify naming convention for tests and filter them in TestLoader for cctest 2022-04-20 14:19:55 +00:00
test-branch-combine.cc Unify naming convention for tests and filter them in TestLoader for cctest 2022-04-20 14:19:55 +00:00
test-calls-with-arraylike-or-spread.cc [cleanup] Remove variable shadowing in cctest/compiler/* 2021-09-27 15:31:19 +00:00
test-code-assembler.cc [assembler] Add build flag for --code-comments 2021-04-20 07:25:23 +00:00
test-code-generator.cc [wasm] Use AssemblerBufferCache also for TurboFan 2022-04-27 09:42:30 +00:00
test-codegen.cc Unify naming convention for tests and filter them in TestLoader for cctest 2022-04-20 14:19:55 +00:00
test-codegen.h Unify naming convention for tests and filter them in TestLoader for cctest 2022-04-20 14:19:55 +00:00
test-concurrent-shared-function-info.cc [maglev] Towards concurrent Maglev compilation 2022-03-16 08:54:23 +00:00
test-gap-resolver.cc [riscv64][register-alloc] Implement vector register independently allocating 2022-03-11 05:07:45 +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 Simplify DeoptimizeKind usage in compiler/ 2022-04-06 16:54:03 +00:00
test-instruction.cc [zone-compr] Add kCompressGraphZone constant 2020-07-24 08:50:11 +00:00
test-js-constant-cache.cc Reland "[compiler] Remove one ObjectRef constructor" 2021-05-25 16:38:45 +00:00
test-js-context-specialization.cc [runtime] Enable basic Context extension slot verification. 2021-10-12 09:33:26 +00:00
test-js-typed-lowering.cc [compiler] Remove support for --no-concurrent-inlining 2022-01-17 11:29:48 +00:00
test-jump-threading.cc Iterate in assembly order for jump threading 2021-08-03 17:22:40 +00:00
test-linkage.cc Reland "[include] Split out v8.h" 2021-08-24 13:08:55 +00:00
test-loop-analysis.cc [cleanup] Remove variable shadowing in cctest/compiler/* 2021-09-27 15:31:19 +00:00
test-machine-operator-reducer.cc [compiler] Fix --trace-turbo-reduction in the presence of direct reads 2020-09-11 17:21:43 +00:00
test-multiple-return.cc Unify naming convention for tests and filter them in TestLoader for cctest 2022-04-20 14:19:55 +00:00
test-node.cc Reland "[zone-compr] Introduce ZoneTypeTraits and ZoneCompression" 2020-07-31 11:43:08 +00:00
test-operator.cc
test-representation-change.cc Unify naming convention for tests and filter them in TestLoader for cctest 2022-04-20 14:19:55 +00:00
test-run-bytecode-graph-builder.cc Refactor tiering-related JSFunction methods 2022-03-01 14:33:09 +00:00
test-run-calls-to-external-references.cc Reland "[loong64][mips64][fastcall] Enable float support on loong64 and mips64" 2022-04-20 15:56:05 +00:00
test-run-deopt.cc Reland "[include] Split out v8.h" 2021-08-24 13:08:55 +00:00
test-run-jsbranches.cc
test-run-jscalls.cc [interpreter] Remove unused interpreter intrinsics 2021-06-17 13:43:41 +00:00
test-run-jsexceptions.cc
test-run-jsobjects.cc
test-run-jsops.cc
test-run-load-store.cc Unify naming convention for tests and filter them in TestLoader for cctest 2022-04-20 14:19:55 +00:00
test-run-machops.cc Unify naming convention for tests and filter them in TestLoader for cctest 2022-04-20 14:19:55 +00:00
test-run-native-calls.cc Unify naming convention for tests and filter them in TestLoader for cctest 2022-04-20 14:19:55 +00:00
test-run-stackcheck.cc
test-run-tail-calls.cc [codegen] Change RegList into a class 2022-03-14 12:59:48 +00:00
test-run-unwinding-info.cc
test-run-variables.cc [base] Move utils/vector.h to base/vector.h 2021-06-18 13:33:13 +00:00
test-sloppy-equality.cc [cleanup] Remove variable shadowing in cctest/compiler/* 2021-09-27 15:31:19 +00:00
test-verify-type.cc Fix most instances of -Wunreachable-code-aggressive. 2021-07-01 03:03:25 +00:00
value-helper.cc
value-helper.h [relaxed-simd][wasm] Prototype relaxed int-float trunc 2021-10-28 17:03:30 +00:00