Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 part of models; | 5 part of models; |
| 6 | 6 |
| 7 abstract class ObjectRef { | 7 abstract class ObjectRef { |
| 8 /// A unique identifier for an Object. | 8 /// A unique identifier for an Object. |
| 9 String get id; | 9 String get id; |
| 10 } | 10 } |
| 11 | 11 |
| 12 abstract class Object implements ObjectRef {} | 12 abstract class Object implements ObjectRef { |
| 13 /// [optional] If an object is allocated in the Dart heap, it will have | |
| 14 /// a corresponding class object. | |
| 15 /// | |
| 16 /// The class of a non-instance is not a Dart class, but is instead | |
| 17 /// an internal vm object. | |
| 18 /// | |
| 19 /// Moving an Object into or out of the heap is considered a | |
| 20 /// backwards compatible change for types other than Instance. | |
| 21 //ClassRef get clazz; | |
|
Cutch
2016/08/15 23:27:08
why is this commented out?
cbernaschina
2016/08/16 00:01:44
Done.
| |
| 22 | |
| 23 /// [optional] The size of this object in the heap. | |
| 24 /// | |
| 25 /// If an object is not heap-allocated, then this field is omitted. | |
| 26 /// | |
| 27 /// Note that the size can be zero for some objects. In the current | |
| 28 /// VM implementation, this occurs for small integers, which are | |
| 29 /// stored entirely within their object pointers. | |
| 30 //int get size; | |
|
Cutch
2016/08/15 23:27:08
why is this commented out?
cbernaschina
2016/08/16 00:01:44
Done.
| |
| 31 } | |
| OLD | NEW |