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

Unified Diff: vm/base_isolate.h

Issue 12036098: First set of changes towards cleaning up the bytearray access APIs (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 7 years, 11 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 | « include/dart_api.h ('k') | vm/dart_api_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/base_isolate.h
===================================================================
--- vm/base_isolate.h (revision 17884)
+++ vm/base_isolate.h (working copy)
@@ -80,6 +80,20 @@
#endif
}
+ int32_t no_callback_scope_depth() const {
+ return no_callback_scope_depth_;
+ }
+
+ void IncrementNoCallbackScopeDepth() {
+ ASSERT(no_callback_scope_depth_ < INT_MAX);
+ no_callback_scope_depth_ += 1;
+ }
+
+ void DecrementNoCallbackScopeDepth() {
+ ASSERT(no_callback_scope_depth_ > 0);
+ no_callback_scope_depth_ -= 1;
+ }
+
#if defined(DEBUG)
static void AssertCurrent(BaseIsolate* isolate);
#endif
@@ -87,14 +101,13 @@
protected:
BaseIsolate()
: top_resource_(NULL),
+ current_zone_(NULL),
#if defined(DEBUG)
- current_zone_(NULL),
top_handle_scope_(NULL),
no_handle_scope_depth_(0),
- no_gc_scope_depth_(0)
-#else
- current_zone_(NULL)
+ no_gc_scope_depth_(0),
#endif
+ no_callback_scope_depth_(0)
{}
~BaseIsolate() {
@@ -108,6 +121,7 @@
int32_t no_handle_scope_depth_;
int32_t no_gc_scope_depth_;
#endif
+ int32_t no_callback_scope_depth_;
DISALLOW_COPY_AND_ASSIGN(BaseIsolate);
};
« no previous file with comments | « include/dart_api.h ('k') | vm/dart_api_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698