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

Issue 877523004: Add extended attribute, [Measure], to simplify use counting (Closed)

Created:
5 years, 11 months ago by dstockwell
Modified:
5 years, 9 months ago
Reviewers:
haraken, Jens Widell, bashi
CC:
arv+blink, blink-reviews, blink-reviews-bindings_chromium.org
Target Ref:
refs/remotes/origin/master
Project:
blink
Visibility:
Public.

Description

Add extended attribute, [Measure], to simplify use counting Setting [Measure] applies use counting to that member. Use counter references are generated based on name with a type suffix, for example: interface Test { [Measure] attribute double thing; [Measure] void action(); } will reference UseCounter::V8Test_Thing_AttributeGetter, UseCounter::V8Test_Thing_AttributeSetter, and UseCounter::V8Test_Action_Method. Note that this also allows getters/setters to be counted separately which previously required custom bindings. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=191253

Patch Set 1 #

Total comments: 2

Patch Set 2 : Use the same key for overloads. #

Total comments: 2

Patch Set 3 : Remove inheritance of [Measure] #

Unified diffs Side-by-side diffs Delta from patch set Stats (+144 lines, -22 lines) Patch
M Source/bindings/IDLExtendedAttributes.txt View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/bindings/scripts/v8_attributes.py View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/scripts/v8_interface.py View 1 2 3 chunks +4 lines, -4 lines 0 comments Download
M Source/bindings/scripts/v8_methods.py View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/scripts/v8_utilities.py View 1 2 1 chunk +11 lines, -5 lines 0 comments Download
M Source/bindings/templates/attributes.cpp View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M Source/bindings/templates/constants.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/templates/interface.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/templates/methods.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M Source/bindings/tests/idls/core/TestInterface.idl View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M Source/bindings/tests/idls/core/TestObject.idl View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestInterface.cpp View 1 2 3 chunks +3 lines, -0 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestObject.cpp View 1 2 8 chunks +109 lines, -3 lines 0 comments Download
M Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 27 (4 generated)
dstockwell
5 years, 11 months ago (2015-01-26 02:57:25 UTC) #2
haraken
+bashi, +jl > [MeasureAs=] and [DoNotMeasure] will override the behaviour of [Measure] to > rename ...
5 years, 11 months ago (2015-01-26 03:44:59 UTC) #4
dstockwell
On 2015/01/26 at 03:44:59, haraken wrote: > +bashi, +jl > > > [MeasureAs=] and [DoNotMeasure] ...
5 years, 11 months ago (2015-01-26 03:54:52 UTC) #5
haraken
On 2015/01/26 03:54:52, dstockwell wrote: > On 2015/01/26 at 03:44:59, haraken wrote: > > +bashi, ...
5 years, 11 months ago (2015-01-26 05:47:49 UTC) #6
Jens Widell
As a way of conveniently measuring everything in an interface this makes sense. It adds ...
5 years, 11 months ago (2015-01-26 07:14:48 UTC) #7
dstockwell
On 2015/01/26 at 07:14:48, jl wrote: > As a way of conveniently measuring everything in ...
5 years, 11 months ago (2015-01-26 07:26:48 UTC) #8
dstockwell
ping
5 years, 11 months ago (2015-01-27 07:30:28 UTC) #9
Jens Widell
LGTM Implementation is good, and I can see reasonable uses. I'd be against applying this ...
5 years, 10 months ago (2015-01-28 12:48:32 UTC) #10
haraken
Hmm, I'm still skeptical about this change (Sorry about the late feedback!). - From the ...
5 years, 10 months ago (2015-01-28 13:02:22 UTC) #11
dstockwell
On 2015/01/28 at 13:02:22, haraken wrote: > Hmm, I'm still skeptical about this change (Sorry ...
5 years, 10 months ago (2015-01-28 13:50:37 UTC) #12
haraken
On 2015/01/28 13:50:37, dstockwell wrote: > On 2015/01/28 at 13:02:22, haraken wrote: > > Hmm, ...
5 years, 10 months ago (2015-01-28 15:01:06 UTC) #13
dstockwell
On 2015/01/28 at 15:01:06, haraken wrote: > On 2015/01/28 13:50:37, dstockwell wrote: > > On ...
5 years, 10 months ago (2015-01-30 01:35:42 UTC) #14
dstockwell
On 2015/01/30 at 01:35:42, dstockwell wrote: > On 2015/01/28 at 15:01:06, haraken wrote: > > ...
5 years, 9 months ago (2015-03-02 22:45:01 UTC) #15
haraken
Sorry about the late review. > > > - From the perspective of performance, [Measure] ...
5 years, 9 months ago (2015-03-03 04:57:55 UTC) #16
haraken
On 2015/03/03 04:57:55, haraken wrote: > Sorry about the late review. > > > > ...
5 years, 9 months ago (2015-03-03 04:58:52 UTC) #17
dstockwell
On 2015/03/03 at 04:58:52, haraken wrote: > On 2015/03/03 04:57:55, haraken wrote: > > Sorry ...
5 years, 9 months ago (2015-03-03 21:23:05 UTC) #18
dstockwell
> > > ^^^ I want to resolve the above concern. In other words, don't ...
5 years, 9 months ago (2015-03-03 21:51:49 UTC) #19
haraken
Mostly looks good. Sorry for nit-picking: Do we need both [Measure] and [MeasureAs=*]? Can we ...
5 years, 9 months ago (2015-03-04 01:58:39 UTC) #20
dstockwell
On 2015/03/04 at 01:58:39, haraken wrote: > Mostly looks good. > > Sorry for nit-picking: ...
5 years, 9 months ago (2015-03-04 02:09:55 UTC) #21
haraken
On 2015/03/04 02:09:55, dstockwell wrote: > On 2015/03/04 at 01:58:39, haraken wrote: > > Mostly ...
5 years, 9 months ago (2015-03-04 02:23:09 UTC) #22
haraken
On 2015/03/04 02:23:09, haraken wrote: > On 2015/03/04 02:09:55, dstockwell wrote: > > On 2015/03/04 ...
5 years, 9 months ago (2015-03-04 02:23:24 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/877523004/40001
5 years, 9 months ago (2015-03-04 05:17:24 UTC) #26
commit-bot: I haz the power
5 years, 9 months ago (2015-03-04 06:16:17 UTC) #27
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=191253

Powered by Google App Engine
This is Rietveld 408576698