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

Unified Diff: src/debug.h

Issue 612023002: Split even more runtime functions into separate files. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « BUILD.gn ('k') | src/objects.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/debug.h
diff --git a/src/debug.h b/src/debug.h
index a5119d0773946ef4c6302375ab51fba6675de510..7e792b69cf7aed9845f0d25a1feeec37facb6f5a 100644
--- a/src/debug.h
+++ b/src/debug.h
@@ -454,6 +454,10 @@ class Debug {
// Record function from which eval was called.
static void RecordEvalCaller(Handle<Script> script);
+ bool CheckExecutionState(int id) {
+ return !debug_context().is_null() && break_id() != 0 && break_id() == id;
+ }
+
// Flags and states.
DebugScope* debugger_entry() { return thread_local_.current_debug_scope_; }
inline Handle<Context> debug_context() { return debug_context_; }
« no previous file with comments | « BUILD.gn ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698