Changeset 205575 in webkit


Ignore:
Timestamp:
Sep 7, 2016 5:16:39 PM (8 years ago)
Author:
commit-queue@webkit.org
Message:

Modernize Debugger to use nullptr
https://bugs.webkit.org/show_bug.cgi?id=161718

Patch by Joseph Pecoraro <Joseph Pecoraro> on 2016-09-07
Reviewed by Mark Lam.

  • debugger/Debugger.cpp:

(JSC::Debugger::Debugger):
(JSC::Debugger::~Debugger):
(JSC::Debugger::detach):
(JSC::Debugger::stepOutOfFunction):
(JSC::Debugger::updateCallFrameAndPauseIfNeeded):

  • debugger/Debugger.h:
Location:
trunk/Source/JavaScriptCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r205571 r205575  
     12016-09-07  Joseph Pecoraro  <pecoraro@apple.com>
     2
     3        Modernize Debugger to use nullptr
     4        https://bugs.webkit.org/show_bug.cgi?id=161718
     5
     6        Reviewed by Mark Lam.
     7
     8        * debugger/Debugger.cpp:
     9        (JSC::Debugger::Debugger):
     10        (JSC::Debugger::~Debugger):
     11        (JSC::Debugger::detach):
     12        (JSC::Debugger::stepOutOfFunction):
     13        (JSC::Debugger::updateCallFrameAndPauseIfNeeded):
     14        * debugger/Debugger.h:
     15
    1162016-09-07  Joseph Pecoraro  <pecoraro@apple.com>
    217
  • trunk/Source/JavaScriptCore/debugger/Debugger.cpp

    r205571 r205575  
    129129    , m_steppingMode(SteppingModeDisabled)
    130130    , m_reasonForPause(NotPaused)
    131     , m_pauseOnCallFrame(0)
    132     , m_currentCallFrame(0)
    133131    , m_lastExecutedLine(UINT_MAX)
    134132    , m_lastExecutedSourceID(noSourceID)
     
    142140    HashSet<JSGlobalObject*>::iterator end = m_globalObjects.end();
    143141    for (HashSet<JSGlobalObject*>::iterator it = m_globalObjects.begin(); it != end; ++it)
    144         (*it)->setDebugger(0);
     142        (*it)->setDebugger(nullptr);
    145143}
    146144
     
    169167    // since there's no point in staying paused once a window closes.
    170168    if (m_isPaused && m_currentCallFrame && m_currentCallFrame->vmEntryGlobalObject() == globalObject) {
    171         m_currentCallFrame = 0;
    172         m_pauseOnCallFrame = 0;
     169        m_currentCallFrame = nullptr;
     170        m_pauseOnCallFrame = nullptr;
    173171        continueProgram();
    174172    }
     
    183181        clearDebuggerRequests(globalObject);
    184182
    185     globalObject->setDebugger(0);
     183    globalObject->setDebugger(nullptr);
    186184}
    187185
     
    600598
    601599    VMEntryFrame* topVMEntryFrame = m_vm.topVMEntryFrame;
    602     m_pauseOnCallFrame = m_currentCallFrame ? m_currentCallFrame->callerFrame(topVMEntryFrame) : 0;
     600    m_pauseOnCallFrame = m_currentCallFrame ? m_currentCallFrame->callerFrame(topVMEntryFrame) : nullptr;
    603601    notifyDoneProcessingDebuggerEvents();
    604602}
     
    619617    pauseIfNeeded(callFrame);
    620618    if (!isStepping())
    621         m_currentCallFrame = 0;
     619        m_currentCallFrame = nullptr;
    622620}
    623621
  • trunk/Source/JavaScriptCore/debugger/Debugger.h

    r204440 r205575  
    220220    ReasonForPause m_reasonForPause;
    221221    JSValue m_currentException;
    222     CallFrame* m_pauseOnCallFrame;
    223     CallFrame* m_currentCallFrame;
     222    CallFrame* m_pauseOnCallFrame { nullptr };
     223    CallFrame* m_currentCallFrame { nullptr };
    224224    unsigned m_lastExecutedLine;
    225225    SourceID m_lastExecutedSourceID;
Note: See TracChangeset for help on using the changeset viewer.