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

Issue 2664493002: [wasm][asm.js] Make asm.js->wasm return a regular object. (Closed)

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

Description

[wasm][asm.js] Make asm.js->wasm return a regular object. Return a regular JSObject in the asm.js -> wasm case. BUG=v8:5877 R=mtrofin@chromium.org,aseemgarg@chromium.org,titzer@chromium.org Review-Url: https://codereview.chromium.org/2664493002 Cr-Commit-Position: refs/heads/master@{#42757} Committed: https://chromium.googlesource.com/v8/v8/+/437735ed342faae8ec6c7b4291930e0416a5346b

Patch Set 1 #

Patch Set 2 : fix #

Total comments: 2

Patch Set 3 : fix #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -16 lines) Patch
M src/asmjs/asm-js.cc View 1 2 2 chunks +7 lines, -8 lines 0 comments Download
M src/wasm/wasm-module.cc View 1 2 4 chunks +30 lines, -8 lines 1 comment Download
M test/mjsunit/asm/asm-validation.js View 1 2 1 chunk +20 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (18 generated)
bradn
3 years, 10 months ago (2017-01-27 05:07:47 UTC) #6
titzer
https://codereview.chromium.org/2664493002/diff/20001/src/wasm/wasm-module.h File src/wasm/wasm-module.h (right): https://codereview.chromium.org/2664493002/diff/20001/src/wasm/wasm-module.h#newcode224 src/wasm/wasm-module.h:224: Handle<JSObject> export_to = Handle<JSObject>::null()); It's not really clear to ...
3 years, 10 months ago (2017-01-27 09:11:47 UTC) #13
bradnelson
PTAL https://codereview.chromium.org/2664493002/diff/20001/src/wasm/wasm-module.h File src/wasm/wasm-module.h (right): https://codereview.chromium.org/2664493002/diff/20001/src/wasm/wasm-module.h#newcode224 src/wasm/wasm-module.h:224: Handle<JSObject> export_to = Handle<JSObject>::null()); On 2017/01/27 09:11:47, titzer ...
3 years, 10 months ago (2017-01-28 22:08:13 UTC) #16
Mircea Trofin
lgtm
3 years, 10 months ago (2017-01-28 22:58:03 UTC) #19
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/2664493002/40001
3 years, 10 months ago (2017-01-28 23:14:22 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/v8/v8/+/437735ed342faae8ec6c7b4291930e0416a5346b
3 years, 10 months ago (2017-01-28 23:16:06 UTC) #24
titzer
3 years, 10 months ago (2017-01-31 00:08:13 UTC) #25
Message was sent while issue was closed.
LGTM with comment

https://codereview.chromium.org/2664493002/diff/40001/src/wasm/wasm-module.cc
File src/wasm/wasm-module.cc (right):

https://codereview.chromium.org/2664493002/diff/40001/src/wasm/wasm-module.cc...
src/wasm/wasm-module.cc:1975: if (module_->origin == kAsmJsOrigin && exp.kind ==
kExternalFunction &&
Can you leave a TODO here? We're adding to string comparisons here, but maybe
we'll want to just remember the foreign init and single function indices (e.g.
either by numbering convention or by another asm.js-specific section) so we
don't have to compare each time.

Powered by Google App Engine
This is Rietveld 408576698