Index: runtime/vm/object.cc |
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc |
index 705432359fd6c69e77ac47798387c0acb18ed3d5..1962e0ba7390ac1457d89ac36d1e409a15e34bc1 100644 |
--- a/runtime/vm/object.cc |
+++ b/runtime/vm/object.cc |
@@ -6293,6 +6293,19 @@ void Field::set_guarded_list_length(intptr_t list_length) const { |
} |
+bool Field::IsUnboxedField() const { |
+ // TODO(johnmccutchan): Add kFloat32x4Cid here. |
+ return is_unboxing_candidate() && !is_final() && !is_nullable() && |
+ ((guarded_cid() == kDoubleCid)); |
+} |
+ |
+ |
+bool Field::IsPotentialUnboxedField() const { |
+ return is_unboxing_candidate() && |
+ (IsUnboxedField() || (!is_final() && (guarded_cid() == kIllegalCid))); |
+} |
+ |
+ |
const char* Field::ToCString() const { |
if (IsNull()) { |
return "Field::null"; |