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

Unified Diff: runtime/vm/precompiler.cc

Issue 3003253002: [vm, aot] Ensure fixups applied after the world has been compiled are applied to closures in finall… (Closed)
Patch Set: Created 3 years, 4 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 | runtime/vm/runtime_entry.cc » ('j') | 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 787b4b28b454340fe8a56bcb5bad1bb9f9fbf9d2..4d8279d1d204f93121524380b087165c661579ed 100644
--- a/runtime/vm/precompiler.cc
+++ b/runtime/vm/precompiler.cc
@@ -2186,6 +2186,16 @@ void Precompiler::BindStaticCalls() {
};
BindStaticCallsVisitor visitor(Z);
+
+ // This visit misses functions compiled outside of the treeshaker's
+ // queue.
+ FunctionSet::Iterator it(enqueued_functions_.GetIterator());
+ for (const Function** current = it.Next(); current != NULL;
+ current = it.Next()) {
+ visitor.Visit(**current);
+ }
+
+ // This visit misses closures from duplicated finally clauses.
siva 2017/08/23 20:11:37 Maybe the comment should be more clear , stating t
rmacnak 2017/08/23 23:25:58 Yes, I like that better.
ProgramVisitor::VisitFunctions(&visitor);
}
@@ -2274,6 +2284,16 @@ void Precompiler::SwitchICCalls() {
ASSERT(!I->compilation_allowed());
SwitchICCallsVisitor visitor(Z);
+
+ // This visit misses functions compiled outside of the treeshaker's
+ // queue.
+ FunctionSet::Iterator it(enqueued_functions_.GetIterator());
+ for (const Function** current = it.Next(); current != NULL;
+ current = it.Next()) {
+ visitor.Visit(**current);
+ }
+
+ // This visit misses closures from duplicated finally clauses.
siva 2017/08/23 20:11:37 Ditto comment here.
ProgramVisitor::VisitFunctions(&visitor);
#endif
}
« no previous file with comments | « no previous file | runtime/vm/runtime_entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698