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

Unified Diff: runtime/observatory/lib/src/models/objects/object.dart

Issue 2244433003: Converted Observatory refs elements (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Merged with master Created 4 years, 4 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/observatory/lib/src/models/objects/object.dart
diff --git a/runtime/observatory/lib/src/models/objects/object.dart b/runtime/observatory/lib/src/models/objects/object.dart
index 829a60d2880250a4802b7ea7620cf8a3a085c577..7679c5d58c0b3b0e68195d0832fa33c7ad0fd476 100644
--- a/runtime/observatory/lib/src/models/objects/object.dart
+++ b/runtime/observatory/lib/src/models/objects/object.dart
@@ -9,4 +9,23 @@ abstract class ObjectRef {
String get id;
}
-abstract class Object implements ObjectRef {}
+abstract class Object implements ObjectRef {
+ /// [optional] If an object is allocated in the Dart heap, it will have
+ /// a corresponding class object.
+ ///
+ /// The class of a non-instance is not a Dart class, but is instead
+ /// an internal vm object.
+ ///
+ /// Moving an Object into or out of the heap is considered a
+ /// backwards compatible change for types other than Instance.
+ ClassRef get clazz;
+
+ /// [optional] The size of this object in the heap.
+ ///
+ /// If an object is not heap-allocated, then this field is omitted.
+ ///
+ /// Note that the size can be zero for some objects. In the current
+ /// VM implementation, this occurs for small integers, which are
+ /// stored entirely within their object pointers.
+ int get size;
+}

Powered by Google App Engine
This is Rietveld 408576698