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

Unified Diff: runtime/vm/precompiler.cc

Issue 2601903003: Add assert in the precompiler tree shaker to ensure that no redirecting (Closed)
Patch Set: Created 4 years 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/precompiler.cc
diff --git a/runtime/vm/precompiler.cc b/runtime/vm/precompiler.cc
index d190d5a65be8e2cac93fe8df4410293dfcc3b460..67f975e0f5f8eb5db275815308e27b115864cdd7 100644
--- a/runtime/vm/precompiler.cc
+++ b/runtime/vm/precompiler.cc
@@ -1002,6 +1002,8 @@ void Precompiler::AddTypesOf(const Class& cls) {
void Precompiler::AddTypesOf(const Function& function) {
if (function.IsNull()) return;
+ // We don't expect to see a reference to a redicting factory.
+ ASSERT(!function.IsRedirectingFactory());
if (functions_to_retain_.Lookup(&function) != NULL) return;
functions_to_retain_.Insert(&Function::ZoneHandle(Z, function.raw()));
« 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