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

Unified Diff: runtime/vm/precompiler.cc

Issue 2781553004: Teach treeshaker about new cached functions and classes. (Closed)
Patch Set: Created 3 years, 9 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_store.cc ('k') | 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 0f9d8d9883254f634d25fbb6c5e4a9231ee2ce41..422d60aaeea703f7a08b3520bb11b285c8f5b1ab 100644
--- a/runtime/vm/precompiler.cc
+++ b/runtime/vm/precompiler.cc
@@ -482,11 +482,19 @@ void Precompiler::DoCompileAll(
DropScriptData();
I->object_store()->set_unique_dynamic_targets(Array::null_array());
Class& null_class = Class::Handle(Z);
+ Function& null_function = Function::Handle(Z);
I->object_store()->set_future_class(null_class);
I->object_store()->set_completer_class(null_class);
I->object_store()->set_stream_iterator_class(null_class);
I->object_store()->set_symbol_class(null_class);
I->object_store()->set_compiletime_error_class(null_class);
+ I->object_store()->set_simple_instance_of_function(null_function);
+ I->object_store()->set_simple_instance_of_true_function(null_function);
+ I->object_store()->set_simple_instance_of_false_function(null_function);
+ I->object_store()->set_async_set_thread_stack_trace(null_function);
+ I->object_store()->set_async_star_move_next_helper(null_function);
+ I->object_store()->set_complete_on_async_return(null_function);
+ I->object_store()->set_async_star_stream_controller(null_class);
}
DropClasses();
DropLibraries();
« no previous file with comments | « runtime/vm/object_store.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698