• Andreas Haas's avatar
    [wasm] Refactor WasmTableObject::Grow · c7627bbc
    Andreas Haas authored
    This CL refactors WasmTableObject::Grow to make it usable for the
    table.grow instruction of WebAssembly.
    
    The refactored version of WasmTableObject::Grow does additionally:
    * Check if growing is possible
    * Grow the FixedArray backing store of the table and initialize the new
      fields.
    * Calculate the return value of WasmTableObject::Grow.
    
    R=jkummerow@chromium.org
    
    Bug: v8:7581
    Change-Id: Ic6c867b96c30bd987ea281d5b3515a04bc5a3900
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1588136
    Commit-Queue: Andreas Haas <ahaas@chromium.org>
    Reviewed-by: 's avatarJakob Kummerow <jkummerow@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#61112}
    c7627bbc
c-api.cc 95.9 KB