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

Issue 1677373002: Adding support for asm.js foreign globals. (Closed)

Created:
4 years, 10 months ago by bradnelson
Modified:
4 years, 10 months ago
Reviewers:
titzer, aseemgarg, bradn
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Adding support for asm.js foreign globals. Since wasm has no direct notion of foreign globals, pass the ffi object on to the AsmWasmBuilder so that foreign globals can be extracted at module instantiation time. BUG= https://code.google.com/p/v8/issues/detail?id=4203 TEST=mjsunit/asm-wasm R=titzer@chromium.org,aseemgarg@chromium.org LOG=N Committed: https://crrev.com/821c603e0c5f5c25ac198afaf9463f454d9a96db Cr-Commit-Position: refs/heads/master@{#33956}

Patch Set 1 #

Total comments: 6

Patch Set 2 : revised #

Patch Set 3 : revised #

Patch Set 4 : fix #

Patch Set 5 : fix #

Patch Set 6 : fix #

Patch Set 7 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+184 lines, -10 lines) Patch
M src/wasm/asm-wasm-builder.h View 2 chunks +4 lines, -1 line 0 comments Download
M src/wasm/asm-wasm-builder.cc View 1 2 3 4 5 6 6 chunks +80 lines, -4 lines 0 comments Download
M src/wasm/wasm-js.cc View 3 chunks +10 lines, -5 lines 0 comments Download
M test/mjsunit/wasm/asm-wasm.js View 1 2 3 4 1 chunk +90 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (3 generated)
bradnelson
4 years, 10 months ago (2016-02-09 02:23:07 UTC) #1
aseemgarg
https://codereview.chromium.org/1677373002/diff/1/src/wasm/asm-wasm-builder.cc File src/wasm/asm-wasm-builder.cc (right): https://codereview.chromium.org/1677373002/diff/1/src/wasm/asm-wasm-builder.cc#newcode641 src/wasm/asm-wasm-builder.cc:641: if (!key_literal->value().is_null() && !foreign_.is_null()) { Not sure of these ...
4 years, 10 months ago (2016-02-09 02:38:56 UTC) #2
bradnelson
titzer, ptal https://codereview.chromium.org/1677373002/diff/1/src/wasm/asm-wasm-builder.cc File src/wasm/asm-wasm-builder.cc (right): https://codereview.chromium.org/1677373002/diff/1/src/wasm/asm-wasm-builder.cc#newcode641 src/wasm/asm-wasm-builder.cc:641: if (!key_literal->value().is_null() && !foreign_.is_null()) { On 2016/02/09 ...
4 years, 10 months ago (2016-02-09 04:55:23 UTC) #3
bradnelson
So I'm now using ToNumber and ToInt32 as appropriate. I emailed you separately as in ...
4 years, 10 months ago (2016-02-09 19:43:29 UTC) #4
bradnelson
Added tests of Date, more strings, toValue
4 years, 10 months ago (2016-02-10 17:37:53 UTC) #5
bradn
Added more asserts as you suggested Aseem. Ben, unless you have concerns I'd like to ...
4 years, 10 months ago (2016-02-12 01:40:41 UTC) #7
titzer
lgtm
4 years, 10 months ago (2016-02-12 13:03:28 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1677373002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1677373002/120001
4 years, 10 months ago (2016-02-12 17:17:35 UTC) #10
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 10 months ago (2016-02-12 17:31:12 UTC) #11
commit-bot: I haz the power
4 years, 10 months ago (2016-02-12 17:31:59 UTC) #13
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/821c603e0c5f5c25ac198afaf9463f454d9a96db
Cr-Commit-Position: refs/heads/master@{#33956}

Powered by Google App Engine
This is Rietveld 408576698