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/ftl/FTLCompile.cpp

    r176890 r177222  
    323323        RELEASE_ASSERT(didSeeUnwindInfo);
    324324       
    325         OwnPtr<LinkBuffer> linkBuffer = adoptPtr(new LinkBuffer(
    326             vm, exitThunkGenerator, codeBlock, JITCompilationMustSucceed));
     325        auto linkBuffer = std::make_unique<LinkBuffer>(
     326            vm, exitThunkGenerator, codeBlock, JITCompilationMustSucceed);
    327327       
    328328        RELEASE_ASSERT(state.finalizer->osrExit.size() == state.jitCode->osrExit.size());
     
    360360        }
    361361       
    362         state.finalizer->exitThunksLinkBuffer = linkBuffer.release();
     362        state.finalizer->exitThunksLinkBuffer = WTF::move(linkBuffer);
    363363    }
    364364
     
    484484        MacroAssembler::Jump exceptionJump = slowPathJIT.jump();
    485485       
    486         state.finalizer->sideCodeLinkBuffer = adoptPtr(
    487             new LinkBuffer(vm, slowPathJIT, codeBlock, JITCompilationMustSucceed));
     486        state.finalizer->sideCodeLinkBuffer = std::make_unique<LinkBuffer>(vm, slowPathJIT, codeBlock, JITCompilationMustSucceed);
    488487        state.finalizer->sideCodeLinkBuffer->link(
    489488            exceptionJump, state.finalizer->handleExceptionsLinkBuffer->entrypoint());
Note: See TracChangeset for help on using the changeset viewer.