Changeset 38375 in webkit for trunk/JavaScriptCore/jsc.cpp
- Timestamp:
- Nov 13, 2008, 11:50:13 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/jsc.cpp
r38249 r38375 252 252 } 253 253 254 JSValue* functionQuit(ExecState*, JSObject*, JSValue*, const ArgList&) 255 { 254 JSValue* functionQuit(ExecState* exec, JSObject*, JSValue*, const ArgList&) 255 { 256 { 257 JSLock lock(false); 258 JSGlobalData& globalData = exec->globalData(); 259 globalData.heap.destroy(); 260 globalData.deref(); 261 } 262 256 263 exit(0); 257 264 #if !COMPILER(MSVC) … … 292 299 293 300 int res = 0; 301 RefPtr<JSGlobalData> globalData = JSGlobalData::create(); 294 302 TRY 295 res = jscmain(argc, argv, JSGlobalData::create().releaseRef());303 res = jscmain(argc, argv, globalData.get()); 296 304 EXCEPT(res = 3) 305 { 306 JSLock lock(false); 307 globalData->heap.destroy(); 308 } 297 309 return res; 298 310 }
Note:
See TracChangeset
for help on using the changeset viewer.