• bradnelson's avatar
    Preserve information about dots in numbers across parser rewriting. · 1e4681c3
    bradnelson authored
    Fix several operations in the parser that rewrite constant expressions
    to preserve knowledge regarding whether a value originally contained a ".".
    This information is required to accurately validate Asm.js typing.
    
    Making the assumption that if either side of a binary operation contains
    a dot, that the rewritten expression should be treated as a double for
    Asm.js purposes. This is a slight deviation from the spec (which
    would forbid mix type operations).
    
    BUG= https://code.google.com/p/v8/issues/detail?id=4203
    TEST=test-asm-validator, test-parsing
    R=titzer@chromium.org,marja@chromium.org,aseemgarg@chromium.org
    LOG=N
    
    Review URL: https://codereview.chromium.org/1492123002
    
    Cr-Commit-Position: refs/heads/master@{#32581}
    1e4681c3
Name
Last commit
Last update
..
expression-classifier.h Loading commit data...
func-name-inferrer.cc Loading commit data...
func-name-inferrer.h Loading commit data...
json-parser.h Loading commit data...
parameter-initializer-rewriter.cc Loading commit data...
parameter-initializer-rewriter.h Loading commit data...
parser.cc Loading commit data...
parser.h Loading commit data...
pattern-rewriter.cc Loading commit data...
preparse-data-format.h Loading commit data...
preparse-data.cc Loading commit data...
preparse-data.h Loading commit data...
preparser.cc Loading commit data...
preparser.h Loading commit data...
rewriter.cc Loading commit data...
rewriter.h Loading commit data...
scanner-character-streams.cc Loading commit data...
scanner-character-streams.h Loading commit data...
scanner.cc Loading commit data...
scanner.h Loading commit data...
token.cc Loading commit data...
token.h Loading commit data...