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

Issue 2216443002: [wasm] Grow memory should return -1 on failure. (Closed)

Created:
4 years, 4 months ago by gdeepti
Modified:
4 years, 4 months ago
Reviewers:
titzer, ahaas
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

[wasm] Grow memory should return -1 on failure. Return -1 instead of out of throwing errors, update tests. R=titzer@chromium.org, ahaas@chromium.org Committed: https://crrev.com/1269306a3b78b8f4bb75b4db9c78feb2771900bf Cr-Commit-Position: refs/heads/master@{#38350}

Patch Set 1 #

Patch Set 2 : fix build #

Patch Set 3 #

Total comments: 6

Patch Set 4 : Review comments #

Total comments: 6

Patch Set 5 : Review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -45 lines) Patch
M src/messages.h View 1 chunk +0 lines, -1 line 0 comments Download
M src/runtime/runtime-wasm.cc View 1 2 3 3 chunks +6 lines, -10 lines 0 comments Download
M src/wasm/wasm-opcodes.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M test/mjsunit/wasm/grow-memory.js View 1 2 3 4 4 chunks +12 lines, -30 lines 0 comments Download
M test/mjsunit/wasm/wasm-constants.js View 1 2 2 chunks +1 line, -3 lines 0 comments Download

Messages

Total messages: 36 (27 generated)
gdeepti
4 years, 4 months ago (2016-08-04 06:11:51 UTC) #15
ahaas
lgtm with nits https://codereview.chromium.org/2216443002/diff/40001/src/runtime/runtime-wasm.cc File src/runtime/runtime-wasm.cc (right): https://codereview.chromium.org/2216443002/diff/40001/src/runtime/runtime-wasm.cc#newcode109 src/runtime/runtime-wasm.cc:109: return *isolate->factory()->NewNumberFromUint(old_size / This should be ...
4 years, 4 months ago (2016-08-04 07:17:34 UTC) #17
gdeepti
https://codereview.chromium.org/2216443002/diff/40001/src/runtime/runtime-wasm.cc File src/runtime/runtime-wasm.cc (right): https://codereview.chromium.org/2216443002/diff/40001/src/runtime/runtime-wasm.cc#newcode109 src/runtime/runtime-wasm.cc:109: return *isolate->factory()->NewNumberFromUint(old_size / On 2016/08/04 07:17:34, ahaas wrote: > ...
4 years, 4 months ago (2016-08-04 16:12:43 UTC) #22
titzer
lgtm with more nits https://codereview.chromium.org/2216443002/diff/60001/src/runtime/runtime-wasm.cc File src/runtime/runtime-wasm.cc (right): https://codereview.chromium.org/2216443002/diff/60001/src/runtime/runtime-wasm.cc#newcode61 src/runtime/runtime-wasm.cc:61: return *isolate->factory()->NewNumberFromInt(-1); You can use ...
4 years, 4 months ago (2016-08-04 18:20:20 UTC) #23
ahaas
https://codereview.chromium.org/2216443002/diff/60001/src/runtime/runtime-wasm.cc File src/runtime/runtime-wasm.cc (right): https://codereview.chromium.org/2216443002/diff/60001/src/runtime/runtime-wasm.cc#newcode61 src/runtime/runtime-wasm.cc:61: return *isolate->factory()->NewNumberFromInt(-1); On 2016/08/04 at 18:20:19, titzer wrote: > ...
4 years, 4 months ago (2016-08-04 19:26:20 UTC) #24
gdeepti
https://codereview.chromium.org/2216443002/diff/60001/test/mjsunit/wasm/grow-memory.js File test/mjsunit/wasm/grow-memory.js (right): https://codereview.chromium.org/2216443002/diff/60001/test/mjsunit/wasm/grow-memory.js#newcode44 test/mjsunit/wasm/grow-memory.js:44: assertTrue(growMem(3) === 1); On 2016/08/04 18:20:19, titzer wrote: > ...
4 years, 4 months ago (2016-08-04 20:10:22 UTC) #27
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/2216443002/80001
4 years, 4 months ago (2016-08-04 20:35:47 UTC) #32
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 4 months ago (2016-08-04 20:37:46 UTC) #34
commit-bot: I haz the power
4 years, 4 months ago (2016-08-04 20:39:44 UTC) #36
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/1269306a3b78b8f4bb75b4db9c78feb2771900bf
Cr-Commit-Position: refs/heads/master@{#38350}

Powered by Google App Engine
This is Rietveld 408576698