Changeset 39360 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
Dec 17, 2008, 10:10:51 AM (16 years ago)
Author:
[email protected]
Message:

Reviewed by Darin Adler.

Don't use unique context group in JSGlobalContextCreate() on Tiger or Leopard, take two.

  • API/JSContextRef.cpp: The previous patch that claimed to do this was making Tiger and Leopard always use unique context group instead.
Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/API/JSContextRef.cpp

    r39330 r39360  
    6161JSGlobalContextRef JSGlobalContextCreate(JSClassRef globalObjectClass)
    6262{
    63 #if PLATFORM(DARWIN) && !defined(BUILDING_ON_TIGER) && !defined(BUILDING_ON_LEOPARD)
     63#if PLATFORM(DARWIN)
     64    // When running on Tiger or Leopard, or if the application was linked before JSGlobalContextCreate was changed
     65    // to use a unique JSGlobalData, we use a shared one for compatibility.
     66#if !defined(BUILDING_ON_TIGER) && !defined(BUILDING_ON_LEOPARD)
    6467    if (NSVersionOfLinkTimeLibrary("JavaScriptCore") <= webkitFirstVersionWithConcurrentGlobalContexts) {
     68#else
     69    {
     70#endif
    6571        JSLock lock(true);
    6672        return JSGlobalContextCreateInGroup(toRef(&JSGlobalData::sharedInstance()), globalObjectClass);
    6773    }
    68 #endif
     74#endif // PLATFORM(DARWIN)
     75
    6976    return JSGlobalContextCreateInGroup(0, globalObjectClass);
    7077}
  • trunk/JavaScriptCore/ChangeLog

    r39354 r39360  
     12008-12-17  Alexey Proskuryakov  <[email protected]>
     2
     3        Reviewed by Darin Adler.
     4
     5        Don't use unique context group in JSGlobalContextCreate() on Tiger or Leopard, take two.
     6
     7        * API/JSContextRef.cpp: The previous patch that claimed to do this was making Tiger and
     8        Leopard always use unique context group instead.
     9
    1102008-12-16  Sam Weinig  <[email protected]>
    211
Note: See TracChangeset for help on using the changeset viewer.