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

Issue 17591008: Commented IDL implements statements should not generate code (Closed)

Created:
7 years, 6 months ago by do-not-use
Modified:
7 years, 5 months ago
CC:
blink-reviews, jsbell+bindings_chromium.org, eae+blinkwatch, abarth-chromium, marja+watch_chromium.org, adamk+blink_chromium.org, Nate Chapin, lgombos
Visibility:
Public.

Description

Commented IDL implements statements should not generate code Fix preprocess_idls.py script to make sure that commented IDL implements statements do not cause any code to be generated. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=152950

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -1 line) Patch
M Source/bindings/scripts/preprocess_idls.py View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/tests/idls/TestObject.idl View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
do-not-use
7 years, 6 months ago (2013-06-24 12:58:17 UTC) #1
haraken
LGTM.
7 years, 6 months ago (2013-06-24 13:00:46 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@sisa.samsung.com/17591008/1
7 years, 6 months ago (2013-06-24 13:01:48 UTC) #3
arv (Not doing code reviews)
LGTM The IDL files allows /* */ comments too. Maybe we should have a preprocessing ...
7 years, 6 months ago (2013-06-24 14:20:14 UTC) #4
do-not-use
On 2013/06/24 14:20:14, arv wrote: > LGTM > > The IDL files allows /* */ ...
7 years, 6 months ago (2013-06-24 14:29:04 UTC) #5
haraken
> I believe this kind of multiline comments would fool our other regular > expressions ...
7 years, 6 months ago (2013-06-24 14:58:20 UTC) #6
commit-bot: I haz the power
Change committed as 152950
7 years, 6 months ago (2013-06-24 15:09:22 UTC) #7
do-not-use
On 2013/06/24 14:58:20, haraken wrote: > > I believe this kind of multiline comments would ...
7 years, 6 months ago (2013-06-24 15:33:42 UTC) #8
Nils Barth (inactive)
7 years, 5 months ago (2013-07-05 11:16:34 UTC) #9
Message was sent while issue was closed.
To add 2 cents:
for this dependency resolution (finding 'implements'),
we could use a fast lexer (assuming we want to avoid doing full parsing as too
slow),
namely a lex-generated C lexer, instead of Python regexes.
This would be much faster and more correct, since it would handle multi-line
comments.

lexing is a relatively slow and simple part of parsing (just a few regexes and
token names),
so it's a good place for optimization (full parser in yacc-generated C is much
more work).
Once we land Python lexer+parser, it'll be easy to swap out the Python lexer to
a superfast C lexer
if we want, which'll help with both speeding up parsing IDL files and this
dependency resolution step.

This isn't urgent – preprocess_idls.py isn't *that* slow – but it's worth doing,
since we have to run it every time any IDL file is touched.

(On my "TODO later" list.)

Powered by Google App Engine
This is Rietveld 408576698