Changeset 52751 in webkit for trunk/JavaScriptCore/API/JSBase.cpp
- Timestamp:
- Jan 4, 2010, 11:18:31 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/JSBase.cpp
r52082 r52751 29 29 30 30 #include "APICast.h" 31 #include "APIShims.h" 31 32 #include "Completion.h" 32 33 #include "OpaqueJSString.h" … … 44 45 { 45 46 ExecState* exec = toJS(ctx); 46 exec->globalData().heap.registerThread(); 47 JSLock lock(exec); 47 APIEntryShim entryShim(exec); 48 48 49 49 JSObject* jsThisObject = toJS(thisObject); … … 70 70 { 71 71 ExecState* exec = toJS(ctx); 72 exec->globalData().heap.registerThread(); 73 JSLock lock(exec); 72 APIEntryShim entryShim(exec); 74 73 75 74 SourceCode source = makeSource(script->ustring(), sourceURL->ustring(), startingLineNumber); … … 95 94 96 95 ExecState* exec = toJS(ctx); 96 APIEntryShim entryShim(exec, false); 97 97 98 JSGlobalData& globalData = exec->globalData(); 98 99 JSLock lock(globalData.isSharedInstance ? LockForReal : SilenceAssertionsOnly);100 101 99 if (!globalData.heap.isBusy()) 102 100 globalData.heap.collectAllGarbage(); … … 110 108 { 111 109 ExecState* exec = toJS(ctx); 112 exec->globalData().heap.registerThread(); 113 JSLock lock(exec); 114 110 APIEntryShim entryShim(exec); 115 111 exec->globalData().heap.reportExtraMemoryCost(size); 116 112 }
Note:
See TracChangeset
for help on using the changeset viewer.