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

Unified Diff: runtime/vm/precompiler.cc

Issue 1311403009: More precompiled snapshotting. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: sync Created 5 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
Index: runtime/vm/precompiler.cc
diff --git a/runtime/vm/precompiler.cc b/runtime/vm/precompiler.cc
index becd99b5a9980eb47d1362c7b734e0d5907d9946..6529aa44595143bdff5743d0a0e3a3f10175c0e1 100644
--- a/runtime/vm/precompiler.cc
+++ b/runtime/vm/precompiler.cc
@@ -439,11 +439,12 @@ void Precompiler::AddField(const Field& field) {
AddClass(cls);
if (field.has_initializer()) {
- if (field.PrecompiledInitializer() != Function::null()) return;
+ if (field.HasPrecompiledInitializer()) return;
if (FLAG_trace_precompiler) {
THR_Print("Precompiling initializer for %s\n", field.ToCString());
}
siva 2015/09/14 20:32:59 can we assert here that Object::instructions_snaps
rmacnak 2015/09/15 17:56:42 Done.
+ field.SetStaticValue(Instance::Handle(field.SavedInitialStaticValue()));
Compiler::CompileStaticInitializer(field);
const Function& function =

Powered by Google App Engine
This is Rietveld 408576698