Changeset 35853 in webkit for trunk/JavaScriptCore/API/JSBase.cpp
- Timestamp:
- Aug 20, 2008, 12:23:06 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/JSBase.cpp
r35775 r35853 35 35 #include <kjs/interpreter.h> 36 36 #include <kjs/JSGlobalObject.h> 37 #include <kjs/JSLock.h> 37 38 #include <kjs/JSObject.h> 38 39 … … 43 44 ExecState* exec = toJS(ctx); 44 45 exec->globalData().heap->registerThread(); 46 JSLock lock(exec); 45 47 46 48 JSObject* jsThisObject = toJS(thisObject); … … 67 69 ExecState* exec = toJS(ctx); 68 70 exec->globalData().heap->registerThread(); 71 JSLock lock(exec); 69 72 70 73 Completion completion = Interpreter::checkSyntax(exec->dynamicGlobalObject()->globalExec(), sourceURL->ustring(), startingLineNumber, script->ustring()); … … 92 95 Heap* heap = globalData.heap; 93 96 97 JSLock lock(globalData.isSharedInstance); 98 94 99 if (!heap->isBusy()) 95 100 heap->collect();
Note:
See TracChangeset
for help on using the changeset viewer.