WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
128098
Stop using PLATFORM(MAC) in JavaScriptCore except where it means “OS X but not iOS”
https://bugs.webkit.org/show_bug.cgi?id=128098
Summary
Stop using PLATFORM(MAC) in JavaScriptCore except where it means “OS X but no...
mitz
Reported
2014-02-02 23:40:02 PST
So that we can make PLATFORM(MAC) false when building for iOS, we need to replace all uses of it that don’t take iOS into account. Most such uses are about targeting Darwin.
Attachments
Replace PLATFORM(MAC) with alternatives appropriate for the context
(6.06 KB, patch)
2014-02-02 23:47 PST
,
mitz
darin
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
mitz
Comment 1
2014-02-02 23:47:47 PST
Created
attachment 222964
[details]
Replace PLATFORM(MAC) with alternatives appropriate for the context
Darin Adler
Comment 2
2014-02-03 00:06:27 PST
Comment on
attachment 222964
[details]
Replace PLATFORM(MAC) with alternatives appropriate for the context View in context:
https://bugs.webkit.org/attachment.cgi?id=222964&action=review
> Source/JavaScriptCore/runtime/Watchdog.h:29 > +#if OS(DARWIN) && !PLATFORM(EFL) && !PLATFORM(GTK)
I probably would have guarded this just by OS(DARWIN) even though the actual code is turned off for EFL and GTK.
mitz
Comment 3
2014-02-03 00:07:58 PST
(In reply to
comment #2
)
> (From update of
attachment 222964
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=222964&action=review
> > > Source/JavaScriptCore/runtime/Watchdog.h:29 > > +#if OS(DARWIN) && !PLATFORM(EFL) && !PLATFORM(GTK) > > I probably would have guarded this just by OS(DARWIN) even though the actual code is turned off for EFL and GTK.
Makes sense. I’ll change that to OS(DARWIN) alone.
mitz
Comment 4
2014-02-03 00:12:55 PST
Committed <
http://trac.webkit.org/r163291
>.
Darin Adler
Comment 5
2014-02-03 00:15:25 PST
Comment on
attachment 222964
[details]
Replace PLATFORM(MAC) with alternatives appropriate for the context View in context:
https://bugs.webkit.org/attachment.cgi?id=222964&action=review
>>> Source/JavaScriptCore/runtime/Watchdog.h:29 >>> +#if OS(DARWIN) && !PLATFORM(EFL) && !PLATFORM(GTK) >> >> I probably would have guarded this just by OS(DARWIN) even though the actual code is turned off for EFL and GTK. > > Makes sense. I’ll change that to OS(DARWIN) alone.
Glad you took my suggestion for the include here, but ...
> Source/JavaScriptCore/runtime/Watchdog.h:96 > +#if OS(DARWIN) && !PLATFORM(EFL) && !PLATFORM(GTK)
Looks like you also made this check just OS(DARWIN), and that was not what I was suggesting.
mitz
Comment 6
2014-02-03 00:20:28 PST
(In reply to
comment #5
)
> (From update of
attachment 222964
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=222964&action=review
> > >>> Source/JavaScriptCore/runtime/Watchdog.h:29 > >>> +#if OS(DARWIN) && !PLATFORM(EFL) && !PLATFORM(GTK) > >> > >> I probably would have guarded this just by OS(DARWIN) even though the actual code is turned off for EFL and GTK. > > > > Makes sense. I’ll change that to OS(DARWIN) alone. > > Glad you took my suggestion for the include here, but ... > > > Source/JavaScriptCore/runtime/Watchdog.h:96 > > +#if OS(DARWIN) && !PLATFORM(EFL) && !PLATFORM(GTK) > > Looks like you also made this check just OS(DARWIN), and that was not what I was suggesting.
I misunderstood you. I thought you meant that it would be OK to give EFL and GTK on Darwin those extra member variables in their Watchdog instances, even though they don’t use the WatchDogMac (though they could!). But I’ll undo that bit.
Darin Adler
Comment 7
2014-02-03 00:21:16 PST
Comment on
attachment 222964
[details]
Replace PLATFORM(MAC) with alternatives appropriate for the context View in context:
https://bugs.webkit.org/attachment.cgi?id=222964&action=review
>>>>> Source/JavaScriptCore/runtime/Watchdog.h:29 >>>>> +#if OS(DARWIN) && !PLATFORM(EFL) && !PLATFORM(GTK) >>>> >>>> I probably would have guarded this just by OS(DARWIN) even though the actual code is turned off for EFL and GTK. >>> >>> Makes sense. I’ll change that to OS(DARWIN) alone. >> >> Glad you took my suggestion for the include here, but ... > > I misunderstood you. I thought you meant that it would be OK to give EFL and GTK on Darwin those extra member variables in their Watchdog instances, even though they don’t use the WatchDogMac (though they could!). But I’ll undo that bit.
Who knows, that might be a good idea. It just wasn’t my idea.
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