Changeset 447 for trunk/JavaScriptCore/API/JSBase.cpp
- Timestamp:
- 08/20/08 13:23:52 (5 months ago)
- Files:
-
- trunk/JavaScriptCore/API/JSBase.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/JavaScriptCore/API/JSBase.cpp
r440 r447 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();
