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

Unified Diff: runtime/vm/object.cc

Issue 1621433002: Precompilation: Class::SetFunctions can shrink the number of functions, remember to clear the hash … (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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 | « no previous file | no next file » | 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 69a752ec90addcfc13c121db7dc694da6f7998c1..14e54ef0f8531a7356c80c7b8b86034117d7fdf6 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -2159,6 +2159,8 @@ void Class::SetFunctions(const Array& value) const {
set.Insert(func);
}
StorePointer(&raw_ptr()->functions_hash_table_, set.Release().raw());
+ } else {
+ StorePointer(&raw_ptr()->functions_hash_table_, Array::null());
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698