• Clemens Hammacher's avatar
    [wasm][test] Fix WasmModule::num_declared_functions · 7e4e5d0f
    Clemens Hammacher authored
    Our tests currently don't set {WasmModule::num_declared_functions}
    correctly. This CL fixes that.
    This enables the use of {WasmModule::num_declared_functions} instead of
    {NativeModule::num_functions_ - NativeModule::num_imported_functions_}.
    
    Drive-by: Fix {std::vector} reservation to reserve enough space for all
    functions during decoding.
    
    R=titzer@chromium.org
    
    Change-Id: I6d7783aed1c0de3275fc72787dec17c38ff8c73b
    Reviewed-on: https://chromium-review.googlesource.com/1106166
    Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
    Reviewed-by: 's avatarBen Titzer <titzer@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#53857}
    7e4e5d0f
Name
Last commit
Last update
..
benchmarks Loading commit data...
cctest Loading commit data...
common Loading commit data...
debugger Loading commit data...
fuzzer Loading commit data...
inspector Loading commit data...
intl Loading commit data...
js-perf-test Loading commit data...
memory Loading commit data...
message Loading commit data...
mjsunit Loading commit data...
mkgrokdump Loading commit data...
mozilla Loading commit data...
preparser Loading commit data...
test262 Loading commit data...
torque Loading commit data...
unittests Loading commit data...
wasm-spec-tests Loading commit data...
webkit Loading commit data...
BUILD.gn Loading commit data...