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

Side by Side Diff: Source/bindings/core/v8/ScriptDebugServer.cpp

Issue 473923002: DevTools: Prevent a debugger pause while executing js code in releaseObjectGroup (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2010-2011 Google Inc. All rights reserved. 2 * Copyright (c) 2010-2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 170
171 void ScriptDebugServer::setPauseOnNextStatement(bool pause) 171 void ScriptDebugServer::setPauseOnNextStatement(bool pause)
172 { 172 {
173 ASSERT(!isPaused()); 173 ASSERT(!isPaused());
174 if (pause) 174 if (pause)
175 v8::Debug::DebugBreak(m_isolate); 175 v8::Debug::DebugBreak(m_isolate);
176 else 176 else
177 v8::Debug::CancelDebugBreak(m_isolate); 177 v8::Debug::CancelDebugBreak(m_isolate);
178 } 178 }
179 179
180 bool ScriptDebugServer::pausingOnNextStatement()
Yang 2014/08/18 09:30:23 This name is somewhat misleading. Interrupts in V8
181 {
182 return v8::Debug::CheckDebugBreak(m_isolate);
183 }
184
180 bool ScriptDebugServer::canBreakProgram() 185 bool ScriptDebugServer::canBreakProgram()
181 { 186 {
182 if (!m_breakpointsActivated) 187 if (!m_breakpointsActivated)
183 return false; 188 return false;
184 return m_isolate->InContext(); 189 return m_isolate->InContext();
185 } 190 }
186 191
187 void ScriptDebugServer::breakProgram() 192 void ScriptDebugServer::breakProgram()
188 { 193 {
189 if (!canBreakProgram()) 194 if (!canBreakProgram())
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
677 { 682 {
678 return PassOwnPtr<ScriptSourceCode>(); 683 return PassOwnPtr<ScriptSourceCode>();
679 } 684 }
680 685
681 String ScriptDebugServer::preprocessEventListener(LocalFrame*, const String& sou rce, const String& url, const String& functionName) 686 String ScriptDebugServer::preprocessEventListener(LocalFrame*, const String& sou rce, const String& url, const String& functionName)
682 { 687 {
683 return source; 688 return source;
684 } 689 }
685 690
686 } // namespace blink 691 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698