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

Unified Diff: runtime/vm/base_isolate.h

Issue 195733009: Basic tag infrastructure (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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 5fb336d164b02b3e72d1723c35c6a935fd2d9be3..33d183683c3812a6bdea728286e3c4ed65d8ee64 100644
--- a/runtime/vm/base_isolate.h
+++ b/runtime/vm/base_isolate.h
@@ -98,6 +98,14 @@ class BaseIsolate {
static void AssertCurrent(BaseIsolate* isolate);
#endif
+ uword vm_tag() const {
+ return vm_tag_;
+ }
+
+ void set_vm_tag(uword tag) {
+ vm_tag_ = tag;
+ }
+
protected:
BaseIsolate()
: top_resource_(NULL),
@@ -107,7 +115,8 @@ class BaseIsolate {
no_handle_scope_depth_(0),
no_gc_scope_depth_(0),
#endif
- no_callback_scope_depth_(0)
+ no_callback_scope_depth_(0),
+ vm_tag_(0)
{}
~BaseIsolate() {
@@ -122,6 +131,7 @@ class BaseIsolate {
int32_t no_gc_scope_depth_;
#endif
int32_t no_callback_scope_depth_;
+ uword vm_tag_;
private:
DISALLOW_COPY_AND_ASSIGN(BaseIsolate);
« 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