Treat the x*1 generated by parsing a unary + as containing a dot.
authorbradnelson <bradnelson@google.com>
Mon, 31 Aug 2015 16:35:51 +0000 (09:35 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 31 Aug 2015 16:36:07 +0000 (16:36 +0000)
commit4d3a0a7ce69c6ac3210018664368f0e29da6df0d
treeb0990831e8cd2a4f5ec3e9962445dc346ec850b8
parent8b781ecc5df89b083428fb28912c330ed331a79d
Treat the x*1 generated by parsing a unary + as containing a dot.

Since we convert +x to x*1, we loose information about whether
the 1 was intended to be a floating point value for asm.js or not.

Mark the generated 1 as containing a dot (i.e. 1.0).

BUG= https://code.google.com/p/v8/issues/detail?id=4203
TEST=test-parser
R=rossberg@chromium.org,titzer@chromium.org
LOG=N

Review URL: https://codereview.chromium.org/1306683003

Cr-Commit-Position: refs/heads/master@{#30481}
src/parser.cc
test/cctest/test-parsing.cc