Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(273)

Issue 2472103002: [wasm] Store the function_index in the js-to-wasm wrapper instead of the export index (Closed)

Created:
4 years, 1 month ago by ahaas
Modified:
4 years, 1 month ago
CC:
titzer, v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

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
Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -8 lines) Patch
M src/wasm/wasm-module.cc View 1 2 2 chunks +8 lines, -8 lines 0 comments Download
M test/mjsunit/wasm/test-import-export-wrapper.js View 1 chunk +60 lines, -0 lines 4 comments Download
M test/mjsunit/wasm/wasm-constants.js View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 21 (11 generated)
ahaas
4 years, 1 month ago (2016-11-03 12:07:40 UTC) #1
ahaas
On 2016/11/03 at 12:07:40, ahaas wrote: > PTAL. I changed the CL so that it ...
4 years, 1 month ago (2016-11-03 12:47:42 UTC) #9
titzer
https://codereview.chromium.org/2472103002/diff/20001/src/wasm/wasm-module.cc File src/wasm/wasm-module.cc (right): https://codereview.chromium.org/2472103002/diff/20001/src/wasm/wasm-module.cc#newcode1630 src/wasm/wasm-module.cc:1630: int func_index = 0; The renaming of this variable ...
4 years, 1 month ago (2016-11-03 12:56:45 UTC) #11
ahaas
https://codereview.chromium.org/2472103002/diff/20001/src/wasm/wasm-module.cc File src/wasm/wasm-module.cc (right): https://codereview.chromium.org/2472103002/diff/20001/src/wasm/wasm-module.cc#newcode1630 src/wasm/wasm-module.cc:1630: int func_index = 0; On 2016/11/03 at 12:56:45, titzer ...
4 years, 1 month ago (2016-11-03 13:02:11 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2472103002/40001
4 years, 1 month ago (2016-11-03 13:02:27 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-03 14:28:27 UTC) #16
Mircea Trofin
lgtm, mini-nits https://codereview.chromium.org/2472103002/diff/40001/test/mjsunit/wasm/test-import-export-wrapper.js File test/mjsunit/wasm/test-import-export-wrapper.js (right): https://codereview.chromium.org/2472103002/diff/40001/test/mjsunit/wasm/test-import-export-wrapper.js#newcode72 test/mjsunit/wasm/test-import-export-wrapper.js:72: // So that wrappers will be removed. ...
4 years, 1 month ago (2016-11-03 14:38:29 UTC) #17
ahaas
https://codereview.chromium.org/2472103002/diff/40001/test/mjsunit/wasm/test-import-export-wrapper.js File test/mjsunit/wasm/test-import-export-wrapper.js (right): https://codereview.chromium.org/2472103002/diff/40001/test/mjsunit/wasm/test-import-export-wrapper.js#newcode72 test/mjsunit/wasm/test-import-export-wrapper.js:72: // So that wrappers will be removed. If the ...
4 years, 1 month ago (2016-11-07 08:10:51 UTC) #18
Mircea Trofin
On 2016/11/07 08:10:51, ahaas wrote: > https://codereview.chromium.org/2472103002/diff/40001/test/mjsunit/wasm/test-import-export-wrapper.js > File test/mjsunit/wasm/test-import-export-wrapper.js (right): > > https://codereview.chromium.org/2472103002/diff/40001/test/mjsunit/wasm/test-import-export-wrapper.js#newcode72 > ...
4 years, 1 month ago (2016-11-07 15:41:40 UTC) #19
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 22:20:46 UTC) #21
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/7f58be6b3852dad599ddfeb9c3554900693e0db6
Cr-Commit-Position: refs/heads/master@{#40729}

Powered by Google App Engine
This is Rietveld 408576698