Changeset 177222 in webkit for trunk/Source/JavaScriptCore/runtime/VM.cpp
- Timestamp:
- Dec 12, 2014, 5:34:59 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/VM.cpp
r176836 r177222 154 154 , propertyNames(nullptr) 155 155 , emptyList(new MarkedArgumentBuffer) 156 , keywords( adoptPtr(new Keywords(*this)))156 , keywords(std::make_unique<Keywords>(*this)) 157 157 , interpreter(0) 158 158 , jsArrayClassInfo(JSArray::info()) … … 242 242 243 243 #if ENABLE(JIT) 244 jitStubs = adoptPtr(new JITThunks());244 jitStubs = std::make_unique<JITThunks>(); 245 245 arityCheckFailReturnThunks = std::make_unique<ArityCheckFailReturnThunks>(); 246 246 #endif … … 262 262 263 263 if (Options::enableProfiler()) { 264 m_perBytecodeProfiler = adoptPtr(new Profiler::Database(*this));264 m_perBytecodeProfiler = std::make_unique<Profiler::Database>(*this); 265 265 266 266 StringPrintStream pathOut; … … 274 274 #if ENABLE(DFG_JIT) 275 275 if (canUseJIT()) 276 dfgState = adoptPtr(new DFG::LongLivedState());276 dfgState = std::make_unique<DFG::LongLivedState>(); 277 277 #endif 278 278 … … 304 304 305 305 // Clear this first to ensure that nobody tries to remove themselves from it. 306 m_perBytecodeProfiler .clear();307 306 m_perBytecodeProfiler = nullptr; 307 308 308 ASSERT(m_apiLock->currentThreadIsHoldingLock()); 309 309 m_apiLock->willDestroyVM(this);
Note:
See TracChangeset
for help on using the changeset viewer.