Index: runtime/vm/object.cc |
=================================================================== |
--- runtime/vm/object.cc (revision 16939) |
+++ runtime/vm/object.cc (working copy) |
@@ -496,6 +496,23 @@ |
} |
+void Object::CreateInternalMetaData() { |
+ // Initialize meta data for VM internal classes. |
+ Class& cls = Class::Handle(); |
+ Array& fields = Array::Handle(); |
+ Field& fld = Field::Handle(); |
+ String& name = String::Handle(); |
+ |
+ // TODO(iposva): Add more of the VM classes here. |
+ cls = context_class_; |
+ fields = Array::New(1); |
+ name = Symbols::New("parent _"); |
cshapiro
2013/01/11 21:23:21
Maybe use @ instead of ' ' in the identifier so we
Ivan Posva
2013/01/11 23:05:37
Done.
|
+ fld = Field::New(name, false, false, false, cls, 0); |
+ fields.SetAt(0, fld); |
+ cls. SetFields(fields); |
cshapiro
2013/01/11 21:23:21
Horizontal space!
Ivan Posva
2013/01/11 23:05:37
Done.
|
+} |
+ |
+ |
// Make unused space in an object whose type has been transformed safe |
// for traversing during GC. |
// The unused part of the transformed object is marked as an Array |