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

Issue 1948403002: add UseCounters for NonOctalDecimalIntegerLiteral in strict mode (Closed)

Created:
4 years, 7 months ago by jwolfe
Modified:
4 years, 7 months ago
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

In parallel to the strict octal check that would reject `012` in strict mode, this patch collects UseCounters for `089` in strict mode. The spec says this should be an error, but this patch does not report it as such. BUG=v8:4973 LOG=y Committed: https://crrev.com/d0b6686c14339bd5d0aeaf610705c7ed85393e1f Cr-Commit-Position: refs/heads/master@{#36221}

Patch Set 1 #

Total comments: 6

Patch Set 2 : tidy up my changes to Scanner::ScanNumber #

Patch Set 3 : Turn error into UseCounter #

Patch Set 4 : update instructions for making corresponding changes in chromium #

Total comments: 1

Patch Set 5 : don't forget histograms.xml #

Patch Set 6 : fix uninitialized field. guard against null #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -9 lines) Patch
M include/v8.h View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M src/parsing/parser.cc View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M src/parsing/parser-base.h View 1 2 3 4 5 1 chunk +12 lines, -0 lines 0 comments Download
M src/parsing/preparser.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M src/parsing/preparser.cc View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M src/parsing/scanner.h View 1 2 2 chunks +9 lines, -2 lines 0 comments Download
M src/parsing/scanner.cc View 1 2 3 4 5 8 chunks +21 lines, -5 lines 1 comment Download

Messages

Total messages: 27 (11 generated)
caitp (gmail)
https://codereview.chromium.org/1948403002/diff/1/src/parsing/scanner.cc File src/parsing/scanner.cc (right): https://codereview.chromium.org/1948403002/diff/1/src/parsing/scanner.cc#newcode1034 src/parsing/scanner.cc:1034: decimal_that_looks_like_octal = true; '8' and '9' are decidedly not ...
4 years, 7 months ago (2016-05-05 18:21:08 UTC) #2
caitp (gmail)
Sorry, I think I get it, you want to prevent reporting the error if a ...
4 years, 7 months ago (2016-05-05 18:25:02 UTC) #3
jwolfe
The variable "decimal_that_looks_like_octal" could definitely use a better name. I just really don't like the ...
4 years, 7 months ago (2016-05-05 18:29:56 UTC) #4
jwolfe
https://codereview.chromium.org/1948403002/diff/1/src/parsing/scanner.cc File src/parsing/scanner.cc (left): https://codereview.chromium.org/1948403002/diff/1/src/parsing/scanner.cc#oldcode990 src/parsing/scanner.cc:990: int start_pos = source_pos(); // For reporting octal positions. ...
4 years, 7 months ago (2016-05-05 18:42:02 UTC) #5
caitp (gmail)
+littledan for frontend review
4 years, 7 months ago (2016-05-06 21:01:34 UTC) #7
caitp (gmail)
https://codereview.chromium.org/1948403002/diff/1/src/parsing/scanner.cc File src/parsing/scanner.cc (right): https://codereview.chromium.org/1948403002/diff/1/src/parsing/scanner.cc#newcode1108 src/parsing/scanner.cc:1108: octal_pos_ = Location(start_pos, source_pos()); So, if we want to ...
4 years, 7 months ago (2016-05-06 21:08:03 UTC) #8
Dan Ehrenberg
As noted at https://bugs.chromium.org/p/v8/issues/detail?id=4973 , I'm concerned about the web compatibility of this patch. Let's ...
4 years, 7 months ago (2016-05-06 21:30:46 UTC) #9
jwolfe
According to v8.h, I still need to update V8Initializer.cpp in Chromium. I'm planning on getting ...
4 years, 7 months ago (2016-05-07 21:21:44 UTC) #11
Dan Ehrenberg
lgtm https://codereview.chromium.org/1948403002/diff/60001/include/v8.h File include/v8.h (right): https://codereview.chromium.org/1948403002/diff/60001/include/v8.h#newcode5615 include/v8.h:5615: // and V8PerIsolateData.cpp in Chromium. ...and histogram.xml (see ...
4 years, 7 months ago (2016-05-11 00:36:57 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1948403002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1948403002/80001
4 years, 7 months ago (2016-05-11 01:00:49 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: v8_win_nosnap_shared_rel_ng on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_win_nosnap_shared_rel_ng/builds/1509) v8_win_nosnap_shared_rel_ng_triggered on tryserver.v8 (JOB_FAILED, ...
4 years, 7 months ago (2016-05-11 01:17:41 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1948403002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1948403002/100001
4 years, 7 months ago (2016-05-12 20:18:27 UTC) #21
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 7 months ago (2016-05-12 20:51:56 UTC) #23
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/d0b6686c14339bd5d0aeaf610705c7ed85393e1f Cr-Commit-Position: refs/heads/master@{#36221}
4 years, 7 months ago (2016-05-12 20:54:26 UTC) #25
Michael Achenbach
A revert of this CL (patchset #6 id:100001) has been created in https://codereview.chromium.org/1970333004/ by machenbach@chromium.org. ...
4 years, 7 months ago (2016-05-13 06:52:40 UTC) #26
caitp (gmail)
4 years, 7 months ago (2016-05-13 12:58:31 UTC) #27
Message was sent while issue was closed.
https://codereview.chromium.org/1948403002/diff/100001/src/parsing/scanner.cc
File src/parsing/scanner.cc (right):

https://codereview.chromium.org/1948403002/diff/100001/src/parsing/scanner.cc...
src/parsing/scanner.cc:990: int start_pos;  // For reporting octal positions.
Maybe rename this to `octal_start_pos` and initialize it here --- though I think
you should be just fine to initialize this within the `c0_ == '0'` branch
(provided you don't use it outside of the branch).

Powered by Google App Engine
This is Rietveld 408576698