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

Unified Diff: runtime/vm/bootstrap.cc

Issue 10871005: Make ClassFinalizer indifferent on whether we are generating a snapshot or not. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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
Index: runtime/vm/bootstrap.cc
===================================================================
--- runtime/vm/bootstrap.cc (revision 11113)
+++ runtime/vm/bootstrap.cc (working copy)
@@ -6,6 +6,7 @@
#include "include/dart_api.h"
+#include "vm/class_finalizer.h"
#include "vm/compiler.h"
#include "vm/dart_api_impl.h"
#include "vm/object.h"
@@ -69,7 +70,9 @@
String::Handle(script.Source()).ToCString());
}
library.SetLoadInProgress();
- const Error& error = Error::Handle(Compiler::Compile(library, script));
+ // Do not tolerate malformed types in bootstrap scripts.
+ const Error& error = Error::Handle(
+ Compiler::Compile(library, script, ClassFinalizer::kGeneratingSnapshot));
if (error.IsNull()) {
library.SetLoaded();
} else {
« no previous file with comments | « runtime/lib/isolate.cc ('k') | runtime/vm/cha_test.cc » ('j') | runtime/vm/class_finalizer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698