Ignore:
Timestamp:
Nov 28, 2014, 11:11:50 PM (11 years ago)
Author:
[email protected]
Message:

Use std::unique_ptr<>|make_unique<> in ftl, bytecode of JSC
https://bugs.webkit.org/show_bug.cgi?id=139063

Reviewed by Andreas Kling.

Clean up OwnPtr and PassOwnPtr in JSC.

  • bytecode/StructureStubClearingWatchpoint.cpp:

(JSC::StructureStubClearingWatchpoint::push):

  • bytecode/StructureStubClearingWatchpoint.h:

(JSC::StructureStubClearingWatchpoint::StructureStubClearingWatchpoint):

  • ftl/FTLCompile.cpp:

(JSC::FTL::mmAllocateDataSection):

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

(JSC::FTL::link):

  • parser/SourceProviderCacheItem.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ftl/FTLCompile.cpp

    r173509 r176572  
    309309        checkJIT.jumpToExceptionHandler();
    310310
    311         OwnPtr<LinkBuffer> linkBuffer = adoptPtr(new LinkBuffer(
    312             vm, checkJIT, codeBlock, JITCompilationMustSucceed));
     311        auto linkBuffer = std::make_unique<LinkBuffer>(
     312            vm, checkJIT, codeBlock, JITCompilationMustSucceed);
    313313        linkBuffer->link(callLookupExceptionHandler, FunctionPtr(lookupExceptionHandler));
    314314        linkBuffer->link(callLookupExceptionHandlerFromCallerFrame, FunctionPtr(lookupExceptionHandlerFromCallerFrame));
    315315
    316         state.finalizer->handleExceptionsLinkBuffer = linkBuffer.release();
     316        state.finalizer->handleExceptionsLinkBuffer = WTF::move(linkBuffer);
    317317    }
    318318
Note: See TracChangeset for help on using the changeset viewer.