Ignore:
Timestamp:
Dec 3, 2014, 6:52:51 PM (11 years ago)
Author:
[email protected]
Message:

Move JavaScriptCore/dfg to std::unique_ptr
https://bugs.webkit.org/show_bug.cgi?id=139169

Reviewed by Filip Pizlo.

Use std::unique_ptr<>|std::make_unique<> in JavaScriptCore/dfg directory.

  • dfg/DFGBasicBlock.h:
  • dfg/DFGJITCompiler.cpp:

(JSC::DFG::JITCompiler::JITCompiler):
(JSC::DFG::JITCompiler::compile):
(JSC::DFG::JITCompiler::link):
(JSC::DFG::JITCompiler::compileFunction):
(JSC::DFG::JITCompiler::linkFunction):

  • dfg/DFGJITCompiler.h:
  • dfg/DFGPlan.cpp:

(JSC::DFG::Plan::compileInThreadImpl):
(JSC::DFG::Plan::cancel):

  • dfg/DFGPlan.h:
  • dfg/DFGSlowPathGenerator.h:
  • dfg/DFGWorklist.h:
  • ftl/FTLFail.cpp:

(JSC::FTL::fail):

  • ftl/FTLState.cpp:

(JSC::FTL::State::State):

File:
1 edited

Legend:

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

    r173509 r176779  
    7777        break;
    7878    }
    79    
    80     finalizer = new JITFinalizer(graph.m_plan);
    81     graph.m_plan.finalizer = adoptPtr(finalizer);
     79
     80    graph.m_plan.finalizer = std::make_unique<JITFinalizer>(graph.m_plan);
     81    finalizer = static_cast<JITFinalizer*>(graph.m_plan.finalizer.get());
    8282}
    8383
Note: See TracChangeset for help on using the changeset viewer.