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

Issue 2256603002: [wasm] Add stack checks at the beginning of each function. (Closed)

Created:
4 years, 4 months ago by ahaas
Modified:
4 years, 4 months ago
Reviewers:
titzer
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] Add stack checks at the beginning of each function. TEST=mjsunit/wasm/stack.js:testStackOverflow R=titzer@chromium.org Committed: https://crrev.com/bb187a106edf9d1d5fb23b567bb457b260289ff6 Cr-Commit-Position: refs/heads/master@{#38742}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Do not trap but use the runtime stack guard call #

Total comments: 6

Patch Set 3 : Comments. #

Patch Set 4 : Rebase. #

Total comments: 2

Patch Set 5 : Update comment. #

Patch Set 6 : Rebase #

Patch Set 7 : Use the BuildCallToRuntime function. #

Total comments: 2

Patch Set 8 : Use the right control input. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -4 lines) Patch
M src/compiler/wasm-compiler.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M src/compiler/wasm-compiler.cc View 1 2 3 4 5 6 7 5 chunks +38 lines, -4 lines 0 comments Download
M src/wasm/ast-decoder.cc View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M test/mjsunit/wasm/stack.js View 1 1 chunk +22 lines, -0 lines 0 comments Download

Messages

Total messages: 49 (36 generated)
ahaas
4 years, 4 months ago (2016-08-17 07:55:19 UTC) #1
titzer
https://codereview.chromium.org/2256603002/diff/1/src/compiler/wasm-compiler.cc File src/compiler/wasm-compiler.cc (right): https://codereview.chromium.org/2256603002/diff/1/src/compiler/wasm-compiler.cc#newcode387 src/compiler/wasm-compiler.cc:387: trap_->AddTrapIfFalse(wasm::kTrapStackOverflow, check, position); We'll need to use the regular ...
4 years, 4 months ago (2016-08-17 08:23:28 UTC) #6
ahaas
https://codereview.chromium.org/2256603002/diff/1/src/compiler/wasm-compiler.cc File src/compiler/wasm-compiler.cc (right): https://codereview.chromium.org/2256603002/diff/1/src/compiler/wasm-compiler.cc#newcode387 src/compiler/wasm-compiler.cc:387: trap_->AddTrapIfFalse(wasm::kTrapStackOverflow, check, position); On 2016/08/17 at 08:23:28, titzer wrote: ...
4 years, 4 months ago (2016-08-17 09:18:43 UTC) #9
titzer
https://codereview.chromium.org/2256603002/diff/20001/src/compiler/wasm-compiler.cc File src/compiler/wasm-compiler.cc (right): https://codereview.chromium.org/2256603002/diff/20001/src/compiler/wasm-compiler.cc#newcode390 src/compiler/wasm-compiler.cc:390: Node* branch = graph()->NewNode( Can use a Diamond here? ...
4 years, 4 months ago (2016-08-17 11:17:23 UTC) #12
ahaas
https://codereview.chromium.org/2256603002/diff/20001/src/compiler/wasm-compiler.cc File src/compiler/wasm-compiler.cc (right): https://codereview.chromium.org/2256603002/diff/20001/src/compiler/wasm-compiler.cc#newcode390 src/compiler/wasm-compiler.cc:390: Node* branch = graph()->NewNode( On 2016/08/17 at 11:17:23, titzer ...
4 years, 4 months ago (2016-08-17 16:12:57 UTC) #15
titzer
lgtm with nit https://codereview.chromium.org/2256603002/diff/10008/src/compiler/wasm-compiler.cc File src/compiler/wasm-compiler.cc (right): https://codereview.chromium.org/2256603002/diff/10008/src/compiler/wasm-compiler.cc#newcode410 src/compiler/wasm-compiler.cc:410: // Generate a call to the ...
4 years, 4 months ago (2016-08-18 10:55:09 UTC) #22
ahaas
PTAL, I changed the {StackCheck} function to use the {BuildCallToRuntime} function instead of duplicating that ...
4 years, 4 months ago (2016-08-18 17:10:49 UTC) #31
Michael Starzinger
https://codereview.chromium.org/2256603002/diff/110001/src/compiler/wasm-compiler.cc File src/compiler/wasm-compiler.cc (right): https://codereview.chromium.org/2256603002/diff/110001/src/compiler/wasm-compiler.cc#newcode413 src/compiler/wasm-compiler.cc:413: effect_, control_); This should be s/control_/diamond.if_false/ here, otherwise it ...
4 years, 4 months ago (2016-08-18 17:22:49 UTC) #33
ahaas
https://codereview.chromium.org/2256603002/diff/110001/src/compiler/wasm-compiler.cc File src/compiler/wasm-compiler.cc (right): https://codereview.chromium.org/2256603002/diff/110001/src/compiler/wasm-compiler.cc#newcode413 src/compiler/wasm-compiler.cc:413: effect_, control_); On 2016/08/18 at 17:22:48, Michael Starzinger wrote: ...
4 years, 4 months ago (2016-08-19 07:13:42 UTC) #40
titzer
On 2016/08/19 07:13:42, ahaas wrote: > https://codereview.chromium.org/2256603002/diff/110001/src/compiler/wasm-compiler.cc > File src/compiler/wasm-compiler.cc (right): > > https://codereview.chromium.org/2256603002/diff/110001/src/compiler/wasm-compiler.cc#newcode413 > ...
4 years, 4 months ago (2016-08-19 08:49:26 UTC) #43
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/2256603002/130001
4 years, 4 months ago (2016-08-19 08:52:50 UTC) #45
commit-bot: I haz the power
Committed patchset #8 (id:130001)
4 years, 4 months ago (2016-08-19 08:54:28 UTC) #47
commit-bot: I haz the power
4 years, 4 months ago (2016-08-19 08:54:51 UTC) #49
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/bb187a106edf9d1d5fb23b567bb457b260289ff6
Cr-Commit-Position: refs/heads/master@{#38742}

Powered by Google App Engine
This is Rietveld 408576698