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

Issue 2638243002: [wasm] WebAssembly.Memory.grow() should handle the no instance case (Closed)

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

Description

[wasm] WebAssembly.Memory.grow() should handle the no instance case - Currently WebAssembly.Memory.grow() assumes that it always has an instance associated with it, fix to grow and reflect new size when no instance is associated with memory object. - Correctness fixes for the js api, throw range errors instead of generic errors BUG=chromium:680938 R=bradnelson@chromium.org, titzer@chromium.org Review-Url: https://codereview.chromium.org/2638243002 Cr-Commit-Position: refs/heads/master@{#42432} Committed: https://chromium.googlesource.com/v8/v8/+/6934db7ca7777db0799ec76b3fae811734e3c5c2

Patch Set 1 #

Total comments: 3

Patch Set 2 : Review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -36 lines) Patch
M src/wasm/wasm-js.cc View 1 chunk +23 lines, -7 lines 0 comments Download
M src/wasm/wasm-module.h View 2 chunks +3 lines, -1 line 0 comments Download
M src/wasm/wasm-module.cc View 2 chunks +37 lines, -18 lines 0 comments Download
A test/mjsunit/regress/wasm/regression-680938.js View 1 chunk +8 lines, -0 lines 0 comments Download
M test/mjsunit/wasm/js-api.js View 1 1 chunk +13 lines, -10 lines 0 comments Download
M test/mjsunit/wasm/memory.js View 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (12 generated)
gdeepti
https://codereview.chromium.org/2638243002/diff/1/test/mjsunit/wasm/js-api.js File test/mjsunit/wasm/js-api.js (right): https://codereview.chromium.org/2638243002/diff/1/test/mjsunit/wasm/js-api.js#newcode396 test/mjsunit/wasm/js-api.js:396: // TODO(gdeepti): assertEq(buf.byteLength, 0); Disabled for now because for ...
3 years, 11 months ago (2017-01-18 02:17:47 UTC) #3
bradnelson
lgtm https://codereview.chromium.org/2638243002/diff/1/test/mjsunit/wasm/js-api.js File test/mjsunit/wasm/js-api.js (right): https://codereview.chromium.org/2638243002/diff/1/test/mjsunit/wasm/js-api.js#newcode390 test/mjsunit/wasm/js-api.js:390: // TODO(gdeepti): assertEq(buf !== mem.buffer, true); Maybe say ...
3 years, 11 months ago (2017-01-18 02:35:37 UTC) #6
gdeepti
https://codereview.chromium.org/2638243002/diff/1/test/mjsunit/wasm/js-api.js File test/mjsunit/wasm/js-api.js (right): https://codereview.chromium.org/2638243002/diff/1/test/mjsunit/wasm/js-api.js#newcode390 test/mjsunit/wasm/js-api.js:390: // TODO(gdeepti): assertEq(buf !== mem.buffer, true); On 2017/01/18 02:35:37, ...
3 years, 11 months ago (2017-01-18 04:43:14 UTC) #11
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/2638243002/20001
3 years, 11 months ago (2017-01-18 04:43:30 UTC) #14
commit-bot: I haz the power
3 years, 11 months ago (2017-01-18 04:45:12 UTC) #17
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/v8/v8/+/6934db7ca7777db0799ec76b3fae811734e...

Powered by Google App Engine
This is Rietveld 408576698