Changeset 39127 in webkit for trunk/JavaScriptCore/API/JSContextRef.cpp
- Timestamp:
- Dec 8, 2008, 10:46:39 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/JSContextRef.cpp
r38622 r39127 35 35 #include <wtf/Platform.h> 36 36 37 #if PLATFORM(DARWIN) 38 #include <mach-o/dyld.h> 39 40 static const int32_t webkitFirstVersionWithConcurrentGlobalContexts = 0x2100500; // 528.5.0 41 #endif 42 37 43 using namespace JSC; 38 44 … … 55 61 JSGlobalContextRef JSGlobalContextCreate(JSClassRef globalObjectClass) 56 62 { 57 JSLock lock(true); 58 return JSGlobalContextCreateInGroup(toRef(&JSGlobalData::sharedInstance()), globalObjectClass); 63 #if PLATFORM(DARWIN) 64 if (NSVersionOfLinkTimeLibrary("JavaScriptCore") <= webkitFirstVersionWithConcurrentGlobalContexts) { 65 JSLock lock(true); 66 return JSGlobalContextCreateInGroup(toRef(&JSGlobalData::sharedInstance()), globalObjectClass); 67 } 68 #endif 69 return JSGlobalContextCreateInGroup(0, globalObjectClass); 59 70 } 60 71
Note:
See TracChangeset
for help on using the changeset viewer.