Changeset 205575 in webkit
- Timestamp:
- Sep 7, 2016 5:16:39 PM (8 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r205571 r205575 1 2016-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 1 16 2016-09-07 Joseph Pecoraro <pecoraro@apple.com> 2 17 -
trunk/Source/JavaScriptCore/debugger/Debugger.cpp
r205571 r205575 129 129 , m_steppingMode(SteppingModeDisabled) 130 130 , m_reasonForPause(NotPaused) 131 , m_pauseOnCallFrame(0)132 , m_currentCallFrame(0)133 131 , m_lastExecutedLine(UINT_MAX) 134 132 , m_lastExecutedSourceID(noSourceID) … … 142 140 HashSet<JSGlobalObject*>::iterator end = m_globalObjects.end(); 143 141 for (HashSet<JSGlobalObject*>::iterator it = m_globalObjects.begin(); it != end; ++it) 144 (*it)->setDebugger( 0);142 (*it)->setDebugger(nullptr); 145 143 } 146 144 … … 169 167 // since there's no point in staying paused once a window closes. 170 168 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; 173 171 continueProgram(); 174 172 } … … 183 181 clearDebuggerRequests(globalObject); 184 182 185 globalObject->setDebugger( 0);183 globalObject->setDebugger(nullptr); 186 184 } 187 185 … … 600 598 601 599 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; 603 601 notifyDoneProcessingDebuggerEvents(); 604 602 } … … 619 617 pauseIfNeeded(callFrame); 620 618 if (!isStepping()) 621 m_currentCallFrame = 0;619 m_currentCallFrame = nullptr; 622 620 } 623 621 -
trunk/Source/JavaScriptCore/debugger/Debugger.h
r204440 r205575 220 220 ReasonForPause m_reasonForPause; 221 221 JSValue m_currentException; 222 CallFrame* m_pauseOnCallFrame ;223 CallFrame* m_currentCallFrame ;222 CallFrame* m_pauseOnCallFrame { nullptr }; 223 CallFrame* m_currentCallFrame { nullptr }; 224 224 unsigned m_lastExecutedLine; 225 225 SourceID m_lastExecutedSourceID;
Note: See TracChangeset
for help on using the changeset viewer.