Changeset 54785 in webkit for trunk/JavaScriptCore/API/JSContextRef.cpp
- Timestamp:
- Feb 15, 2010, 12:32:15 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/JSContextRef.cpp
r53460 r54785 121 121 { 122 122 ExecState* exec = toJS(ctx); 123 APIEntryShim entryShim(exec, false); 123 JSLock lock(exec); 124 125 JSGlobalData& globalData = exec->globalData(); 126 IdentifierTable* savedIdentifierTable = setCurrentIdentifierTable(globalData.identifierTable); 124 127 125 128 gcUnprotect(exec->dynamicGlobalObject()); 126 129 127 JSGlobalData& globalData = exec->globalData();128 130 if (globalData.refCount() == 2) { // One reference is held by JSGlobalObject, another added by JSGlobalContextRetain(). 129 131 // The last reference was released, this is our last chance to collect. … … 133 135 134 136 globalData.deref(); 137 138 setCurrentIdentifierTable(savedIdentifierTable); 135 139 } 136 140
Note:
See TracChangeset
for help on using the changeset viewer.