Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: third_party/WebKit/Source/platform/v8_inspector/V8Debugger.cpp

Issue 2235753003: [DevTools] Older V8 compatibility (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698