Changeset 172532 in webkit for trunk/Source/JavaScriptCore/API


Ignore:
Timestamp:
Aug 13, 2014, 12:43:25 PM (11 years ago)
Author:
[email protected]
Message:

[iOS] Make JavaScriptCore and bmalloc build with the public SDK
https://bugs.webkit.org/show_bug.cgi?id=135848

Reviewed by Geoffrey Garen.

Source/bmalloc:

  • bmalloc/BPlatform.h: Added macro BPLATFORM_IOS_SIMULATOR, which evaluates to true

when building for the iOS Simulator.

  • bmalloc/PerThread.h: Use pthread_machdep.h code path when building for iOS Simulator

using the public SDK.
(_pthread_setspecific_direct): Added; only defined when building for the iOS Simulator
using the public SDK.
(_pthread_getspecific_direct): Added; only defined when building for the iOS Simulator
using the public SDK.

Source/JavaScriptCore:

  • API/JSBase.h: Declare NSMap functions with external linkage when building for iOS without the

header <Foundation/NSMapTablePriv.h>.

  • inspector/remote/RemoteInspector.mm: Define XPC functions with external linkage when building

without the system header <xpc/xpc.h>.

  • inspector/remote/RemoteInspectorXPCConnection.h: Define xpc_connection_t and xpc_object_t when building

without the system header <xpc/xpc.h>.

  • inspector/remote/RemoteInspectorXPCConnection.mm: Declare XPC functions with external linkage when

building without without the system header <xpc/xpc.h>.
(Inspector::RemoteInspectorXPCConnection::closeOnQueue): Fix code style; use nullptr instead of NULL.
(Inspector::RemoteInspectorXPCConnection::sendMessage): Ditto.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/API/JSBase.h

    r165676 r172532  
    3333#ifdef __OBJC__
    3434#import <Foundation/Foundation.h>
     35
     36#if defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE
     37#if __has_include(<Foundation/NSMapTablePriv.h>)
     38#import <Foundation/NSMapTablePriv.h>
     39#else
     40extern "C" {
     41    void *NSMapGet(NSMapTable *, const void *key);
     42    void NSMapInsert(NSMapTable *, const void *key, const void *value);
     43    void NSMapRemove(NSMapTable *, const void *key);
     44}
    3545#endif
     46#endif // defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE
     47#endif // __OBJC__
    3648
    3749/* JavaScript engine interface */
Note: See TracChangeset for help on using the changeset viewer.