Changeset 116809 in webkit for trunk/Source/JavaScriptCore/API/JSContextRef.cpp
- Timestamp:
- May 11, 2012, 3:17:00 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/API/JSContextRef.cpp
r115579 r116809 39 39 #include <wtf/text/StringHash.h> 40 40 41 #if OS(DARWIN) 42 #include <mach-o/dyld.h> 43 44 static const int32_t webkitFirstVersionWithConcurrentGlobalContexts = 0x2100500; // 528.5.0 45 #endif 46 41 47 using namespace JSC; 42 48 … … 68 74 { 69 75 initializeThreading(); 76 77 #if OS(DARWIN) 78 // If the application was linked before JSGlobalContextCreate was changed to use a unique JSGlobalData, 79 // we use a shared one for backwards compatibility. 80 if (NSVersionOfLinkTimeLibrary("JavaScriptCore") <= webkitFirstVersionWithConcurrentGlobalContexts) { 81 JSLock lock(LockForReal); 82 return JSGlobalContextCreateInGroup(toRef(&JSGlobalData::sharedInstance()), globalObjectClass); 83 } 84 #endif // OS(DARWIN) 85 70 86 return JSGlobalContextCreateInGroup(0, globalObjectClass); 71 87 }
Note:
See TracChangeset
for help on using the changeset viewer.