• Alessandro Pignotti's avatar
    [wasm] Use constant table size when possible · 29e2d8d7
    Alessandro Pignotti authored
    This patch constantize the table size, both for primary and secondary tables, whenever the table size
    is known to never change.
    
    By default WebAssebly tables can be grown indefinitely, but producers can specify a maximal limit.
    In particular, producers can specify that the initial size of the table also correspond to the
    maximum size, in which case the table cannot be grown and the size is constant.
    
    This is a common case, for example when generating WebAssembly from a C++ codebase the list
    of indirectly called function does not need, in general, to change at runtime.
    
    Change-Id: I7f6bab60841ee8eb8bdfd996c34513f69b74d5d2
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2912586Reviewed-by: 's avatarClemens Backes <clemensb@chromium.org>
    Commit-Queue: Clemens Backes <clemensb@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#74760}
    29e2d8d7
wasm-compiler.cc 322 KB