OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "platform/v8_inspector/V8Debugger.h" | 5 #include "platform/v8_inspector/V8Debugger.h" |
6 | 6 |
7 #include "platform/v8_inspector/DebuggerScript.h" | 7 #include "platform/v8_inspector/DebuggerScript.h" |
8 #include "platform/v8_inspector/ScriptBreakpoint.h" | 8 #include "platform/v8_inspector/ScriptBreakpoint.h" |
9 #include "platform/v8_inspector/V8Compat.h" | 9 #include "platform/v8_inspector/V8Compat.h" |
10 #include "platform/v8_inspector/V8DebuggerAgentImpl.h" | 10 #include "platform/v8_inspector/V8DebuggerAgentImpl.h" |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 v8::Local<v8::Array> hitBreakpoints; | 243 v8::Local<v8::Array> hitBreakpoints; |
244 handleProgramBreak(m_pausedContext, m_executionState, exception, hitBrea
kpoints); | 244 handleProgramBreak(m_pausedContext, m_executionState, exception, hitBrea
kpoints); |
245 return; | 245 return; |
246 } | 246 } |
247 | 247 |
248 if (!canBreakProgram()) | 248 if (!canBreakProgram()) |
249 return; | 249 return; |
250 | 250 |
251 v8::HandleScope scope(m_isolate); | 251 v8::HandleScope scope(m_isolate); |
252 v8::Local<v8::Function> breakFunction; | 252 v8::Local<v8::Function> breakFunction; |
253 if (!v8::Function::New(m_isolate->GetCurrentContext(), &V8Debugger::breakPro
gramCallback, v8::External::New(m_isolate, this), 0, v8::ConstructorBehavior::kT
hrow).ToLocal(&breakFunction)) | 253 if (!V8_FUNCTION_NEW_REMOVE_PROTOTYPE(m_isolate->GetCurrentContext(), &V8Deb
ugger::breakProgramCallback, v8::External::New(m_isolate, this), 0).ToLocal(&bre
akFunction)) |
254 return; | 254 return; |
255 v8::Debug::Call(debuggerContext(), breakFunction).ToLocalChecked(); | 255 v8::Debug::Call(debuggerContext(), breakFunction).ToLocalChecked(); |
256 } | 256 } |
257 | 257 |
258 void V8Debugger::continueProgram() | 258 void V8Debugger::continueProgram() |
259 { | 259 { |
260 if (isPaused()) | 260 if (isPaused()) |
261 m_inspector->client()->quitMessageLoopOnPause(); | 261 m_inspector->client()->quitMessageLoopOnPause(); |
262 m_pausedContext.Clear(); | 262 m_pausedContext.Clear(); |
263 m_executionState.Clear(); | 263 m_executionState.Clear(); |
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
829 return nullptr; | 829 return nullptr; |
830 | 830 |
831 size_t stackSize = fullStack ? V8StackTraceImpl::maxCallStackSizeToCapture :
1; | 831 size_t stackSize = fullStack ? V8StackTraceImpl::maxCallStackSizeToCapture :
1; |
832 if (m_inspector->enabledRuntimeAgentForGroup(contextGroupId)) | 832 if (m_inspector->enabledRuntimeAgentForGroup(contextGroupId)) |
833 stackSize = V8StackTraceImpl::maxCallStackSizeToCapture; | 833 stackSize = V8StackTraceImpl::maxCallStackSizeToCapture; |
834 | 834 |
835 return V8StackTraceImpl::capture(this, contextGroupId, stackSize); | 835 return V8StackTraceImpl::capture(this, contextGroupId, stackSize); |
836 } | 836 } |
837 | 837 |
838 } // namespace blink | 838 } // namespace blink |
OLD | NEW |