Index: runtime/vm/kernel_binary.cc |
diff --git a/runtime/vm/kernel_binary.cc b/runtime/vm/kernel_binary.cc |
index dd791b1446b7002797268ef93d7bb737c5306198..690224221a32c6004fa61c4083e413d42539dd96 100644 |
--- a/runtime/vm/kernel_binary.cc |
+++ b/runtime/vm/kernel_binary.cc |
@@ -257,6 +257,7 @@ Typedef* Typedef::ReadFrom(Reader* reader) { |
Class* Class::ReadFrom(Reader* reader) { |
TRACE_READ_OFFSET(); |
+ kernel_offset_ = reader->offset() - 1; // -1 to include tag byte. |
canonical_name_ = reader->ReadCanonicalNameReference(); |
position_ = reader->ReadPosition(false); |
is_abstract_ = reader->ReadBool(); |
@@ -1843,6 +1844,7 @@ FunctionNode* FunctionNode::ReadFrom(Reader* reader) { |
function->dart_async_marker_ = |
static_cast<FunctionNode::AsyncMarker>(reader->ReadByte()); |
function->type_parameters().ReadFrom(reader); |
+ reader->ReadUInt(); // total parameter count. |
function->required_parameter_count_ = reader->ReadUInt(); |
function->positional_parameters().ReadFromStatic<VariableDeclarationImpl>( |
reader); |