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/bootstrap.cc

Issue 569313002: Skip compilation of signature classes. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 3 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/compiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/bootstrap.cc
===================================================================
--- runtime/vm/bootstrap.cc (revision 40272)
+++ runtime/vm/bootstrap.cc (working copy)
@@ -252,12 +252,12 @@
RawError* Bootstrap::LoadandCompileScripts() {
Isolate* isolate = Isolate::Current();
- String& uri = String::Handle();
- String& patch_uri = String::Handle();
- String& source = String::Handle();
- Script& script = Script::Handle();
- Library& lib = Library::Handle();
- Error& error = Error::Handle();
+ String& uri = String::Handle(isolate);
+ String& patch_uri = String::Handle(isolate);
+ String& source = String::Handle(isolate);
+ Script& script = Script::Handle(isolate);
+ Library& lib = Library::Handle(isolate);
+ Error& error = Error::Handle(isolate);
Dart_LibraryTagHandler saved_tag_handler = isolate->library_tag_handler();
// Set the library tag handler for the isolate to the bootstrap
@@ -317,6 +317,15 @@
ClassFinalizer::ProcessPendingClasses();
}
+ Class& cls = Class::Handle(isolate);
+ // 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(isolate, isolate->object_store()->function_impl_type());
+ cls = type.type_class();
+ Compiler::CompileClass(cls);
+
// Restore the library tag handler for the isolate.
isolate->set_library_tag_handler(saved_tag_handler);
« no previous file with comments | « no previous file | runtime/vm/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698