Index: runtime/vm/object.cc |
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc |
index dc5bbbe689c02fdbb5d9b4cc52c066445500a1f5..0d8ddc144d4b14b28dee4f3b50eb1be19f7a097a 100644 |
--- a/runtime/vm/object.cc |
+++ b/runtime/vm/object.cc |
@@ -13860,6 +13860,7 @@ RawInstance* Instance::CheckAndCanonicalize(const char** error_str) const { |
break; |
} |
if (this->CanonicalizeEquals(result)) { |
+ ASSERT(result.IsCanonical()); |
return result.raw(); |
} |
index++; |
@@ -16546,6 +16547,7 @@ RawMint* Mint::NewCanonical(int64_t value) { |
break; |
} |
if (canonical_value.value() == value) { |
+ ASSERT(canonical_value.IsCanonical()); |
return canonical_value.raw(); |
} |
index++; |