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; |