WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
190878
Add BPLATFORM(IOS_FAMILY)
https://bugs.webkit.org/show_bug.cgi?id=190878
Summary
Add BPLATFORM(IOS_FAMILY)
Alexey Proskuryakov
Reported
2018-10-24 10:14:19 PDT
Just like in WTF, BPLATFORM(IOS) is a misnomer. Change that to strictly match iOS, and add BPLATFORM(IOS_FAMILY).
Attachments
proposed patch
(8.00 KB, patch)
2018-10-24 10:19 PDT
,
Alexey Proskuryakov
saam
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Alexey Proskuryakov
Comment 1
2018-10-24 10:19:03 PDT
Created
attachment 353038
[details]
proposed patch Mostly mechanical. It may be worth verifying if BUSE_CHECK_NANO_MALLOC and GIGACAGE_ENABLED are defined correctly. I believe that I kept the behavior unchanged, but it's surprising that gigacage is only enabled on iOS proper. #if ((BOS(DARWIN) || BOS(LINUX)) && \ - (BCPU(X86_64) || (BCPU(ARM64) && !defined(__ILP32__) && (!BPLATFORM(IOS) || __IPHONE_OS_VERSION_MIN_REQUIRED >= 110300)))) + (BCPU(X86_64) || (BCPU(ARM64) && !defined(__ILP32__) && (!BPLATFORM(IOS_FAMILY) || BPLATFORM(IOS))))) #define GIGACAGE_ENABLED 1
Saam Barati
Comment 2
2018-10-24 13:09:11 PDT
Comment on
attachment 353038
[details]
proposed patch View in context:
https://bugs.webkit.org/attachment.cgi?id=353038&action=review
r=me
> Source/bmalloc/bmalloc/BPlatform.h:-241 > -#if ((BPLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 120000) || (BPLATFORM(WATCHOS) && __WATCH_OS_VERSION_MIN_REQUIRED >= 50000) || (BPLATFORM(APPLETV) && __TV_OS_VERSION_MIN_REQUIRED >= 120000)) \
Do we not care about building for iOS 11 anymore? I have no use for this, but does our perf infrastructure care?
Saam Barati
Comment 3
2018-10-24 13:09:28 PDT
(In reply to Alexey Proskuryakov from
comment #1
)
> Created
attachment 353038
[details]
> proposed patch > > Mostly mechanical. It may be worth verifying if BUSE_CHECK_NANO_MALLOC and > GIGACAGE_ENABLED are defined correctly. I believe that I kept the behavior > unchanged, but it's surprising that gigacage is only enabled on iOS proper. > > #if ((BOS(DARWIN) || BOS(LINUX)) && \ > - (BCPU(X86_64) || (BCPU(ARM64) && !defined(__ILP32__) && > (!BPLATFORM(IOS) || __IPHONE_OS_VERSION_MIN_REQUIRED >= 110300)))) > + (BCPU(X86_64) || (BCPU(ARM64) && !defined(__ILP32__) && > (!BPLATFORM(IOS_FAMILY) || BPLATFORM(IOS))))) > #define GIGACAGE_ENABLED 1
They look correct to me
Saam Barati
Comment 4
2018-10-24 13:14:52 PDT
Comment on
attachment 353038
[details]
proposed patch View in context:
https://bugs.webkit.org/attachment.cgi?id=353038&action=review
> Source/bmalloc/bmalloc/BPlatform.h:56 > +#if TARGET_OS_IOS
This is true for iPhone/iPad?
Alexey Proskuryakov
Comment 5
2018-10-24 13:59:13 PDT
> Do we not care about building for iOS 11 anymore? I have no use for this, but does our perf infrastructure care?
No, iOS 11 build is not longer supported by trunk. I'll be cleaning up more of the checks for older OS versions next.
> > +#if TARGET_OS_IOS > > This is true for iPhone/iPad?
Yes, these and only these (plus simulators of course).
Alexey Proskuryakov
Comment 6
2018-10-24 14:01:39 PDT
Committed
http://trac.webkit.org/r237399
Radar WebKit Bug Importer
Comment 7
2018-10-24 14:02:53 PDT
<
rdar://problem/45532352
>
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