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

Unified Diff: runtime/vm/bootstrap.cc

Issue 1584223006: Remove signature classes from the VM. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: sync 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 | « runtime/observatory/tests/service/graph_test.dart ('k') | runtime/vm/bootstrap_natives.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/bootstrap.cc
diff --git a/runtime/vm/bootstrap.cc b/runtime/vm/bootstrap.cc
index 75969202799870f9a09d73881d8453bb645fe4c5..f7bd22db7107ed9a0783d0dac77e1be5a7a8b221 100644
--- a/runtime/vm/bootstrap.cc
+++ b/runtime/vm/bootstrap.cc
@@ -339,13 +339,11 @@ RawError* Bootstrap::LoadandCompileScripts() {
SetupNativeResolver();
ClassFinalizer::ProcessPendingClasses();
- Class& cls = Class::Handle(zone);
- // Eagerly compile the function implementation class as it is the super
- // class of signature classes. This allows us to just finalize signature
- // classes without going through the hoops of trying to compile them.
- const Type& type =
- Type::Handle(zone, isolate->object_store()->function_impl_type());
- cls = type.type_class();
+ // Eagerly compile the _Closure class as it is the class of all closure
+ // instances. This allows us to just finalize function types
+ // without going through the hoops of trying to compile their scope class.
+ const Class& cls =
+ Class::Handle(zone, isolate->object_store()->closure_class());
Compiler::CompileClass(cls);
}
« no previous file with comments | « runtime/observatory/tests/service/graph_test.dart ('k') | runtime/vm/bootstrap_natives.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698