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

Issue 2696813002: [wasm] Inspect right control frames for unreachable flag (Closed)

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

Description

[wasm] Inspect right control frames for unreachable flag We were looking at the unreachable flag or stack_depth of the target frame instead of the current one in a couple of places (most notably BreakTo). This change fixes these bugs and makes us pass the latest spec tests for br_table validation. Also need to ensure that br_table targets have consistent types, which is not implied if the stack is polymorphic. R=titzer@chromium.org BUG=6001 Review-Url: https://codereview.chromium.org/2696813002 Cr-Commit-Position: refs/heads/master@{#43250} Committed: https://chromium.googlesource.com/v8/v8/+/e2b83fbbfdf403903d3b4e5bd9276d38151789c3

Patch Set 1 #

Total comments: 4

Patch Set 2 : Tests #

Patch Set 3 : Avoid conversion warning #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -18 lines) Patch
M src/wasm/function-body-decoder.cc View 1 2 9 chunks +34 lines, -12 lines 0 comments Download
M test/mjsunit/wasm/function-names.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/wasm/globals.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/wasm/unreachable-validation.js View 1 4 chunks +21 lines, -4 lines 0 comments Download
M test/mjsunit/wasm/wasm-module-builder.js View 1 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (7 generated)
rossberg
3 years, 10 months ago (2017-02-14 13:17:22 UTC) #1
titzer
Can we also add a cctest as a regression test for this case? https://codereview.chromium.org/2696813002/diff/1/src/wasm/function-body-decoder.cc File ...
3 years, 10 months ago (2017-02-14 13:30:27 UTC) #2
rossberg
Added redundant tests from spec suite. And since it was the third time that forgetting ...
3 years, 10 months ago (2017-02-14 15:11:17 UTC) #3
titzer
LGTM after online discussion
3 years, 10 months ago (2017-02-16 12:57:52 UTC) #4
titzer
On 2017/02/16 12:57:52, titzer wrote: > LGTM after online discussion offline rather
3 years, 10 months ago (2017-02-16 12:58:13 UTC) #5
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/2696813002/20001
3 years, 10 months ago (2017-02-16 13:37:53 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_gyp_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_gyp_rel_ng/builds/13178)
3 years, 10 months ago (2017-02-16 13:42:07 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/2696813002/40001
3 years, 10 months ago (2017-02-16 13:49:24 UTC) #12
commit-bot: I haz the power
3 years, 10 months ago (2017-02-16 14:12:08 UTC) #15
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/v8/v8/+/e2b83fbbfdf403903d3b4e5bd9276d38151...

Powered by Google App Engine
This is Rietveld 408576698