Chromium Code Reviews| Index: runtime/observatory/lib/src/models/objects/sentinel.dart |
| diff --git a/runtime/observatory/lib/src/models/objects/sentinel.dart b/runtime/observatory/lib/src/models/objects/sentinel.dart |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..60f07a21e077abb8c8a9e83d29100990ab94d958 |
| --- /dev/null |
| +++ b/runtime/observatory/lib/src/models/objects/sentinel.dart |
| @@ -0,0 +1,28 @@ |
| +// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
| +// for details. All rights reserved. Use of this source code is governed by a |
| +// BSD-style license that can be found in the LICENSE file. |
| + |
| +part of models; |
| + |
| +enum SentinelKind { |
| + /// Indicates that the object referred to has been collected by the GC. |
| + collected, |
| + /// Indicates that an object id has expired. |
| + expired, |
| + /// Indicates that a variable or field has not been initialized. |
| + notInitialized, |
| + /// Indicates that a variable or field is in the process of being initialized. |
| + beingInitialized, |
|
Cutch
2016/08/15 23:27:08
initializing
cbernaschina
2016/08/16 00:01:44
Done.
|
| + /// Indicates that a variable has been eliminated by the optimizing compiler. |
| + optimizedOut, |
| + /// Reserved for future use. |
| + free, |
| +} |
| + |
| +abstract class Sentinel { |
| + /// What kind of sentinel is this? |
| + SentinelKind get kind; |
| + |
| + /// A reasonable string representation of this sentinel. |
| + String get valueAsString; |
| +} |