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

Issue 2181723002: [wasm][asm2wasm] Fixes a bug in 8-bit heap view accesses. (Closed)

Created:
4 years, 5 months ago by John
Modified:
4 years, 4 months ago
Reviewers:
bradnelson
CC:
v8-reviews_googlegroups.com, Igor Sheludko
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[wasm][asm2wasm] Fixes a bug in 8-bit heap view accesses. The bug was caused when validating expressions X >> 0 for indexing into 8-bit heap views. If X was not an intish, the 'normal' validation path would fail. That, however, left the type of X registered in the AsmTyper::node_types_ member. Later, in the 'lenient' code path for 8-bit views, the entire X >> 0 expression would be validated, which would cause X to be validated again, at which point AsmTyper::SetTypeOf() would DCHECK because the supplied node already had a type associated with it. The fix was to simply FAIL() when X is not an intish. This is safe because if X is not an intish, then Validate(>>, !intish, FixNum) will also fail. BUG= https://bugs.chromium.org/p/chromium/issues/detail?id=628803 BUG= https://bugs.chromium.org/p/v8/issues/detail?id=4203 TEST= cctest/asmjs/test-asm-typer.cc LOG= N Committed: https://crrev.com/060d984c94106a375e2eacaa123bc6b5e84a1e8d Cr-Commit-Position: refs/heads/master@{#38053}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -3 lines) Patch
M src/asmjs/asm-typer.cc View 1 chunk +1 line, -3 lines 0 comments Download
M test/cctest/asmjs/test-asm-typer.cc View 1 chunk +30 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (10 generated)
John
4 years, 5 months ago (2016-07-25 16:37:37 UTC) #3
bradnelson
lgtm
4 years, 5 months ago (2016-07-25 16:49:48 UTC) #7
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/2181723002/20001
4 years, 4 months ago (2016-07-26 14:01:52 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:20001)
4 years, 4 months ago (2016-07-26 14:03:09 UTC) #13
commit-bot: I haz the power
4 years, 4 months ago (2016-07-26 14:05:12 UTC) #15
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/060d984c94106a375e2eacaa123bc6b5e84a1e8d
Cr-Commit-Position: refs/heads/master@{#38053}

Powered by Google App Engine
This is Rietveld 408576698