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

Unified Diff: runtime/vm/object_store.h

Issue 266913010: Refactor 'dart:profiler' UserTag API (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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 | « runtime/vm/object.cc ('k') | runtime/vm/object_store.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object_store.h
diff --git a/runtime/vm/object_store.h b/runtime/vm/object_store.h
index 2cafe526d4df99b57ee38e7f61a6aecae071ebd3..dbd6122fa27af01e04196322b164b9615aa158b5 100644
--- a/runtime/vm/object_store.h
+++ b/runtime/vm/object_store.h
@@ -397,6 +397,19 @@ class ObjectStore {
handle_message_function_ = function.raw();
}
+ RawUserTag* default_tag() const {
+ return default_tag_;
+ }
+ void set_default_tag(const UserTag& tag) {
+ // Only set once.
+ ASSERT(default_tag_ == UserTag::null());
+ ASSERT(!tag.IsNull());
+ default_tag_ = tag.raw();
+ }
+ static intptr_t default_tag_offset() {
+ return OFFSET_OF(ObjectStore, default_tag_);
+ }
+
// Visit all object pointers.
void VisitObjectPointers(ObjectPointerVisitor* visitor);
@@ -480,6 +493,7 @@ class ObjectStore {
RawStacktrace* preallocated_stack_trace_;
RawFunction* lookup_port_handler_;
RawFunction* handle_message_function_;
+ RawUserTag* default_tag_;
RawObject** to() {
return reinterpret_cast<RawObject**>(&handle_message_function_);
}
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/object_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698