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

Issue 2392943006: [wasm] Implement importing of WebAssembly.Memory. (Closed)

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

Description

[wasm] Implement importing of WebAssembly.Memory. R=mtrofin@chromium.org,gdeepti@chromium.org BUG=chromium:575167 Committed: https://crrev.com/e3ff4cf8c9908ba06c38539db611d8ffb393cc2a Cr-Commit-Position: refs/heads/master@{#40076}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+186 lines, -45 lines) Patch
M src/wasm/module-decoder.cc View 1 2 chunks +4 lines, -4 lines 0 comments Download
M src/wasm/wasm-js.h View 1 chunk +5 lines, -0 lines 0 comments Download
M src/wasm/wasm-js.cc View 1 4 chunks +24 lines, -2 lines 0 comments Download
M src/wasm/wasm-module.cc View 1 6 chunks +57 lines, -39 lines 0 comments Download
A test/mjsunit/wasm/import-memory.js View 1 1 chunk +82 lines, -0 lines 0 comments Download
M test/mjsunit/wasm/wasm-module-builder.js View 2 chunks +14 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (14 generated)
titzer
4 years, 2 months ago (2016-10-06 18:03:39 UTC) #1
Mircea Trofin
https://codereview.chromium.org/2392943006/diff/1/src/wasm/wasm-module.cc File src/wasm/wasm-module.cc (right): https://codereview.chromium.org/2392943006/diff/1/src/wasm/wasm-module.cc#newcode56 src/wasm/wasm-module.cc:56: kWasmMemObject, Could this move on the compiled module object ...
4 years, 2 months ago (2016-10-06 18:10:44 UTC) #4
titzer
On 2016/10/06 18:10:44, Mircea Trofin wrote: > https://codereview.chromium.org/2392943006/diff/1/src/wasm/wasm-module.cc > File src/wasm/wasm-module.cc (right): > > https://codereview.chromium.org/2392943006/diff/1/src/wasm/wasm-module.cc#newcode56 ...
4 years, 2 months ago (2016-10-07 07:13:50 UTC) #7
ahaas
lgtm with nits https://codereview.chromium.org/2392943006/diff/1/src/wasm/wasm-js.cc File src/wasm/wasm-js.cc (right): https://codereview.chromium.org/2392943006/diff/1/src/wasm/wasm-js.cc#newcode744 src/wasm/wasm-js.cc:744: Maybe<bool> has_brand = i::JSObject::HasOwnProperty(object, sym); Can ...
4 years, 2 months ago (2016-10-07 08:23:36 UTC) #10
titzer
https://codereview.chromium.org/2392943006/diff/1/src/wasm/wasm-js.cc File src/wasm/wasm-js.cc (right): https://codereview.chromium.org/2392943006/diff/1/src/wasm/wasm-js.cc#newcode744 src/wasm/wasm-js.cc:744: Maybe<bool> has_brand = i::JSObject::HasOwnProperty(object, sym); On 2016/10/07 08:23:36, ahaas ...
4 years, 2 months ago (2016-10-07 08:50:53 UTC) #13
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/2392943006/20001
4 years, 2 months ago (2016-10-07 09:31:18 UTC) #18
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 2 months ago (2016-10-07 09:34:12 UTC) #20
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/e3ff4cf8c9908ba06c38539db611d8ffb393cc2a Cr-Commit-Position: refs/heads/master@{#40076}
4 years, 2 months ago (2016-10-07 09:34:37 UTC) #22
Mircea Trofin
4 years, 2 months ago (2016-10-07 15:07:16 UTC) #23
Message was sent while issue was closed.
On 2016/10/07 07:13:50, titzer wrote:
> On 2016/10/06 18:10:44, Mircea Trofin wrote:
> > https://codereview.chromium.org/2392943006/diff/1/src/wasm/wasm-module.cc
> > File src/wasm/wasm-module.cc (right):
> > 
> >
>
https://codereview.chromium.org/2392943006/diff/1/src/wasm/wasm-module.cc#new...
> > src/wasm/wasm-module.cc:56: kWasmMemObject,
> > Could this move on the compiled module object instead? I'd like to reduce
> > or eliminate the fields on the instance object. It seems like keeping 
> > information participating in instantiation, on this object, makes 
> > analysing and avoiding GC race conditions more difficult.
> > 
> > As an added benefit, we'd get strongly typed APIs.
> 
> Memory--especially the memory object--is inherently part of an instance. The
> only reason that we keep a reference to memory on the compiled module is
because
> the code is specialized to a particular memory.

Good point. Maybe we can use this as a pivot for separating data between
compiled 
module and owning instance (but I have to think a bit more how that'd work).

Powered by Google App Engine
This is Rietveld 408576698