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

Unified Diff: runtime/vm/object.cc

Issue 23633002: Implementation for ClosureMirror.findInContext. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed comments + rebase Created 7 years, 3 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/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index 3d06df2278a2a6ae290817d2d91c0804c74117b0..d7ad1f50d4ba0892b193f3f42fe2b3436d4dc362 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -5653,6 +5653,13 @@ void Field::DeoptimizeDependentCode() const {
}
+bool Field::IsUninitialized() const {
+ const Instance& value = Instance::Handle(raw_ptr()->value_);
+ ASSERT(value.raw() != Object::transition_sentinel().raw());
+ return value.raw() == Object::sentinel().raw();
+}
+
+
void Field::UpdateCid(intptr_t cid) const {
if (guarded_cid() == kIllegalCid) {
// Field is assigned first time.
« runtime/lib/mirrors.cc ('K') | « runtime/vm/object.h ('k') | sdk/lib/mirrors/mirrors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698