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/tools/CodeProfile.h

    r157653 r177222  
    4242    {
    4343        if (parent)
    44             parent->addChild(this);
     44            parent->addChild(std::unique_ptr<CodeProfile>(this));
    4545    }
    4646
     
    5353    }
    5454   
    55     void addChild(CodeProfile* child)
     55    void addChild(std::unique_ptr<CodeProfile> child)
    5656    {
    57         m_children.append(adoptPtr(child));
     57        m_children.append(WTF::move(child));
    5858    }
    5959
     
    8383    unsigned m_lineNo;
    8484    CodeProfile* m_parent;
    85     Vector< OwnPtr<CodeProfile>> m_children;
     85    Vector<std::unique_ptr<CodeProfile>> m_children;
    8686    TieredMMapArray<CodeRecord> m_samples;
    8787
Note: See TracChangeset for help on using the changeset viewer.