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

Issue 1429173002: Add strict mode, sloppy mode and strong mode UseCounters (Closed)

Created:
5 years, 1 month ago by Dan Ehrenberg
Modified:
5 years, 1 month ago
Reviewers:
adamk, rossberg
CC:
seththompson, 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

Add strict mode, sloppy mode and strong mode UseCounters This patch adds UseCounters for the various language modes. This may be useful for helping us to prioritize future optimization and language design decisions. R=adamk CC=seththompson BUG=none Committed: https://crrev.com/7ff114e287f25e28f4bf8ea36e644bcdfe9d268e Cr-Commit-Position: refs/heads/master@{#31841}

Patch Set 1 #

Total comments: 17

Patch Set 2 : Fix strict/strong checking #

Patch Set 3 : RaiseLanguageMode #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -15 lines) Patch
M include/v8.h View 1 chunk +3 lines, -0 lines 0 comments Download
M src/parser.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M src/parser.cc View 1 2 12 chunks +42 lines, -15 lines 0 comments Download
M test/cctest/test-parsing.cc View 1 chunk +41 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (5 generated)
Dan Ehrenberg
5 years, 1 month ago (2015-11-03 21:57:14 UTC) #1
adamk
https://codereview.chromium.org/1429173002/diff/1/src/parser.cc File src/parser.cc (right): https://codereview.chromium.org/1429173002/diff/1/src/parser.cc#newcode1341 src/parser.cc:1341: EnableLanguageMode(STRICT); I was expecting this function to be the ...
5 years, 1 month ago (2015-11-03 22:23:15 UTC) #2
Dan Ehrenberg
https://codereview.chromium.org/1429173002/diff/1/src/parser.h File src/parser.h (right): https://codereview.chromium.org/1429173002/diff/1/src/parser.h#newcode1204 src/parser.h:1204: void EnableLanguageMode(LanguageMode mode); On 2015/11/03 at 22:23:15, adamk wrote: ...
5 years, 1 month ago (2015-11-03 22:38:34 UTC) #3
adamk
https://codereview.chromium.org/1429173002/diff/1/src/parser.h File src/parser.h (right): https://codereview.chromium.org/1429173002/diff/1/src/parser.h#newcode1204 src/parser.h:1204: void EnableLanguageMode(LanguageMode mode); On 2015/11/03 22:38:34, Dan Ehrenberg wrote: ...
5 years, 1 month ago (2015-11-03 23:04:17 UTC) #4
Dan Ehrenberg
On 2015/11/03 at 23:04:17, adamk wrote: > https://codereview.chromium.org/1429173002/diff/1/src/parser.h > File src/parser.h (right): > > https://codereview.chromium.org/1429173002/diff/1/src/parser.h#newcode1204 ...
5 years, 1 month ago (2015-11-04 00:15:22 UTC) #5
adamk
On 2015/11/04 00:15:22, Dan Ehrenberg wrote: > On 2015/11/03 at 23:04:17, adamk wrote: > > ...
5 years, 1 month ago (2015-11-04 00:42:56 UTC) #6
adamk
More comments...trying to grok the approach. https://codereview.chromium.org/1429173002/diff/1/src/parser.cc File src/parser.cc (right): https://codereview.chromium.org/1429173002/diff/1/src/parser.cc#newcode1052 src/parser.cc:1052: // Don't count ...
5 years, 1 month ago (2015-11-04 00:53:54 UTC) #7
Dan Ehrenberg
https://codereview.chromium.org/1429173002/diff/1/src/parser.cc File src/parser.cc (right): https://codereview.chromium.org/1429173002/diff/1/src/parser.cc#newcode1052 src/parser.cc:1052: // Don't count the mode in the use counters--give ...
5 years, 1 month ago (2015-11-04 17:55:36 UTC) #8
adamk
https://codereview.chromium.org/1429173002/diff/1/src/parser.cc File src/parser.cc (right): https://codereview.chromium.org/1429173002/diff/1/src/parser.cc#newcode1341 src/parser.cc:1341: EnableLanguageMode(STRICT); On 2015/11/04 17:55:35, Dan Ehrenberg wrote: > On ...
5 years, 1 month ago (2015-11-04 20:18:53 UTC) #10
adamk
Alternatively, I can just review this for correctness/understandability and defer to your particular thoughts on ...
5 years, 1 month ago (2015-11-04 20:20:10 UTC) #11
Dan Ehrenberg
https://codereview.chromium.org/1429173002/diff/1/src/parser.cc File src/parser.cc (right): https://codereview.chromium.org/1429173002/diff/1/src/parser.cc#newcode6402 src/parser.cc:6402: else if (is_strong(mode)) On 2015/11/04 at 17:55:36, Dan Ehrenberg ...
5 years, 1 month ago (2015-11-04 20:27:53 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1429173002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1429173002/20001
5 years, 1 month ago (2015-11-04 20:27:58 UTC) #14
adamk
lgtm
5 years, 1 month ago (2015-11-04 20:32:57 UTC) #15
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 1 month ago (2015-11-04 20:58:38 UTC) #17
rossberg
Not sure how useful measuring sloppy mode is, but it can't harm either. Nit: Can ...
5 years, 1 month ago (2015-11-05 08:53:17 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1429173002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1429173002/40001
5 years, 1 month ago (2015-11-05 19:35:00 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 1 month ago (2015-11-05 19:52:39 UTC) #22
commit-bot: I haz the power
5 years, 1 month ago (2015-11-05 19:53:01 UTC) #23
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/7ff114e287f25e28f4bf8ea36e644bcdfe9d268e
Cr-Commit-Position: refs/heads/master@{#31841}

Powered by Google App Engine
This is Rietveld 408576698