Description[wasm] Store the function_index directly in the js-to-wasm wrapper.
If a WebAssembly function is exported, its js-to-wasm wrapper has a
field which contains a reference to the WebAssembly function.
Originally this reference was an index into the export table, which
then contains an index into the function table, which then contains
the metadata of the WebAssembly function.
With this CL we use the index into the function table directly as
the reference to the WebAssembly function.
TEST=mjsunit/wasm/test-import-export-wrapper
R=rossberg@chromium.org, mtrofin@chromium.org
CC=titzer@chromium.org
Committed: https://crrev.com/7f58be6b3852dad599ddfeb9c3554900693e0db6
Cr-Commit-Position: refs/heads/master@{#40729}
Patch Set 1 #Patch Set 2 : Store the function index in the wrapper instead. #
Total comments: 2
Patch Set 3 : Rename variables #
Total comments: 4
Messages
Total messages: 21 (11 generated)
|