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

Unified Diff: runtime/vm/base_isolate.h

Issue 16174008: - Create isolate specific resuable handles and use them in the hot lookup paths. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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/handles.h » ('j') | runtime/vm/isolate.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/base_isolate.h
===================================================================
--- runtime/vm/base_isolate.h (revision 24200)
+++ runtime/vm/base_isolate.h (working copy)
@@ -95,6 +95,16 @@
}
#if defined(DEBUG)
+ void set_reusable_handle_scope_active(bool value) {
+ reusable_handle_scope_active_ = value;
+ }
+
+ bool reusable_handle_scope_active() {
+ return reusable_handle_scope_active_;
+ }
+#endif
+
+#if defined(DEBUG)
static void AssertCurrent(BaseIsolate* isolate);
#endif
@@ -106,6 +116,7 @@
top_handle_scope_(NULL),
no_handle_scope_depth_(0),
no_gc_scope_depth_(0),
+ reusable_handle_scope_active_(false),
#endif
no_callback_scope_depth_(0)
{}
@@ -120,9 +131,11 @@
HandleScope* top_handle_scope_;
int32_t no_handle_scope_depth_;
int32_t no_gc_scope_depth_;
+ bool reusable_handle_scope_active_;
#endif
int32_t no_callback_scope_depth_;
+ private:
DISALLOW_COPY_AND_ASSIGN(BaseIsolate);
};
« no previous file with comments | « no previous file | runtime/vm/handles.h » ('j') | runtime/vm/isolate.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698