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

Unified Diff: runtime/vm/object_id_ring.h

Issue 177473004: Handle collected objects and expired handles more gracefully. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: gen js Created 6 years, 9 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/bin/vmservice/client/lib/src/elements/instance_ref.html ('k') | runtime/vm/object_id_ring.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object_id_ring.h
diff --git a/runtime/vm/object_id_ring.h b/runtime/vm/object_id_ring.h
index b0dfee7cea0eca5795e8eb6faec20dea36c29b3d..ee9038d3fe56c59a432a06992e6a844e1a18bd8f 100644
--- a/runtime/vm/object_id_ring.h
+++ b/runtime/vm/object_id_ring.h
@@ -28,6 +28,8 @@ class ObjectIdRing {
~ObjectIdRing();
int32_t GetIdForObject(RawObject* raw_obj);
+
+ // Returns Object::sentinel() when the id is not valid.
RawObject* GetObjectForId(int32_t id);
void VisitPointers(ObjectPointerVisitor* visitor);
« no previous file with comments | « runtime/bin/vmservice/client/lib/src/elements/instance_ref.html ('k') | runtime/vm/object_id_ring.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698