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

Issue 2386183004: [wasm] Call a runtime function for a MemorySize instruction. (Closed)

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

Description

[wasm] Call a runtime function for a MemorySize instruction. The implementation of MemorySize with RelocatableInt32Constants is problematic if MemorySize is placed close to a GrowMemory instruction in the code. The use of a runtime function guarantees that the order in which MemorySize and GrowMemory is executed is correct. R=titzer@chromium.org BUG=chromium:651961 TEST=mjsunit/regress/wasm/regression-651961 Committed: https://crrev.com/2c12a9a42d454a36fcd2931fa458d72832eeb689 Committed: https://crrev.com/aa93e6ca95123ccd176c392a2b5b8772ee5eb5c4 Cr-Original-Commit-Position: refs/heads/master@{#39972} Cr-Commit-Position: refs/heads/master@{#39980}

Patch Set 1 #

Patch Set 2 : test-run-wasm cannot do runtime calls #

Patch Set 3 : Adjust to the refactoring of GrowMemory. #

Total comments: 1

Patch Set 4 : Comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+125 lines, -18 lines) Patch
M src/compiler/wasm-compiler.cc View 1 chunk +21 lines, -2 lines 0 comments Download
M src/runtime/runtime.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/runtime/runtime-wasm.cc View 1 2 1 chunk +21 lines, -0 lines 0 comments Download
M src/wasm/wasm-module.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M src/wasm/wasm-module.cc View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
M test/cctest/wasm/test-run-wasm.cc View 1 1 chunk +0 lines, -16 lines 0 comments Download
M test/cctest/wasm/test-run-wasm-module.cc View 1 1 chunk +15 lines, -0 lines 0 comments Download
A test/mjsunit/regress/wasm/regression-651961.js View 1 chunk +24 lines, -0 lines 0 comments Download
A test/mjsunit/wasm/memory-size.js View 1 2 1 chunk +30 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (23 generated)
ahaas
4 years, 2 months ago (2016-10-04 12:00:52 UTC) #1
titzer
On 2016/10/04 12:00:52, ahaas wrote: lgtm
4 years, 2 months ago (2016-10-04 12:11:05 UTC) #4
ahaas
On 2016/10/04 at 12:11:05, titzer wrote: > On 2016/10/04 12:00:52, ahaas wrote: > > lgtm ...
4 years, 2 months ago (2016-10-04 12:37:56 UTC) #9
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/2386183004/20001
4 years, 2 months ago (2016-10-05 06:04:29 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 2 months ago (2016-10-05 06:06:51 UTC) #15
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/2c12a9a42d454a36fcd2931fa458d72832eeb689 Cr-Commit-Position: refs/heads/master@{#39972}
4 years, 2 months ago (2016-10-05 06:07:08 UTC) #17
ahaas
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/2391223002/ by ahaas@chromium.org. ...
4 years, 2 months ago (2016-10-05 06:11:54 UTC) #18
ahaas
On 2016/10/05 at 06:11:54, ahaas wrote: > A revert of this CL (patchset #2 id:20001) ...
4 years, 2 months ago (2016-10-05 06:37:15 UTC) #22
gdeepti
lgtm https://codereview.chromium.org/2386183004/diff/40001/src/wasm/wasm-module.cc File src/wasm/wasm-module.cc (right): https://codereview.chromium.org/2386183004/diff/40001/src/wasm/wasm-module.cc#newcode1815 src/wasm/wasm-module.cc:1815: Handle<JSArrayBuffer> old_buffer; s/old_buffer/buffer as this is still the ...
4 years, 2 months ago (2016-10-05 06:52:39 UTC) #23
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/2386183004/60001
4 years, 2 months ago (2016-10-05 09:09:41 UTC) #32
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-10-05 09:12:01 UTC) #33
commit-bot: I haz the power
4 years, 2 months ago (2016-10-05 09:12:19 UTC) #35
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/aa93e6ca95123ccd176c392a2b5b8772ee5eb5c4
Cr-Commit-Position: refs/heads/master@{#39980}

Powered by Google App Engine
This is Rietveld 408576698