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

Unified Diff: src/vm-state.h

Issue 1572029: Fix debug builds. (Closed)
Patch Set: Created 10 years, 8 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 | « src/log.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/vm-state.h
diff --git a/src/vm-state.h b/src/vm-state.h
index a188c5d2f830a7143fc51447a989735b5f3989fa..241df4c9d48cbb36ce5f84378f7594ab831cbc5c 100644
--- a/src/vm-state.h
+++ b/src/vm-state.h
@@ -42,6 +42,11 @@ class VMState BASE_EMBEDDED {
external_callback_ = external_callback;
}
+ // Used for debug asserts.
+ static bool is_outermost_external() {
+ return current_state_ == NULL;
+ }
+
static StateTag current_state() {
return current_state_ ? current_state_->state() : EXTERNAL;
}
« no previous file with comments | « src/log.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698