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

Unified Diff: runtime/vm/object.cc

Issue 1151573022: Fix for issue 192 in domokit/mojo (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: add comment Created 5 years, 6 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
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/raw_object_snapshot.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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++;
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/raw_object_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698