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

Unified Diff: runtime/vm/base_isolate.h

Issue 1401413002: Move no_callback_scope_depth_ and cha_ from isolate -> thread (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Spelling fix Created 5 years, 2 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 | « no previous file | runtime/vm/compiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/base_isolate.h
diff --git a/runtime/vm/base_isolate.h b/runtime/vm/base_isolate.h
index 33c5f4d32e845afa3e98e1feaaad2424ca2f0465..833f7e5ec7dbb7d35263530448288e8a7f5aece6 100644
--- a/runtime/vm/base_isolate.h
+++ b/runtime/vm/base_isolate.h
@@ -26,28 +26,13 @@ class BaseIsolate {
void AssertCurrentThreadIsMutator() const {}
#endif // DEBUG
- 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
protected:
BaseIsolate()
- : mutator_thread_(NULL),
- no_callback_scope_depth_(0) {
+ : mutator_thread_(NULL) {
}
~BaseIsolate() {
@@ -55,7 +40,6 @@ class BaseIsolate {
}
Thread* mutator_thread_;
- int32_t no_callback_scope_depth_;
private:
// During migration, some deprecated interfaces will default to using the
« no previous file with comments | « no previous file | runtime/vm/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698