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

Unified Diff: runtime/observatory/lib/src/models/objects/sentinel.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/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..f45e43193f24cafeb2cbcf0d1bc84be5f948401c
--- /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.
+ initializing,
+ /// 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;
+}

Powered by Google App Engine
This is Rietveld 408576698