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

Issue 2049513003: [wasm] Support undefined indirect table entries, behind a flag. (Closed)

Created:
4 years, 6 months ago by ritesht
Modified:
4 years, 6 months ago
CC:
v8-reviews_googlegroups.com, Michael Hablich, bradnelson, John
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[wasm] Support undefined indirect table entries, behind a flag. Add a flag to gate experimental support for dynamic code loading and JITing (at runtime in a wasm module). Enhancing functionality of the indirect function table to support JITing and dynamic linking by allowing additional space to be filled with an "undefined" function signature. BUG=v8:5044 LOG=N TEST=None R=mtrofin@chromium.org,bradnelson@chromium.org Committed: https://crrev.com/d0b8e7fb5416b19252a6568c032f621fd2072a38 Cr-Commit-Position: refs/heads/master@{#37159}

Patch Set 1 #

Total comments: 5

Patch Set 2 : [wasm] Patching in the change to have only one runtime check, instead of two. #

Total comments: 6

Patch Set 3 : Changing to avoid repeated computations and fixing problem due to limited access to the heap from o… #

Patch Set 4 : Updating code to reflect the new control flow #

Patch Set 5 : Merge branch 'master' of https://chromium.googlesource.com/v8/v8 into default_functions #

Patch Set 6 : Init struct #

Patch Set 7 : fix formatting #

Total comments: 4

Patch Set 8 : fix formatting #

Total comments: 5

Patch Set 9 : Replaced instances of "i++" with "++i". #

Patch Set 10 : Replaced instances of "i++" with "++i". #

Patch Set 11 : Replaced instances of "i++" with "++i". #

Total comments: 1

Patch Set 12 : Fixed static casting and formatting. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -16 lines) Patch
M src/flag-definitions.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M src/wasm/module-decoder.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +19 lines, -1 line 0 comments Download
M src/wasm/wasm-module.h View 1 2 3 4 5 6 7 8 6 chunks +16 lines, -3 lines 0 comments Download
M src/wasm/wasm-module.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +18 lines, -10 lines 0 comments Download
A + test/mjsunit/wasm/default-func-call.js View 1 2 3 4 5 6 7 8 3 chunks +8 lines, -1 line 0 comments Download
M test/mjsunit/wasm/wasm-constants.js View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -1 line 0 comments Download
M test/mjsunit/wasm/wasm-module-builder.js View 1 2 3 4 5 6 7 8 3 chunks +20 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (18 generated)
bradn
Oops, was going to direct this to ahaas, but actually we should talk first tomorrow. ...
4 years, 6 months ago (2016-06-14 02:02:46 UTC) #7
titzer
https://codereview.chromium.org/2049513003/diff/1/src/compiler/wasm-compiler.cc File src/compiler/wasm-compiler.cc (right): https://codereview.chromium.org/2049513003/diff/1/src/compiler/wasm-compiler.cc#newcode1940 src/compiler/wasm-compiler.cc:1940: module_->instance->padded_entries); On 2016/06/14 02:02:46, bradn wrote: > Hey Ritesh. ...
4 years, 6 months ago (2016-06-14 20:58:06 UTC) #8
bradn
https://codereview.chromium.org/2049513003/diff/1/src/compiler/wasm-compiler.cc File src/compiler/wasm-compiler.cc (right): https://codereview.chromium.org/2049513003/diff/1/src/compiler/wasm-compiler.cc#newcode1940 src/compiler/wasm-compiler.cc:1940: module_->instance->padded_entries); On 2016/06/14 20:58:05, titzer wrote: > On 2016/06/14 ...
4 years, 6 months ago (2016-06-14 21:00:26 UTC) #9
ritesht
There is now only one run-time check for whether the index is in bounds or ...
4 years, 6 months ago (2016-06-15 21:31:06 UTC) #10
bradn
https://codereview.chromium.org/2049513003/diff/20001/src/compiler/wasm-compiler.cc File src/compiler/wasm-compiler.cc (right): https://codereview.chromium.org/2049513003/diff/20001/src/compiler/wasm-compiler.cc#newcode1935 src/compiler/wasm-compiler.cc:1935: int indirect_table_size = Can we move the computation of ...
4 years, 6 months ago (2016-06-16 08:00:20 UTC) #11
ritesht
Added a field that specifies the number of entries padded to the indirect function table.
4 years, 6 months ago (2016-06-21 17:36:41 UTC) #12
bradn
https://codereview.chromium.org/2049513003/diff/120001/test/mjsunit/wasm/default-func-call.js File test/mjsunit/wasm/default-func-call.js (right): https://codereview.chromium.org/2049513003/diff/120001/test/mjsunit/wasm/default-func-call.js#newcode51 test/mjsunit/wasm/default-func-call.js:51: assertTraps(kTrapFuncSigMismatch, "module.exports.main(2, 12, 33)"); Maybe make this just test ...
4 years, 6 months ago (2016-06-21 17:42:37 UTC) #13
bradn
lgtm with those fixes. https://codereview.chromium.org/2049513003/diff/120001/test/mjsunit/wasm/default-func-call.js File test/mjsunit/wasm/default-func-call.js (right): https://codereview.chromium.org/2049513003/diff/120001/test/mjsunit/wasm/default-func-call.js#newcode16 test/mjsunit/wasm/default-func-call.js:16: builder.addPad(512); But how about we ...
4 years, 6 months ago (2016-06-21 18:43:02 UTC) #14
bradn
Mircea, can you also take a look at this one? And then we'll pass on ...
4 years, 6 months ago (2016-06-21 18:46:21 UTC) #18
ritesht
final formatting fix
4 years, 6 months ago (2016-06-21 19:01:41 UTC) #19
Mircea Trofin
https://codereview.chromium.org/2049513003/diff/140001/src/wasm/module-decoder.cc File src/wasm/module-decoder.cc (right): https://codereview.chromium.org/2049513003/diff/140001/src/wasm/module-decoder.cc#newcode278 src/wasm/module-decoder.cc:278: int length; please initialize length. https://codereview.chromium.org/2049513003/diff/140001/src/wasm/wasm-module.cc File src/wasm/wasm-module.cc (right): ...
4 years, 6 months ago (2016-06-21 19:46:15 UTC) #20
ritesht
Replaced all instances of "i++" with "++i" in the wasm code. Fixed the casting of ...
4 years, 6 months ago (2016-06-21 22:25:47 UTC) #22
bradn
Thought we said those fixes would be a different cl.
4 years, 6 months ago (2016-06-21 22:27:52 UTC) #23
ritesht
Fixed casting and formatting https://codereview.chromium.org/2049513003/diff/200001/src/wasm/wasm-module.cc File src/wasm/wasm-module.cc (right): https://codereview.chromium.org/2049513003/diff/200001/src/wasm/wasm-module.cc#newcode155 src/wasm/wasm-module.cc:155: i < static_cast<uint32_t>(module->function_table.size()); I have ...
4 years, 6 months ago (2016-06-21 23:16:33 UTC) #24
Mircea Trofin
On 2016/06/21 23:16:33, ritesht wrote: > Fixed casting and formatting > > https://codereview.chromium.org/2049513003/diff/200001/src/wasm/wasm-module.cc > File ...
4 years, 6 months ago (2016-06-21 23:55:45 UTC) #25
ritesht
@dehrenberg Could you check the "src/flag-definitions.h" file for new wasm flag?
4 years, 6 months ago (2016-06-22 00:10:14 UTC) #27
adamk
lgtm for src/flag-definitions.h
4 years, 6 months ago (2016-06-22 00:26:31 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2049513003/220001
4 years, 6 months ago (2016-06-22 00:35:42 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: v8_presubmit on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/17715)
4 years, 6 months ago (2016-06-22 00:39:33 UTC) #34
bradnelson
Lgtm from right account
4 years, 6 months ago (2016-06-22 00:50:02 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2049513003/220001
4 years, 6 months ago (2016-06-22 00:50:22 UTC) #37
commit-bot: I haz the power
Committed patchset #12 (id:220001)
4 years, 6 months ago (2016-06-22 00:52:06 UTC) #39
commit-bot: I haz the power
4 years, 6 months ago (2016-06-22 00:53:39 UTC) #41
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/d0b8e7fb5416b19252a6568c032f621fd2072a38
Cr-Commit-Position: refs/heads/master@{#37159}

Powered by Google App Engine
This is Rietveld 408576698