WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
150536
Builtins generator should emit ENABLE(FEATURE) guards based on @conditional annotation
https://bugs.webkit.org/show_bug.cgi?id=150536
Summary
Builtins generator should emit ENABLE(FEATURE) guards based on @conditional a...
Blaze Burg
Reported
2015-10-24 16:11:12 PDT
patch.
Attachments
Patch
(41.55 KB, patch)
2015-10-24 16:16 PDT
,
Blaze Burg
no flags
Details
Formatted Diff
Diff
Proposed Fix
(48.51 KB, patch)
2015-10-26 21:41 PDT
,
Blaze Burg
no flags
Details
Formatted Diff
Diff
Proposed Fix
(63.02 KB, patch)
2015-10-27 23:03 PDT
,
Blaze Burg
commit-queue
: commit-queue-
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Blaze Burg
Comment 1
2015-10-24 16:16:43 PDT
Created
attachment 263985
[details]
Patch
WebKit Commit Bot
Comment 2
2015-10-24 16:18:50 PDT
This patch modifies the JS builtins code generator. Please ensure that you have rebaselined any generator test results (i.e., by running `Tools/Scripts/run-builtins-generator-tests --reset-results`)
WebKit Commit Bot
Comment 3
2015-10-24 16:19:04 PDT
Attachment 263985
[details]
did not pass style-queue: ERROR: Source/JavaScriptCore/Scripts/builtins/builtins_generate_separate_implementation.py:64: [BuiltinsSeparateImplementationGenerator.generate_output] Instance of 'BuiltinsSeparateImplementationGenerator' has no 'generate_primary_header_includes' member [pylint/E1101] [5] Total errors found: 1 in 14 files If any of these errors are false positives, please file a bug against check-webkit-style.
youenn fablet
Comment 4
2015-10-25 01:46:42 PDT
Just a quick note that I used @optional in streams built-in js, but maybe this is a poor name. WebIDL is using "Conditional" keyword. Generated code is using "ENABLE" macro.
Blaze Burg
Comment 5
2015-10-25 10:23:43 PDT
(In reply to
comment #4
)
> Just a quick note that I used @optional in streams built-in js, but maybe > this is a poor name. > WebIDL is using "Conditional" keyword. > Generated code is using "ENABLE" macro.
In other code generators, it is along the lines of // @conditional=ENABLE(STREAMS) so that files can be conditionalized on PLATFORM(), USE(), etc. It is easy to change this.
youenn fablet
Comment 6
2015-10-26 00:17:00 PDT
(In reply to
comment #5
)
> (In reply to
comment #4
) > > Just a quick note that I used @optional in streams built-in js, but maybe > > this is a poor name. > > WebIDL is using "Conditional" keyword. > > Generated code is using "ENABLE" macro. > > In other code generators, it is along the lines of > > // @conditional=ENABLE(STREAMS) > > so that files can be conditionalized on PLATFORM(), USE(), etc. > It is easy to change this.
Sounds good to me
Yusuke Suzuki
Comment 7
2015-10-26 10:39:21 PDT
Comment on
attachment 263985
[details]
Patch r=me, annotation looks nice ;)
Blaze Burg
Comment 8
2015-10-26 11:05:08 PDT
(In reply to
comment #7
)
> Comment on
attachment 263985
[details]
> Patch > > r=me, annotation looks nice ;)
Before landing, as discussed above, I'll change @optional to @conditional and include ENABLE() in all the existing guards. I'll put up another patch for EWS to catch any mistakes.
Yusuke Suzuki
Comment 9
2015-10-26 11:38:39 PDT
(In reply to
comment #8
)
> (In reply to
comment #7
) > > Comment on
attachment 263985
[details]
> > Patch > > > > r=me, annotation looks nice ;) > > Before landing, as discussed above, I'll change @optional to @conditional > and include ENABLE() in all the existing guards. I'll put up another patch > for EWS to catch any mistakes.
@conditional looks preferable! So your revised patch will include the existing stream JS code, right? (replacing @optional to @conditional)
Blaze Burg
Comment 10
2015-10-26 11:40:20 PDT
(In reply to
comment #9
)
> (In reply to
comment #8
) > > (In reply to
comment #7
) > > > Comment on
attachment 263985
[details]
> > > Patch > > > > > > r=me, annotation looks nice ;) > > > > Before landing, as discussed above, I'll change @optional to @conditional > > and include ENABLE() in all the existing guards. I'll put up another patch > > for EWS to catch any mistakes. > > @conditional looks preferable! > So your revised patch will include the existing stream JS code, right? > (replacing @optional to @conditional)
Yes.
Blaze Burg
Comment 11
2015-10-26 21:41:48 PDT
Created
attachment 264119
[details]
Proposed Fix
WebKit Commit Bot
Comment 12
2015-10-26 21:45:04 PDT
Attachment 264119
[details]
did not pass style-queue: ERROR: Source/JavaScriptCore/Scripts/builtins/builtins_generate_separate_implementation.py:64: [BuiltinsSeparateImplementationGenerator.generate_output] Instance of 'BuiltinsSeparateImplementationGenerator' has no 'generate_primary_header_includes' member [pylint/E1101] [5] Total errors found: 1 in 27 files If any of these errors are false positives, please file a bug against check-webkit-style.
youenn fablet
Comment 13
2015-10-27 16:45:04 PDT
LGTM. Just wondering whether we also want to test "@conditional=ENABLE(STREAMS_API) || USE(CF)" annotation?
Blaze Burg
Comment 14
2015-10-27 22:41:31 PDT
(In reply to
comment #13
)
> LGTM. > Just wondering whether we also want to test > "@conditional=ENABLE(STREAMS_API) || USE(CF)" annotation?
Sure. The regex should accept any non '=' character as the annotation's value. But would be good to verify.
Blaze Burg
Comment 15
2015-10-27 23:03:02 PDT
Created
attachment 264197
[details]
Proposed Fix
WebKit Commit Bot
Comment 16
2015-10-27 23:05:04 PDT
Attachment 264197
[details]
did not pass style-queue: ERROR: Source/JavaScriptCore/Scripts/builtins/builtins_generate_separate_implementation.py:64: [BuiltinsSeparateImplementationGenerator.generate_output] Instance of 'BuiltinsSeparateImplementationGenerator' has no 'generate_primary_header_includes' member [pylint/E1101] [5] Total errors found: 1 in 29 files If any of these errors are false positives, please file a bug against check-webkit-style.
Blaze Burg
Comment 17
2015-10-28 09:45:07 PDT
Comment on
attachment 264197
[details]
Proposed Fix Setting cq+ with additional changes as discussed in bug.
WebKit Commit Bot
Comment 18
2015-10-28 09:48:24 PDT
Comment on
attachment 264197
[details]
Proposed Fix Rejecting
attachment 264197
[details]
from commit-queue. Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-02', 'validate-changelog', '--check-oops', '--non-interactive', 264197, '--port=mac']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit ChangeLog entry in Source/WebCore/ChangeLog contains OOPS!. Full output:
http://webkit-queues.webkit.org/results/349230
Blaze Burg
Comment 19
2015-10-28 13:01:23 PDT
Committed
r191687
: <
http://trac.webkit.org/changeset/191687
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug