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

Unified Diff: runtime/vm/snapshot.h

Issue 9303031: Add support for lists and backward references when decoding a message to a Dart_CObject object (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 11 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/snapshot.cc » ('j') | runtime/vm/snapshot.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/snapshot.h
diff --git a/runtime/vm/snapshot.h b/runtime/vm/snapshot.h
index 9389e81601e6a5c5e11f005707c24bbd9864aa89..a71e8cae03560e6b52c5a206e4c06f95d09ca168 100644
--- a/runtime/vm/snapshot.h
+++ b/runtime/vm/snapshot.h
@@ -449,12 +449,16 @@ class CMessageReader : public BaseReader {
Dart_CObject* ReadObjectImpl(intptr_t header);
Dart_CObject* ReadIndexedObject(intptr_t object_id);
+ // Add object to backward references.
+ void AddBackwardReference(intptr_t id, Dart_CObject* obj);
+
Dart_CObject_Internal* AsInternal(Dart_CObject* object) {
ASSERT(object->type >= Dart_CObject::kNumberOfTypes);
return reinterpret_cast<Dart_CObject_Internal*>(object);
}
ReAlloc alloc_;
+ GrowableArray<Dart_CObject*> backward_references_;
Dart_CObject type_arguments_marker;
Dart_CObject dynamic_type_marker;
« no previous file with comments | « no previous file | runtime/vm/snapshot.cc » ('j') | runtime/vm/snapshot.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698