Changeset 39360 in webkit for trunk/JavaScriptCore
- Timestamp:
- Dec 17, 2008, 10:10:51 AM (16 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/JSContextRef.cpp
r39330 r39360 61 61 JSGlobalContextRef JSGlobalContextCreate(JSClassRef globalObjectClass) 62 62 { 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) 64 67 if (NSVersionOfLinkTimeLibrary("JavaScriptCore") <= webkitFirstVersionWithConcurrentGlobalContexts) { 68 #else 69 { 70 #endif 65 71 JSLock lock(true); 66 72 return JSGlobalContextCreateInGroup(toRef(&JSGlobalData::sharedInstance()), globalObjectClass); 67 73 } 68 #endif 74 #endif // PLATFORM(DARWIN) 75 69 76 return JSGlobalContextCreateInGroup(0, globalObjectClass); 70 77 } -
trunk/JavaScriptCore/ChangeLog
r39354 r39360 1 2008-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 1 10 2008-12-16 Sam Weinig <[email protected]> 2 11
Note:
See TracChangeset
for help on using the changeset viewer.