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

Issue 1041863002: Use counter for legacy const. (Closed)

Created:
5 years, 9 months ago by Dmitry Lomov (no reviews)
Modified:
5 years, 8 months ago
Reviewers:
vogelheim, rossberg, adamk
CC:
v8-dev, Paweł Hajdan Jr.
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Use counter for legacy const. We only report the usages when full parse is happening, i.e. only when the function that declares a legacy const is compiled. This is an approximation that is easy to implement, but still should reflect the real-world usage. BUG=v8:3942 LOG=N Committed: https://crrev.com/50f4964085e065807254761783bb8e5dcd1aa23c Cr-Commit-Position: refs/heads/master@{#27526}

Patch Set 1 #

Patch Set 2 : Ready for review #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -1 line) Patch
M include/v8.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/parser.cc View 1 1 chunk +1 line, -0 lines 1 comment Download
M test/cctest/test-parsing.cc View 1 1 chunk +19 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
Dmitry Lomov (no reviews)
ptal
5 years, 8 months ago (2015-03-30 13:39:00 UTC) #1
vogelheim
lgtm
5 years, 8 months ago (2015-03-30 15:32:33 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1041863002/20001
5 years, 8 months ago (2015-03-30 15:35:20 UTC) #5
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 8 months ago (2015-03-30 16:20:59 UTC) #6
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/50f4964085e065807254761783bb8e5dcd1aa23c Cr-Commit-Position: refs/heads/master@{#27526}
5 years, 8 months ago (2015-03-30 16:21:16 UTC) #7
adamk
Where's the Blink side of this change? https://codereview.chromium.org/1041863002/diff/20001/src/parser.cc File src/parser.cc (right): https://codereview.chromium.org/1041863002/diff/20001/src/parser.cc#newcode2275 src/parser.cc:2275: ++use_counts_[v8::Isolate::kLegacyConst]; Counting ...
5 years, 8 months ago (2015-03-31 18:19:32 UTC) #9
Dmitry Lomov (no reviews)
On 2015/03/31 18:19:32, adamk wrote: > Where's the Blink side of this change? I'll get ...
5 years, 8 months ago (2015-03-31 18:47:48 UTC) #10
adamk
5 years, 8 months ago (2015-03-31 18:49:02 UTC) #11
Message was sent while issue was closed.
On 2015/03/31 18:47:48, Dmitry Lomov (chromium) wrote:
> On 2015/03/31 18:19:32, adamk wrote:
> > Where's the Blink side of this change?
> 
> I'll get to it once this rolls.
> 
> > 
> > https://codereview.chromium.org/1041863002/diff/20001/src/parser.cc
> > File src/parser.cc (right):
> > 
> >
>
https://codereview.chromium.org/1041863002/diff/20001/src/parser.cc#newcode2275
> > src/parser.cc:2275: ++use_counts_[v8::Isolate::kLegacyConst];
> > Counting each const in a script separately seems a bit odd, especially since
> > Blink will collapse all these into one. But I guess that's not particularly
> > problematic. Just wondering if it's intentional that the V8 API for
> UseCounters
> > doesn't match how they're used in Blink.
> 
> Yes, it is intentional. Embedder is free to collapse use counters in any way
it
> wants, we still report every usage.

Okay, thanks for the confirmation.

Powered by Google App Engine
This is Rietveld 408576698