Index: runtime/vm/precompiler.cc |
diff --git a/runtime/vm/precompiler.cc b/runtime/vm/precompiler.cc |
index bd9b73f962164a8f23611752de1cbeb2332ce22a..c49e68c1c3db3af6ddd529019464691788e01deb 100644 |
--- a/runtime/vm/precompiler.cc |
+++ b/runtime/vm/precompiler.cc |
@@ -434,19 +434,20 @@ void Precompiler::AddField(const Field& field) { |
if (field.is_static()) { |
// Potential const object. Uninitialized field will harmlessly do a |
// redundant add of the Null class. |
- const Object& value = Object::Handle(Z, field.value()); |
+ const Object& value = Object::Handle(Z, field.StaticValue()); |
const Class& cls = Class::Handle(Z, value.clazz()); |
AddClass(cls); |
if (field.has_initializer()) { |
- if (field.initializer() != Function::null()) return; |
+ if (field.PrecompiledInitializer() != Function::null()) return; |
if (FLAG_trace_precompiler) { |
ISL_Print("Precompiling initializer for %s\n", field.ToCString()); |
} |
Compiler::CompileStaticInitializer(field); |
- const Function& function = Function::Handle(Z, field.initializer()); |
+ const Function& function = |
+ Function::Handle(Z, field.PrecompiledInitializer()); |
AddCalleesOf(function); |
} |
} |