WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
188081
[INTL] Remove INTL sub-feature compile flags
https://bugs.webkit.org/show_bug.cgi?id=188081
Summary
[INTL] Remove INTL sub-feature compile flags
Andy VanWagoner
Reported
2018-07-26 15:00:21 PDT
[INTL] Remove INTL sub-feature compile flags
Attachments
Patch
(54.47 KB, patch)
2018-07-26 15:07 PDT
,
Andy VanWagoner
no flags
Details
Formatted Diff
Diff
Patch
(55.37 KB, patch)
2018-07-26 15:19 PDT
,
Andy VanWagoner
no flags
Details
Formatted Diff
Diff
Patch
(55.20 KB, patch)
2018-07-26 17:58 PDT
,
Andy VanWagoner
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Andy VanWagoner
Comment 1
2018-07-26 15:07:57 PDT
Created
attachment 345877
[details]
Patch
Andy VanWagoner
Comment 2
2018-07-26 15:14:04 PDT
There was an ENABLE_JAVASCRIPT_I18N_API flag I couldn't find actually used anywhere, and the ENABLE_INTL_NUMBER_FORMAT_TO_PARTS and ENABLE_INTL_PLURAL_RULES only served to set the default for their respective runtime flags. Neither were used substantially to change compile behavior, so this removes them, and the runtime flags will be used exclusively. Hopefully this makes it easier for GTK to enable these features.
https://bugs.webkit.org/show_bug.cgi?id=185714
Andy VanWagoner
Comment 3
2018-07-26 15:19:24 PDT
Created
attachment 345880
[details]
Patch
Michael Catanzaro
Comment 4
2018-07-26 16:30:56 PDT
Comment on
attachment 345880
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=345880&action=review
Yay, fewer build flags! This looks good, except perhaps for one bit I have questions about:
> Source/JavaScriptCore/runtime/Options.h:115 > -#if ENABLE(INTL_NUMBER_FORMAT_TO_PARTS) && (!PLATFORM(COCOA) || ENABLE(EXPERIMENTAL_FEATURES)) > +#if (!PLATFORM(COCOA) || ENABLE(EXPERIMENTAL_FEATURES))
So the intention is for these features to be enabled for Apple only if experimental features are enabled, but enabled on other ports always? Isn't that pretty weird? What's the reasoning behind this? Are the features expected to be more stable on non-Apple ports? Surely this is enabling the feature for WPE/GTK right here?
Andy VanWagoner
Comment 5
2018-07-26 16:45:26 PDT
(In reply to Michael Catanzaro from
comment #4
)
> Comment on
attachment 345880
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=345880&action=review
> > Yay, fewer build flags! This looks good, except perhaps for one bit I have > questions about: > > > Source/JavaScriptCore/runtime/Options.h:115 > > -#if ENABLE(INTL_NUMBER_FORMAT_TO_PARTS) && (!PLATFORM(COCOA) || ENABLE(EXPERIMENTAL_FEATURES)) > > +#if (!PLATFORM(COCOA) || ENABLE(EXPERIMENTAL_FEATURES)) > > So the intention is for these features to be enabled for Apple only if > experimental features are enabled, but enabled on other ports always? Isn't > that pretty weird? What's the reasoning behind this? Are the features > expected to be more stable on non-Apple ports? > > Surely this is enabling the feature for WPE/GTK right here?
I could remove the constexpr here, and set it to default false below. Otherwise, as is, it is enabling it by default for all non-Apple ports. Is there another file where ports can enable runtime flags? I didn't add those conditions before, so I'm not positive they are correct without the INTL flags. That's why I haven't cq=? yet.
Michael Catanzaro
Comment 6
2018-07-26 17:40:31 PDT
(In reply to Andy VanWagoner from
comment #5
)
> I could remove the constexpr here, and set it to default false below. > Otherwise, as is, it is enabling it by default for all non-Apple ports. Is > there another file where ports can enable runtime flags?
No, this is the right place for JavaScriptCore options. It was changed in
bug #186319
.
> I didn't add those conditions before, so I'm not positive they are correct > without the INTL flags. That's why I haven't cq=? yet.
I think it's not worse than before, but it does enable the feature for non-Cocoa ports that use ENABLE(INTL), so that should be mentioned in the ChangeLog... but, looking through
bug #186319
, I think we should just change the guard to: #if ENABLE(EXPERIMENTAL_FEATURES) and then close
bug #185714
. Then, whenever the ENABLE(EXPERIMENTAL(FEATURES) guard is removed, it will become available automatically for all ports with newer ICU.
Andy VanWagoner
Comment 7
2018-07-26 17:58:11 PDT
Created
attachment 345891
[details]
Patch
WebKit Commit Bot
Comment 8
2018-07-26 22:06:10 PDT
Comment on
attachment 345891
[details]
Patch Clearing flags on attachment: 345891 Committed
r234293
: <
https://trac.webkit.org/changeset/234293
>
WebKit Commit Bot
Comment 9
2018-07-26 22:06:11 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 10
2018-07-26 22:07:18 PDT
<
rdar://problem/42650262
>
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