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

Unified Diff: runtime/vm/compiler.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/compiler.cc
===================================================================
--- runtime/vm/compiler.cc (revision 11113)
+++ runtime/vm/compiler.cc (working copy)
@@ -72,7 +72,9 @@
}
-RawError* Compiler::Compile(const Library& library, const Script& script) {
+RawError* Compiler::Compile(const Library& library,
+ const Script& script,
+ bool generating_snapshot) {
Isolate* isolate = Isolate::Current();
LongJump* base = isolate->long_jump_base();
LongJump jump;
@@ -86,7 +88,7 @@
}
const String& library_key = String::Handle(library.private_key());
script.Tokenize(library_key);
- Parser::ParseCompilationUnit(library, script);
+ Parser::ParseCompilationUnit(library, script, generating_snapshot);
isolate->set_long_jump_base(base);
return Error::null();
} else {

Powered by Google App Engine
This is Rietveld 408576698