Allow numeric literals to be checked for a decimal point.
authorbradnelson <bradnelson@google.com>
Tue, 30 Jun 2015 21:12:12 +0000 (14:12 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 30 Jun 2015 21:12:20 +0000 (21:12 +0000)
commit9adb5f0a59210a3c46eb17ed00226d2461192af4
tree66b9743512acd1b32f0471cc97b2eb53182cfb66
parent686e675734579e393fa813c745716584a90e9e49
Allow numeric literals to be checked for a decimal point.

The asm.js spec decides the type of numeric literals in several places
based on if they contain a ".".
http://asmjs.org/spec/latest/

Adding methods so that AST Literals can be checked for containg a dot.

Adding a cctest that this information is available.

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

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

Cr-Commit-Position: refs/heads/master@{#29395}
src/ast-value-factory.cc
src/ast-value-factory.h
src/ast.h
src/parser.cc
src/scanner.cc
src/scanner.h
test/cctest/test-parsing.cc