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

Issue 2405293002: [wasm] Add stack checks to loops. (Closed)

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

Description

[wasm] Add stack checks to loops. Stack checks in loops allows to interrupt loops. BUG=cctest/test-run-wasm-module/TestInterruptLoop R=titzer@chromium.org, bradnelson@chromium.org Committed: https://crrev.com/e7dc51774806a3fc8f7690c450290fa8d2fd75a6 Cr-Commit-Position: refs/heads/master@{#40251}

Patch Set 1 #

Total comments: 6

Patch Set 2 : comments addressed #

Patch Set 3 : Use volatile to avoid C++ compiler optimization #

Patch Set 4 : Rebase. #

Total comments: 6

Patch Set 5 : comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -33 lines) Patch
M src/compiler/wasm-compiler.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/compiler/wasm-compiler.cc View 1 chunk +14 lines, -7 lines 0 comments Download
M src/wasm/ast-decoder.cc View 1 2 3 4 4 chunks +14 lines, -6 lines 0 comments Download
M src/wasm/wasm-module.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M src/wasm/wasm-module.cc View 1 2 3 2 chunks +2 lines, -6 lines 0 comments Download
M test/cctest/wasm/test-run-wasm-module.cc View 1 2 3 4 3 chunks +87 lines, -2 lines 0 comments Download
M test/common/wasm/wasm-module-runner.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M test/common/wasm/wasm-module-runner.cc View 1 2 3 3 chunks +7 lines, -9 lines 0 comments Download

Messages

Total messages: 34 (23 generated)
ahaas
4 years, 2 months ago (2016-10-11 18:12:43 UTC) #1
titzer
https://codereview.chromium.org/2405293002/diff/1/src/wasm/ast-decoder.cc File src/wasm/ast-decoder.cc (right): https://codereview.chromium.org/2405293002/diff/1/src/wasm/ast-decoder.cc#newcode687 src/wasm/ast-decoder.cc:687: PrepareForLoop(pc_, finish_try_env); Can we make PrepareForLoop() return a new ...
4 years, 2 months ago (2016-10-11 18:44:34 UTC) #6
titzer
https://codereview.chromium.org/2405293002/diff/1/src/compiler/wasm-compiler.h File src/compiler/wasm-compiler.h (right): https://codereview.chromium.org/2405293002/diff/1/src/compiler/wasm-compiler.h#newcode145 src/compiler/wasm-compiler.h:145: void StackCheck(wasm::WasmCodePosition position, Node** effect = nullptr, If we ...
4 years, 2 months ago (2016-10-11 18:48:54 UTC) #7
ahaas
PTAL. I set the memory in the test to volatile now so that the C++ ...
4 years, 2 months ago (2016-10-12 18:03:58 UTC) #14
titzer
On 2016/10/12 18:03:58, ahaas wrote: > PTAL. I set the memory in the test to ...
4 years, 2 months ago (2016-10-12 19:12:03 UTC) #21
titzer
On 2016/10/12 18:03:58, ahaas wrote: > PTAL. I set the memory in the test to ...
4 years, 2 months ago (2016-10-12 19:12:03 UTC) #22
titzer
https://codereview.chromium.org/2405293002/diff/60001/src/wasm/ast-decoder.cc File src/wasm/ast-decoder.cc (right): https://codereview.chromium.org/2405293002/diff/60001/src/wasm/ast-decoder.cc#newcode687 src/wasm/ast-decoder.cc:687: SetEnv("loop:start", PrepareForLoop(pc_, finish_try_env)); Please introduce a local variable here ...
4 years, 2 months ago (2016-10-12 19:16:26 UTC) #23
ahaas
https://codereview.chromium.org/2405293002/diff/60001/src/wasm/ast-decoder.cc File src/wasm/ast-decoder.cc (right): https://codereview.chromium.org/2405293002/diff/60001/src/wasm/ast-decoder.cc#newcode687 src/wasm/ast-decoder.cc:687: SetEnv("loop:start", PrepareForLoop(pc_, finish_try_env)); On 2016/10/12 at 19:16:25, titzer wrote: ...
4 years, 2 months ago (2016-10-13 10:51:56 UTC) #28
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/2405293002/80001
4 years, 2 months ago (2016-10-13 10:52:36 UTC) #31
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 2 months ago (2016-10-13 10:56:51 UTC) #32
commit-bot: I haz the power
4 years, 2 months ago (2016-10-13 10:57:07 UTC) #34
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/e7dc51774806a3fc8f7690c450290fa8d2fd75a6
Cr-Commit-Position: refs/heads/master@{#40251}

Powered by Google App Engine
This is Rietveld 408576698