• Clemens Backes's avatar
    [wasm] Make opcode properties constexpr · 852f43cd
    Clemens Backes authored
    This allows the compiler to eliminate more unneeded branches. Since all
    functions just do a lookup in a static table (either directly, or via
    compiling a switch to such a lookup), they are also good candidates for
    inlining, which is made possible by this change.
    
    One DCHECK is removed instead of pulling in the inl header, which would
    require more refactoring since the check is in a non-inl header.
    
    R=thibaudm@chromium.org
    TBR=jkummerow@chromium.org
    
    Bug: v8:10576
    Change-Id: If0fd25fd62c5f30b896fc67a5458a5ae475a6351
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2259944
    Commit-Queue: Clemens Backes <clemensb@chromium.org>
    Reviewed-by: 's avatarThibaud Michaud <thibaudm@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#68508}
    852f43cd
wasm-compiler.cc 290 KB