• Michael Starzinger's avatar
    [asm.js] Fix numeric literal bounds checking. · e2accb42
    Michael Starzinger authored
    This fixes the bounds checking of "unsigned" numeric literals (those
    that do not contains dots) by the parser. In particular this fixes a
    bogus truncation to 32-bit in the scanner. It also makes the scanner
    more robust by limiting the range of those numeric literals, hence
    completely avoiding rounding loss or truncation errors.
    
    R=clemensh@chromium.org
    TEST=unittests/AsmJsScannerTest.UnsignedNumbers
    BUG=v8:6298
    
    Change-Id: Id31ab3c652e99fa8d3d6663315768e1bfaf3b773
    Reviewed-on: https://chromium-review.googlesource.com/486881Reviewed-by: 's avatarClemens Hammacher <clemensh@chromium.org>
    Commit-Queue: Michael Starzinger <mstarzinger@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#44890}
    e2accb42
Name
Last commit
Last update
benchmarks Loading commit data...
build_overrides Loading commit data...
docs Loading commit data...
gni Loading commit data...
gypfiles Loading commit data...
include Loading commit data...
infra Loading commit data...
samples Loading commit data...
src Loading commit data...
test Loading commit data...
testing Loading commit data...
third_party Loading commit data...
tools Loading commit data...
.clang-format Loading commit data...
.gitignore Loading commit data...
.gn Loading commit data...
.ycm_extra_conf.py Loading commit data...
AUTHORS Loading commit data...
BUILD.gn Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
ChangeLog Loading commit data...
DEPS Loading commit data...
LICENSE Loading commit data...
LICENSE.fdlibm Loading commit data...
LICENSE.strongtalk Loading commit data...
LICENSE.v8 Loading commit data...
LICENSE.valgrind Loading commit data...
Makefile Loading commit data...
Makefile.android Loading commit data...
OWNERS Loading commit data...
PRESUBMIT.py Loading commit data...
README.md Loading commit data...
WATCHLISTS Loading commit data...
codereview.settings Loading commit data...
snapshot_toolchain.gni Loading commit data...