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

Unified Diff: runtime/vm/kernel_binary.cc

Issue 2786083002: Read platform.dill in the VM. (Closed)
Patch Set: Allow main to be a field or getter. Created 3 years, 9 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/kernel_binary.cc
diff --git a/runtime/vm/kernel_binary.cc b/runtime/vm/kernel_binary.cc
index 44980724fba3ac957b4b70827f9e7852f2ab0e22..3ea748cba769205d2ac905610f0b5bb93d850962 100644
--- a/runtime/vm/kernel_binary.cc
+++ b/runtime/vm/kernel_binary.cc
@@ -1879,7 +1879,8 @@ Program* Program::ReadFrom(Reader* reader) {
program->libraries().GetOrCreate<Library>(i)->ReadFrom(reader);
}
- program->main_method_reference_ = Reference::ReadMemberFrom(reader);
+ program->main_method_reference_ =
+ Reference::ReadMemberFrom(reader, /*allow_null=*/true);
return program;
}

Powered by Google App Engine
This is Rietveld 408576698