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

Unified Diff: runtime/vm/object_store.h

Issue 230863005: Initial UserTag and dart:profiler library (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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
Index: runtime/vm/object_store.h
diff --git a/runtime/vm/object_store.h b/runtime/vm/object_store.h
index 36562357c2eb9031e272be27c464395d3afb2d63..047a16d03df58e644c41f284b06b7e2a1d3721fb 100644
--- a/runtime/vm/object_store.h
+++ b/runtime/vm/object_store.h
@@ -30,6 +30,7 @@ class ObjectStore {
kMath,
kMirrors,
kTypedData,
+ kProfiler,
};
~ObjectStore();
@@ -274,6 +275,26 @@ class ObjectStore {
mirror_reference_class_ = value.raw();
}
+ RawClass* user_tag_class() const {
+ return user_tag_class_;
+ }
+ void set_user_tag_class(const Class& value) {
+ user_tag_class_ = value.raw();
+ }
+
+ RawGrowableObjectArray* tag_table() const { return tag_table_; }
+ void set_tag_table(const GrowableObjectArray& value) {
+ tag_table_ = value.raw();
+ }
+
+ RawUserTag* current_tag() const { return current_tag_; }
+ void set_current_tag(const UserTag& tag) {
+ current_tag_ = tag.raw();
+ }
+ void clear_current_tag() {
+ current_tag_ = UserTag::null();
+ }
+
RawArray* symbol_table() const { return symbol_table_; }
void set_symbol_table(const Array& value) { symbol_table_ = value.raw(); }
@@ -294,6 +315,7 @@ class ObjectStore {
RawLibrary* math_library() const { return math_library_; }
RawLibrary* mirrors_library() const { return mirrors_library_; }
RawLibrary* typed_data_library() const { return typed_data_library_; }
+ RawLibrary* profiler_library() const { return profiler_library_; }
void set_bootstrap_library(BootstrapLibraryId index, const Library& value) {
switch (index) {
case kAsync:
@@ -323,6 +345,9 @@ class ObjectStore {
case kTypedData:
typed_data_library_ = value.raw();
break;
+ case kProfiler:
+ profiler_library_ = value.raw();
+ break;
default:
UNREACHABLE();
}
@@ -475,6 +500,9 @@ class ObjectStore {
RawClass* jsregexp_class_;
RawClass* weak_property_class_;
RawClass* mirror_reference_class_;
+ RawClass* user_tag_class_;
+ RawGrowableObjectArray* tag_table_;
+ RawUserTag* current_tag_;
siva 2014/04/09 21:32:01 current_tag_ and tag_table_ move to the isolate st
RawArray* symbol_table_;
RawArray* canonical_type_arguments_;
RawLibrary* async_library_;
@@ -489,6 +517,7 @@ class ObjectStore {
RawLibrary* native_wrappers_library_;
RawLibrary* root_library_;
RawLibrary* typed_data_library_;
+ RawLibrary* profiler_library_;
RawGrowableObjectArray* libraries_;
RawGrowableObjectArray* pending_classes_;
RawGrowableObjectArray* pending_functions_;

Powered by Google App Engine
This is Rietveld 408576698