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

Unified Diff: runtime/vm/object_store.cc

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.cc
diff --git a/runtime/vm/object_store.cc b/runtime/vm/object_store.cc
index bc9e3262480155db249fa1d7d9029a233be997de..fe19a3a9c0c4f6f74a45c712a00727fe09c65c87 100644
--- a/runtime/vm/object_store.cc
+++ b/runtime/vm/object_store.cc
@@ -53,6 +53,8 @@ ObjectStore::ObjectStore()
jsregexp_class_(Class::null()),
weak_property_class_(Class::null()),
mirror_reference_class_(Class::null()),
+ user_tag_class_(Class::null()),
+ tag_table_(GrowableObjectArray::null()),
symbol_table_(Array::null()),
canonical_type_arguments_(Array::null()),
async_library_(Library::null()),
@@ -123,6 +125,9 @@ bool ObjectStore::PreallocateObjects() {
}
set_stack_overflow(Instance::Cast(result));
+ ASSERT(this->tag_table() == GrowableObjectArray::null());
+ this->tag_table_ = GrowableObjectArray::New();
+
result = DartLibraryCalls::InstanceCreate(library,
Symbols::OutOfMemoryError(),
Symbols::Dot(),
« runtime/vm/object.cc ('K') | « runtime/vm/object_store.h ('k') | runtime/vm/profiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698