WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
67299
Add Android's platform specification and atomic functions
https://bugs.webkit.org/show_bug.cgi?id=67299
Summary
Add Android's platform specification and atomic functions
Peter Beverloo
Reported
2011-08-31 10:42:11 PDT
This will re-add the Platform.h changes removed in
r94191
, and adds Android's atomic functions to WTF.
Attachments
Patch
(3.40 KB, patch)
2011-08-31 10:43 PDT
,
Peter Beverloo
no flags
Details
Formatted Diff
Diff
Patch
(3.39 KB, patch)
2011-08-31 11:39 PDT
,
Peter Beverloo
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Peter Beverloo
Comment 1
2011-08-31 10:43:15 PDT
Created
attachment 105790
[details]
Patch
Steve Block
Comment 2
2011-08-31 10:59:37 PDT
Comment on
attachment 105790
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=105790&action=review
LGTM, but I'd like to get somebody else to take a look to double-check the change to Platform.h, perhaps Maciej? Also, shouldn't this bug block
Bug 66689
?
> Source/JavaScriptCore/wtf/Atomics.h:109 > +inline int atomicDecrement(int volatile* addend) { return __atomic_dec(addend); }
So __atomic_inc/dec() are functionally identical to android_atomic_inc/dec() removed in
r94191
, but are in the NDK, right?
> Source/JavaScriptCore/wtf/Platform.h:306 > +/* OS(ANDRO67299ID) - Android */
??!!
Peter Beverloo
Comment 3
2011-08-31 11:39:56 PDT
Created
attachment 105805
[details]
Patch
Peter Beverloo
Comment 4
2011-08-31 11:41:50 PDT
(In reply to
comment #2
)
> (From update of
attachment 105790
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=105790&action=review
> > LGTM, but I'd like to get somebody else to take a look to double-check the change to Platform.h, perhaps Maciej?
Ok, thanks.
> > Also, shouldn't this bug block
Bug 66689
?
Yes, you're right. I've added the bug, but won't remove the main one as that'll unnecessarily mail all cc'ed people again.
> > > Source/JavaScriptCore/wtf/Atomics.h:109 > > +inline int atomicDecrement(int volatile* addend) { return __atomic_dec(addend); } > > So __atomic_inc/dec() are functionally identical to android_atomic_inc/dec() removed in
r94191
, but are in the NDK, right?
Yes.
> > > Source/JavaScriptCore/wtf/Platform.h:306 > > +/* OS(ANDRO67299ID) - Android */ > > ??!!
Ugh, fixed.
Adam Barth
Comment 5
2011-08-31 13:54:07 PDT
Comment on
attachment 105805
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=105805&action=review
The Platform.h changes look fine to me.
> Source/JavaScriptCore/wtf/Platform.h:698 > #if !OS(WINDOWS) && !OS(SOLARIS) && !OS(QNX) \ > && !OS(SYMBIAN) && !OS(HAIKU) && !OS(RVCT) \ > - && !PLATFORM(BREWMP) > + && !OS(ANDROID) && !PLATFORM(BREWMP)
This should probably be a whitelist, but that's a change for another day.
WebKit Review Bot
Comment 6
2011-08-31 14:47:21 PDT
Comment on
attachment 105805
[details]
Patch Clearing flags on attachment: 105805 Committed
r94235
: <
http://trac.webkit.org/changeset/94235
>
WebKit Review Bot
Comment 7
2011-08-31 14:47:26 PDT
All reviewed patches have been landed. Closing bug.
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