v8/tools/wasm
Clemens Backes 35cc93aa42 [wasm] Detemplatize immediates
The wasm decoder immediates are currently templatized by the {validate}
enum value. They do not need to be though; the only difference is in the
constructor, so the constructor should be templatized instead.

This CL implements that, and also changes the {validate} enum to be a
tag (a typename) instead. This is needed in order to enable template
parameter deduction for the constructor calls (C++ does not allow to
explicitly define the template parameter at constructor calls).

As a nice side effect, this produces nicer symbolized stack traces.
Before:
v8::internal::wasm::Decoder::read_u32v<(v8::internal::wasm::Decoder::ValidateFlag)1>
After:
v8::internal::wasm::Decoder::read_u32v<v8::internal::wasm::Decoder::BooleanValidationTag>

R=jkummerow@chromium.org

Change-Id: I013c909ebaf2c8c495f32b5ce598905f3eccc3ac
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3973267
Commit-Queue: Clemens Backes <clemensb@chromium.org>
Reviewed-by: Jakob Kummerow <jkummerow@chromium.org>
Cr-Commit-Position: refs/heads/main@{#83889}
2022-10-24 17:27:49 +00:00
..
BUILD.gn [tools][wasm] Add "wami", the Wasm Module Inspector 2022-07-05 04:45:28 +00:00
code-size-factors.py [wasm] Tweak constants for estimating code space size 2022-03-15 14:41:13 +00:00
module-inspector.cc [wasm] Detemplatize immediates 2022-10-24 17:27:49 +00:00
update-wasm-fuzzers.sh [wasm] Update and run script to generate fuzzer corpus 2020-12-01 16:21:51 +00:00
update-wasm-spec-tests.sh [wasm] Remove SIMD proposal tests 2022-04-28 05:22:59 +00:00
wasm-import-profiler-end.js [wasm/tools] Add import profiler 2018-11-22 15:36:21 +00:00
wasm-import-profiler.js [wasm/tools] Add import profiler 2018-11-22 15:36:21 +00:00