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

Unified Diff: runtime/vm/kernel_binary.cc

Issue 2931813002: [kernel] Stream kernel_reader (Closed)
Patch Set: Feedback Created 3 years, 6 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
« no previous file with comments | « runtime/vm/kernel.cc ('k') | runtime/vm/kernel_binary_flowgraph.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/kernel_binary.cc
diff --git a/runtime/vm/kernel_binary.cc b/runtime/vm/kernel_binary.cc
index 2177ff34666e6457725b9ee86fb7226697a534e2..3d47148702967e0b57b6c466a2f32ff8f71399bf 100644
--- a/runtime/vm/kernel_binary.cc
+++ b/runtime/vm/kernel_binary.cc
@@ -174,6 +174,7 @@ void SourceTable::ReadFrom(Reader* reader) {
Library* Library::ReadFrom(Reader* reader) {
TRACE_READ_OFFSET();
+ kernel_offset_ = reader->offset(); // no tag.
int flags = reader->ReadFlags();
ASSERT(flags == 0); // external libraries not supported
kernel_data_ = reader->buffer();
@@ -1606,7 +1607,8 @@ TypeParameterType* TypeParameterType::ReadFrom(Reader* reader) {
TypeParameterType* type = new TypeParameterType();
type->parameter_ =
reader->helper()->type_parameters().Lookup(reader->ReadUInt());
- reader->ReadUInt(); // binary offset of parameter
+ reader->ReadUInt(); // binary offset of parameter list
+ reader->ReadUInt(); // index of parameter
// There is an optional promoted bound, currently ignored.
delete reader->ReadOptional<DartType>();
return type;
« no previous file with comments | « runtime/vm/kernel.cc ('k') | runtime/vm/kernel_binary_flowgraph.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698