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

Issue 2555323003: [wasm][asm.js] Confirm literals are Numbers before using AsNumber, refactor. (Closed)

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

Description

[wasm][asm.js] Confirm literals are Numbers before using AsNumber, refactor. We have been assuming in several places that ContainsDot or ToInt32 is sufficient to check a value is a valid double or int. Refactoring all the checks to one place and making them cope with booleans or other unexpected types being present. BUG=672044 R=titzer@chromium.org Committed: https://crrev.com/4a637abea3eb1a07b0059d047bc1c647ce331859 Cr-Commit-Position: refs/heads/master@{#41595}

Patch Set 1 #

Patch Set 2 : fix #

Total comments: 2

Patch Set 3 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -19 lines) Patch
M src/asmjs/asm-typer.cc View 1 2 14 chunks +44 lines, -19 lines 0 comments Download
M test/mjsunit/asm/asm-validation.js View 1 chunk +34 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (13 generated)
bradn
4 years ago (2016-12-08 10:45:54 UTC) #4
bradn
ptal
4 years ago (2016-12-08 13:32:04 UTC) #9
titzer
lgtm https://codereview.chromium.org/2555323003/diff/20001/src/asmjs/asm-typer.cc File src/asmjs/asm-typer.cc (right): https://codereview.chromium.org/2555323003/diff/20001/src/asmjs/asm-typer.cc#newcode469 src/asmjs/asm-typer.cc:469: bool IsLiteral1_0(Literal* literal) { IsLiteral1Dot0?
4 years ago (2016-12-08 14:11:32 UTC) #12
bradn
https://codereview.chromium.org/2555323003/diff/20001/src/asmjs/asm-typer.cc File src/asmjs/asm-typer.cc (right): https://codereview.chromium.org/2555323003/diff/20001/src/asmjs/asm-typer.cc#newcode469 src/asmjs/asm-typer.cc:469: bool IsLiteral1_0(Literal* literal) { On 2016/12/08 14:11:32, titzer wrote: ...
4 years ago (2016-12-08 14:21:59 UTC) #13
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/2555323003/40001
4 years ago (2016-12-08 14:22:32 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-12-08 14:54:37 UTC) #18
commit-bot: I haz the power
4 years ago (2016-12-08 14:55:12 UTC) #20
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/4a637abea3eb1a07b0059d047bc1c647ce331859
Cr-Commit-Position: refs/heads/master@{#41595}

Powered by Google App Engine
This is Rietveld 408576698