Changeset 200139 in webkit


Ignore:
Timestamp:
Apr 27, 2016 12:00:22 PM (8 years ago)
Author:
mark.lam@apple.com
Message:

Address feedback from https://bugs.webkit.org/show_bug.cgi?id=157048#c5.
https://bugs.webkit.org/show_bug.cgi?id=157096

Reviewed by Geoffrey Garen.

  1. Check for USE(APPLE_INTERNAL_SDK) instead of has_include(<mach-o/dyld_priv.h>).
  2. Rename webkitFirstSDKVersionWithInitConstructorSupport to firstSDKVersionWithInitConstructorSupport.
  • API/JSWrapperMap.mm:

(supportsInitMethodConstructors):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/API/JSWrapperMap.mm

    r200115 r200139  
    4545#include <mach-o/dyld.h>
    4646
    47 #if __has_include(<mach-o/dyld_priv.h>)
     47#if USE(APPLE_INTERNAL_SDK)
    4848#include <mach-o/dyld_priv.h>
    4949#endif
     
    5252#if PLATFORM(APPLETV)
    5353#elif PLATFORM(IOS)
    54 static const uint32_t webkitFirstSDKVersionWithInitConstructorSupport = 0x80000; // iOS 8.0.0
     54static const uint32_t firstSDKVersionWithInitConstructorSupport = 0x80000; // iOS 8.0.0
    5555#elif PLATFORM(MAC)
    56 static const uint32_t webkitFirstSDKVersionWithInitConstructorSupport = 0xA0A00; // OSX 10.10.0
     56static const uint32_t firstSDKVersionWithInitConstructorSupport = 0xA0A00; // OSX 10.10.0
    5757#endif
    5858
     
    665665    if (!programSDKVersion)
    666666        programSDKVersion = dyld_get_program_sdk_version();
    667     return programSDKVersion >= webkitFirstSDKVersionWithInitConstructorSupport;
     667    return programSDKVersion >= firstSDKVersionWithInitConstructorSupport;
    668668#endif
    669669}
  • trunk/Source/JavaScriptCore/ChangeLog

    r200136 r200139  
     12016-04-27  Mark Lam  <mark.lam@apple.com>
     2
     3        Address feedback from https://bugs.webkit.org/show_bug.cgi?id=157048#c5.
     4        https://bugs.webkit.org/show_bug.cgi?id=157096
     5
     6        Reviewed by Geoffrey Garen.
     7
     8        1. Check for USE(APPLE_INTERNAL_SDK) instead of __has_include(<mach-o/dyld_priv.h>).
     9        2. Rename webkitFirstSDKVersionWithInitConstructorSupport to
     10           firstSDKVersionWithInitConstructorSupport.
     11
     12        * API/JSWrapperMap.mm:
     13        (supportsInitMethodConstructors):
     14
    1152016-04-27  Mark Lam  <mark.lam@apple.com>
    216
Note: See TracChangeset for help on using the changeset viewer.