Ignore:
Timestamp:
Dec 12, 2014, 5:34:59 AM (10 years ago)
Author:
[email protected]
Message:

Final clean up OwnPtr in JSC - runtime, ftl, and tool directories
https://bugs.webkit.org/show_bug.cgi?id=139532

Reviewed by Mark Lam.

Final remove OwnPtr, PassOwnPtr in runtime, ftl, and tools directories of JSC.

  • builtins/BuiltinExecutables.h:
  • bytecode/CodeBlock.h:
  • bytecode/UnlinkedCodeBlock.cpp:

(JSC::generateFunctionCodeBlock):

  • ftl/FTLAbstractHeap.cpp:

(JSC::FTL::IndexedAbstractHeap::atSlow):

  • ftl/FTLAbstractHeap.h:
  • ftl/FTLCompile.cpp:

(JSC::FTL::mmAllocateDataSection):

  • ftl/FTLJITFinalizer.h:
  • jsc.cpp:

(jscmain):

  • parser/Lexer.h:
  • runtime/PropertyMapHashTable.h:

(JSC::PropertyTable::clearDeletedOffsets):
(JSC::PropertyTable::addDeletedOffset):

  • runtime/PropertyTable.cpp:

(JSC::PropertyTable::PropertyTable):

  • runtime/RegExpObject.cpp:
  • runtime/SmallStrings.cpp:
  • runtime/Structure.cpp:
  • runtime/StructureIDTable.cpp:

(JSC::StructureIDTable::StructureIDTable):
(JSC::StructureIDTable::resize):

  • runtime/StructureIDTable.h:
  • runtime/StructureTransitionTable.h:
  • runtime/VM.cpp:

(JSC::VM::VM):
(JSC::VM::~VM):

  • runtime/VM.h:
  • tools/CodeProfile.h:

(JSC::CodeProfile::CodeProfile):
(JSC::CodeProfile::addChild):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/VM.cpp

    r176836 r177222  
    154154    , propertyNames(nullptr)
    155155    , emptyList(new MarkedArgumentBuffer)
    156     , keywords(adoptPtr(new Keywords(*this)))
     156    , keywords(std::make_unique<Keywords>(*this))
    157157    , interpreter(0)
    158158    , jsArrayClassInfo(JSArray::info())
     
    242242
    243243#if ENABLE(JIT)
    244     jitStubs = adoptPtr(new JITThunks());
     244    jitStubs = std::make_unique<JITThunks>();
    245245    arityCheckFailReturnThunks = std::make_unique<ArityCheckFailReturnThunks>();
    246246#endif
     
    262262   
    263263    if (Options::enableProfiler()) {
    264         m_perBytecodeProfiler = adoptPtr(new Profiler::Database(*this));
     264        m_perBytecodeProfiler = std::make_unique<Profiler::Database>(*this);
    265265
    266266        StringPrintStream pathOut;
     
    274274#if ENABLE(DFG_JIT)
    275275    if (canUseJIT())
    276         dfgState = adoptPtr(new DFG::LongLivedState());
     276        dfgState = std::make_unique<DFG::LongLivedState>();
    277277#endif
    278278   
     
    304304   
    305305    // Clear this first to ensure that nobody tries to remove themselves from it.
    306     m_perBytecodeProfiler.clear();
    307    
     306    m_perBytecodeProfiler = nullptr;
     307
    308308    ASSERT(m_apiLock->currentThreadIsHoldingLock());
    309309    m_apiLock->willDestroyVM(this);
Note: See TracChangeset for help on using the changeset viewer.