v8/test/cctest/wasm
Clemens Backes aadf812c8e [wasm] Improve code size estimates
UMA data shows that we currently still allocate up to ten code spaces
per module. This is because the code size estimates are vastly off,
especially if both Liftoff and TurboFan is being used.
Also, code sizes differ by platform.

This CL adds more logic to the {EstimateNativeModuleCodeSize} function
to distinguish Liftoff and TurboFan, and to use different constants per
platform. A largeish comment explains how the numbers were generated,
and that they are an extreme over-generalization. However, without
further information about the module, this is the best we can do.
After all, being off even by a factor of two does not hurt too much, as
explained in the comment.

R=jkummerow@chromium.org

Change-Id: Icd178f5f4d0c7c8fa29b11b6eff7d14e64a1af1c
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1910102
Commit-Queue: Clemens Backes <clemensb@chromium.org>
Reviewed-by: Jakob Kummerow <jkummerow@chromium.org>
Cr-Commit-Position: refs/heads/master@{#64913}
2019-11-12 12:45:21 +00:00
..
OWNERS Rename clemensh to clemensb in OWNERS 2019-09-26 08:44:44 +00:00
test-c-wasm-entry.cc [wasm-c-api] Faster C-to-Wasm entry 2019-06-27 13:39:48 +00:00
test-grow-memory.cc Reland x6 [arraybuffer] Rearchitect backing store ownership 2019-09-09 13:07:42 +00:00
test-jump-table-assembler.cc [wasm] Increase maximum code space on arm64 2019-09-25 10:44:35 +00:00
test-run-wasm-64.cc [wasm] Rename {Get,Set,Tee}Local to Local{Get,Set,Tee} 2019-10-08 14:14:40 +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 Make atomic operations effectful. 2019-07-31 16:12:04 +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 [cleanup] Eliminate non-const reference parameters 2019-09-10 09:31:07 +00:00
test-run-wasm-exceptions.cc [wasm][anyref] Cache export wrappers per signature 2019-05-22 14:59:50 +00:00
test-run-wasm-interpreter.cc [wasm][test] Remove obsolete TODO from interpreter cctest. 2019-11-06 14:53:14 +00:00
test-run-wasm-js.cc [wasm][anyref] Cache export wrappers per signature 2019-05-22 14:59:50 +00:00
test-run-wasm-module.cc [wasm] Move {WasmModuleObject::DisassembleFunction}. 2019-09-18 09:29:34 +00:00
test-run-wasm-sign-extension.cc [wasm] Unify all enums representing execution tiers 2018-08-21 15:45:18 +00:00
test-run-wasm-simd.cc [wasm-simd] Implement remaining load_splat for x64 2019-11-08 18:07:33 +00:00
test-run-wasm.cc [wasm] Rename {Get,Set,Tee}Local to Local{Get,Set,Tee} 2019-10-08 14:14:40 +00:00
test-streaming-compilation.cc [wasm] Rename {Get,Set,Tee}Local to Local{Get,Set,Tee} 2019-10-08 14:14:40 +00:00
test-wasm-breakpoints.cc V8 Wasm locations should always be based on byte offsets 2019-11-05 14:53:45 +00:00
test-wasm-codegen.cc [wasm] Remove non-const arguments from module builder 2019-07-08 11:42:59 +00:00
test-wasm-import-wrapper-cache.cc [wasm] Remove one {NewNativeModule} method 2019-11-07 18:07:29 +00:00
test-wasm-interpreter-entry.cc [cleanup] Eliminate non-const reference parameters 2019-09-10 09:31:07 +00:00
test-wasm-serialization.cc [wasm] Remove --wasm-shared-engine runtime flag. 2019-10-16 14:15:45 +00:00
test-wasm-shared-engine.cc Replace base::make_unique by std::make_unique 2019-09-10 11:21:51 +00:00
test-wasm-stack.cc V8 Wasm locations should always be based on byte offsets 2019-11-05 14:53:45 +00:00
test-wasm-trap-position.cc V8 Wasm locations should always be based on byte offsets 2019-11-05 14:53:45 +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 [wasm] Improve code size estimates 2019-11-12 12:45:21 +00:00
wasm-run-utils.h [asm.js] Propagate language mode to exported functions. 2019-07-19 11:47:48 +00:00