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

Issue 2050733004: Add UseCounter for Date.parse's legacy parse heuristics. (Closed)

Created:
4 years, 6 months ago by Yang
Modified:
4 years, 6 months ago
CC:
Paweł Hajdan Jr., 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 UseCounter for Date.parse's legacy parse heuristics. R=adamk@chromium.org, jochen@chromium.org BUG=chromium:618595 Committed: https://crrev.com/d77963feeab432464c200fed24851600bdc4b97d Cr-Commit-Position: refs/heads/master@{#36846}

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -9 lines) Patch
M include/v8.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/builtins.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M src/dateparser.h View 1 chunk +1 line, -1 line 0 comments Download
M src/dateparser-inl.h View 3 chunks +10 lines, -4 lines 1 comment Download

Messages

Total messages: 12 (4 generated)
Yang
4 years, 6 months ago (2016-06-09 08:08:02 UTC) #1
adamk
lgtm
4 years, 6 months ago (2016-06-09 08:10:53 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2050733004/1
4 years, 6 months ago (2016-06-09 08:39:24 UTC) #4
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 6 months ago (2016-06-09 09:08:47 UTC) #5
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/d77963feeab432464c200fed24851600bdc4b97d Cr-Commit-Position: refs/heads/master@{#36846}
4 years, 6 months ago (2016-06-09 09:10:07 UTC) #7
Dan Ehrenberg
https://codereview.chromium.org/2050733004/diff/1/src/dateparser-inl.h File src/dateparser-inl.h (right): https://codereview.chromium.org/2050733004/diff/1/src/dateparser-inl.h#newcode176 src/dateparser-inl.h:176: isolate->CountUsage(v8::Isolate::kLegacyDateParser); I bet we'll find that this gets hit ...
4 years, 6 months ago (2016-06-09 12:16:31 UTC) #10
Dan Ehrenberg
https://codereview.chromium.org/2050733004/diff/1/src/dateparser-inl.h File src/dateparser-inl.h (right): https://codereview.chromium.org/2050733004/diff/1/src/dateparser-inl.h#newcode176 src/dateparser-inl.h:176: isolate->CountUsage(v8::Isolate::kLegacyDateParser); I bet we'll find that this gets hit ...
4 years, 6 months ago (2016-06-09 12:16:32 UTC) #11
Yang
4 years, 6 months ago (2016-06-09 12:37:39 UTC) #12
Message was sent while issue was closed.
On 2016/06/09 12:16:32, Dan Ehrenberg wrote:
> https://codereview.chromium.org/2050733004/diff/1/src/dateparser-inl.h
> File src/dateparser-inl.h (right):
> 
>
https://codereview.chromium.org/2050733004/diff/1/src/dateparser-inl.h#newcod...
> src/dateparser-inl.h:176: isolate->CountUsage(v8::Isolate::kLegacyDateParser);
> I bet we'll find that this gets hit a significant amount of the time (based on
> the fact that we and other browsers get a bunch of bug reports about this
path).
> If we want to lock things down, we will probably need some more fine-grained
use
> counters. For example, we ignore arbitrary characters at the end of a date,
but
> I don't believe other browsers do, so this may be something specific to count.

Well the way it's currently implemented we only count if the legacy parser
succeeds.

Powered by Google App Engine
This is Rietveld 408576698