Changeset 39360 in webkit for trunk/JavaScriptCore/API/JSContextRef.cpp
- Timestamp:
- Dec 17, 2008, 10:10:51 AM (16 years ago)
- File:
-
- 1 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 }
Note:
See TracChangeset
for help on using the changeset viewer.