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

Issue 729393002: Auto generate UseCounter::Feature enum from an .in file (Closed)

Created:
6 years, 1 month ago by kkristof
Modified:
6 years ago
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Auto generate UseCounter::Feature enum from an .in file BUG=433819

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Total comments: 9
Unified diffs Side-by-side diffs Delta from patch set Stats (+591 lines, -494 lines) Patch
M Source/build/scripts/in_file.py View 1 1 chunk +1 line, -0 lines 2 comments Download
A Source/build/scripts/make_use_counter.py View 1 1 chunk +55 lines, -0 lines 4 comments Download
A Source/build/scripts/templates/UseCounterGenerated.h.tmpl View 1 1 chunk +23 lines, -0 lines 0 comments Download
M Source/core/core_generated.gyp View 1 chunk +19 lines, -0 lines 1 comment Download
M Source/core/frame/UseCounter.h View 1 2 chunks +2 lines, -494 lines 1 comment Download
A Source/core/frame/UseCounterGenerated.in View 1 1 chunk +491 lines, -0 lines 1 comment Download

Messages

Total messages: 20 (2 generated)
kkristof
6 years, 1 month ago (2014-11-17 14:25:47 UTC) #2
haraken
It's great to auto-generate the UseCounter enum, but the current .in file looks error-prone. For ...
6 years, 1 month ago (2014-11-17 14:29:44 UTC) #3
philipj_slow
I agree, this looks like it will increase the risk of changing the value of ...
6 years, 1 month ago (2014-11-17 14:45:23 UTC) #4
philipj_slow
https://codereview.chromium.org/729393002/diff/1/Source/core/frame/UseCounterGenerated.in File Source/core/frame/UseCounterGenerated.in (right): https://codereview.chromium.org/729393002/diff/1/Source/core/frame/UseCounterGenerated.in#newcode1 Source/core/frame/UseCounterGenerated.in:1: There are blank lines sprinkled around this file, is ...
6 years, 1 month ago (2014-11-17 14:50:17 UTC) #5
kkristof
On 2014/11/17 14:50:17, philipj wrote: > https://codereview.chromium.org/729393002/diff/1/Source/core/frame/UseCounterGenerated.in > File Source/core/frame/UseCounterGenerated.in (right): > > https://codereview.chromium.org/729393002/diff/1/Source/core/frame/UseCounterGenerated.in#newcode1 > ...
6 years, 1 month ago (2014-11-17 16:03:45 UTC) #6
kkristof
On 2014/11/17 14:45:23, philipj wrote: > I agree, this looks like it will increase the ...
6 years, 1 month ago (2014-11-17 16:09:28 UTC) #7
kkristof
I have updated the patch now every line has explicit value and the script check ...
6 years ago (2014-11-24 08:59:51 UTC) #8
haraken
https://codereview.chromium.org/729393002/diff/20001/Source/build/scripts/in_file.py File Source/build/scripts/in_file.py (right): https://codereview.chromium.org/729393002/diff/20001/Source/build/scripts/in_file.py#newcode135 Source/build/scripts/in_file.py:135: line = line.split('//')[0] # remove comments I'm not sure ...
6 years ago (2014-11-24 09:38:49 UTC) #9
philipj_slow
https://codereview.chromium.org/729393002/diff/20001/Source/build/scripts/in_file.py File Source/build/scripts/in_file.py (right): https://codereview.chromium.org/729393002/diff/20001/Source/build/scripts/in_file.py#newcode135 Source/build/scripts/in_file.py:135: line = line.split('//')[0] # remove comments On 2014/11/24 09:38:49, ...
6 years ago (2014-11-24 10:44:59 UTC) #10
Timothy Loh
I don't understand the point of this patch. So instead of "AttrChildChange = 601,", we ...
6 years ago (2014-11-24 11:02:41 UTC) #12
philipj_slow
On 2014/11/24 11:02:41, Timothy Loh wrote: > I don't understand the point of this patch. ...
6 years ago (2014-11-24 13:14:29 UTC) #13
kkristof
On 2014/11/24 09:38:49, haraken wrote: > https://codereview.chromium.org/729393002/diff/20001/Source/build/scripts/in_file.py > File Source/build/scripts/in_file.py (right): > > https://codereview.chromium.org/729393002/diff/20001/Source/build/scripts/in_file.py#newcode135 > ...
6 years ago (2014-11-24 15:48:25 UTC) #14
kkristof
On 2014/11/24 10:44:59, philipj wrote: > https://codereview.chromium.org/729393002/diff/20001/Source/build/scripts/in_file.py > File Source/build/scripts/in_file.py (right): > > https://codereview.chromium.org/729393002/diff/20001/Source/build/scripts/in_file.py#newcode135 > ...
6 years ago (2014-11-24 16:02:07 UTC) #15
Timothy Loh
On 2014/11/24 13:14:29, philipj wrote: > On 2014/11/24 11:02:41, Timothy Loh wrote: > > I ...
6 years ago (2014-11-24 20:57:53 UTC) #16
philipj_slow
On 2014/11/24 20:57:53, Timothy Loh wrote: > On 2014/11/24 13:14:29, philipj wrote: > > On ...
6 years ago (2014-11-24 21:55:25 UTC) #17
philipj_slow
If this CL goes on, can we call it UseCounterFeatures.in instead? Seems like a more ...
6 years ago (2014-11-24 21:56:49 UTC) #18
Timothy Loh
On 2014/11/24 21:55:25, philipj wrote: > The second patch cannot land without conflict, since its ...
6 years ago (2014-11-24 22:13:39 UTC) #19
philipj_slow
6 years ago (2014-11-24 22:33:38 UTC) #20
Hmm, I had assumed that someone had manually resolved a conflict and messed it
up, but you're right, it looks like https://codereview.chromium.org/672343002
was able to land without conflict because of the blank line after
SrcsetDroppedCandidate = 573. This could happen in UseCounterGenerated.in as
well and the result would be a broken trunk.

Powered by Google App Engine
This is Rietveld 408576698