Changeset 38381 in webkit for trunk/JavaScriptCore/jsc.cpp
- Timestamp:
- Nov 13, 2008, 7:45:32 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/jsc.cpp
r38375 r38381 298 298 #endif 299 299 300 // We can't use destructors in the following code because it uses Windows 301 // Structured Exception Handling 300 302 int res = 0; 301 RefPtr<JSGlobalData> globalData = JSGlobalData::create();303 JSGlobalData* globalData = JSGlobalData::create().releaseRef(); 302 304 TRY 303 res = jscmain(argc, argv, globalData .get());305 res = jscmain(argc, argv, globalData); 304 306 EXCEPT(res = 3) 305 { 306 JSLock lock(false); 307 globalData->heap.destroy(); 308 } 307 308 JSLock::lock(false); 309 globalData->heap.destroy(); 310 JSLock::unlock(false); 311 312 globalData->deref(); 309 313 return res; 310 314 }
Note:
See TracChangeset
for help on using the changeset viewer.