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

Side by Side Diff: include/v8-debug.h

Issue 1136733002: Don't create debug context if debug listener is not set (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed review comment Created 5 years, 7 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
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2008 the V8 project authors. All rights reserved. 1 // Copyright 2008 the V8 project 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 #ifndef V8_V8_DEBUG_H_ 5 #ifndef V8_V8_DEBUG_H_
6 #define V8_V8_DEBUG_H_ 6 #define V8_V8_DEBUG_H_
7 7
8 #include "v8.h" 8 #include "v8.h"
9 9
10 /** 10 /**
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 * 241 *
242 * "Evaluate" debug command behavior currently is not specified in scope 242 * "Evaluate" debug command behavior currently is not specified in scope
243 * of this method. 243 * of this method.
244 */ 244 */
245 static void ProcessDebugMessages(); 245 static void ProcessDebugMessages();
246 246
247 /** 247 /**
248 * Debugger is running in its own context which is entered while debugger 248 * Debugger is running in its own context which is entered while debugger
249 * messages are being dispatched. This is an explicit getter for this 249 * messages are being dispatched. This is an explicit getter for this
250 * debugger context. Note that the content of the debugger context is subject 250 * debugger context. Note that the content of the debugger context is subject
251 * to change. 251 * to change. The Context exists only when the debugger is active, i.e. at
252 * least one DebugEventListener or MessageHandler is set.
252 */ 253 */
253 static Local<Context> GetDebugContext(); 254 static Local<Context> GetDebugContext();
254 255
255 256
256 /** 257 /**
257 * Enable/disable LiveEdit functionality for the given Isolate 258 * Enable/disable LiveEdit functionality for the given Isolate
258 * (default Isolate if not provided). V8 will abort if LiveEdit is 259 * (default Isolate if not provided). V8 will abort if LiveEdit is
259 * unexpectedly used. LiveEdit is enabled by default. 260 * unexpectedly used. LiveEdit is enabled by default.
260 */ 261 */
261 static void SetLiveEditEnabled(Isolate* isolate, bool enable); 262 static void SetLiveEditEnabled(Isolate* isolate, bool enable);
262 }; 263 };
263 264
264 265
265 } // namespace v8 266 } // namespace v8
266 267
267 268
268 #undef EXPORT 269 #undef EXPORT
269 270
270 271
271 #endif // V8_V8_DEBUG_H_ 272 #endif // V8_V8_DEBUG_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698