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

Issue 1201783003: Allow numeric literals to be checked for a decimal point. (Closed)

Created:
5 years, 6 months ago by bradn
Modified:
5 years, 5 months ago
Reviewers:
titzer, Sven Panne, rossberg
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

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 Committed: https://crrev.com/9adb5f0a59210a3c46eb17ed00226d2461192af4 Cr-Commit-Position: refs/heads/master@{#29395}

Patch Set 1 #

Total comments: 6

Patch Set 2 : iteration... #

Total comments: 1

Patch Set 3 : merge #

Total comments: 12

Patch Set 4 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -9 lines) Patch
M src/ast.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M src/ast-value-factory.h View 1 2 3 5 chunks +14 lines, -4 lines 0 comments Download
M src/ast-value-factory.cc View 1 2 3 3 chunks +4 lines, -2 lines 0 comments Download
M src/parser.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M src/scanner.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/scanner.cc View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M test/cctest/test-parsing.cc View 1 2 1 chunk +52 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (3 generated)
bradn
Two questions: * Should I plumb through the dot detection deeper into StringToDouble. I'm unsure ...
5 years, 6 months ago (2015-06-21 21:41:53 UTC) #1
titzer
https://codereview.chromium.org/1201783003/diff/1/src/scanner.cc File src/scanner.cc (right): https://codereview.chromium.org/1201783003/diff/1/src/scanner.cc#newcode1438 src/scanner.cc:1438: Vector<const uint8_t> literal_string = literal_one_byte_string(); Does this make a ...
5 years, 6 months ago (2015-06-22 07:08:16 UTC) #2
Sven Panne
DBC https://codereview.chromium.org/1201783003/diff/1/src/scanner.cc File src/scanner.cc (right): https://codereview.chromium.org/1201783003/diff/1/src/scanner.cc#newcode1436 src/scanner.cc:1436: bool Scanner::ContainsDot() { Instead of using caveman-style loops, ...
5 years, 6 months ago (2015-06-22 07:53:43 UTC) #4
titzer
On 2015/06/22 07:53:43, Sven Panne wrote: > DBC > > https://codereview.chromium.org/1201783003/diff/1/src/scanner.cc > File src/scanner.cc (right): ...
5 years, 6 months ago (2015-06-22 07:59:35 UTC) #5
Sven Panne
On 2015/06/22 07:59:35, titzer wrote: > That sounds like a refactoring that would make sense ...
5 years, 6 months ago (2015-06-22 08:03:45 UTC) #6
bradn
https://codereview.chromium.org/1201783003/diff/1/src/scanner.cc File src/scanner.cc (right): https://codereview.chromium.org/1201783003/diff/1/src/scanner.cc#newcode1436 src/scanner.cc:1436: bool Scanner::ContainsDot() { On 2015/06/22 07:53:43, Sven Panne wrote: ...
5 years, 6 months ago (2015-06-23 06:54:07 UTC) #7
bradn
ping?
5 years, 5 months ago (2015-06-29 20:47:55 UTC) #8
titzer
lgtm
5 years, 5 months ago (2015-06-30 07:51:10 UTC) #9
rossberg
LGTM, mostly nits. https://codereview.chromium.org/1201783003/diff/40001/src/ast-value-factory.h File src/ast-value-factory.h (right): https://codereview.chromium.org/1201783003/diff/40001/src/ast-value-factory.h#newcode148 src/ast-value-factory.h:148: bool ContainsDot() const { return type_ ...
5 years, 5 months ago (2015-06-30 12:07:01 UTC) #10
titzer
https://codereview.chromium.org/1201783003/diff/40001/src/ast-value-factory.h File src/ast-value-factory.h (right): https://codereview.chromium.org/1201783003/diff/40001/src/ast-value-factory.h#newcode148 src/ast-value-factory.h:148: bool ContainsDot() const { return type_ == NUMBER_WITH_DOT; } ...
5 years, 5 months ago (2015-06-30 12:22:41 UTC) #11
rossberg
https://codereview.chromium.org/1201783003/diff/40001/src/ast-value-factory.h File src/ast-value-factory.h (right): https://codereview.chromium.org/1201783003/diff/40001/src/ast-value-factory.h#newcode148 src/ast-value-factory.h:148: bool ContainsDot() const { return type_ == NUMBER_WITH_DOT; } ...
5 years, 5 months ago (2015-06-30 12:29:32 UTC) #12
bradn
FWIW, the spec has two main places this comes up (in the positive), near annotations ...
5 years, 5 months ago (2015-06-30 15:54:17 UTC) #13
rossberg
On 2015/06/30 15:54:17, bradn wrote: > FWIW, the spec has two main places this comes ...
5 years, 5 months ago (2015-06-30 16:26:32 UTC) #14
bradn
We clarified with Alon Zakai, it sounds like '.' is the sole marker, as 1e3 ...
5 years, 5 months ago (2015-06-30 16:58:15 UTC) #15
bradn
https://codereview.chromium.org/1201783003/diff/40001/src/ast-value-factory.h File src/ast-value-factory.h (right): https://codereview.chromium.org/1201783003/diff/40001/src/ast-value-factory.h#newcode148 src/ast-value-factory.h:148: bool ContainsDot() const { return type_ == NUMBER_WITH_DOT; } ...
5 years, 5 months ago (2015-06-30 20:03:47 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1201783003/60001
5 years, 5 months ago (2015-06-30 20:04:10 UTC) #19
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 5 months ago (2015-06-30 21:12:18 UTC) #20
commit-bot: I haz the power
5 years, 5 months ago (2015-06-30 21:12:32 UTC) #21
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/9adb5f0a59210a3c46eb17ed00226d2461192af4
Cr-Commit-Position: refs/heads/master@{#29395}

Powered by Google App Engine
This is Rietveld 408576698