| Index: runtime/vm/raw_object_snapshot.cc
|
| diff --git a/runtime/vm/raw_object_snapshot.cc b/runtime/vm/raw_object_snapshot.cc
|
| index 6317a72d021a1dc720ef162d66fb573b14c61a2a..d57e7c5b78b85db05de3973aa64006aaffba445c 100644
|
| --- a/runtime/vm/raw_object_snapshot.cc
|
| +++ b/runtime/vm/raw_object_snapshot.cc
|
| @@ -75,7 +75,6 @@ RawClass* Class::ReadFrom(SnapshotReader* reader,
|
| return cls.raw();
|
| }
|
|
|
| -
|
| void RawClass::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -131,7 +130,6 @@ void RawClass::WriteTo(SnapshotWriter* writer,
|
| }
|
| }
|
|
|
| -
|
| RawUnresolvedClass* UnresolvedClass::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -155,7 +153,6 @@ RawUnresolvedClass* UnresolvedClass::ReadFrom(SnapshotReader* reader,
|
| return unresolved_class.raw();
|
| }
|
|
|
| -
|
| void RawUnresolvedClass::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -177,7 +174,6 @@ void RawUnresolvedClass::WriteTo(SnapshotWriter* writer,
|
| visitor.VisitPointers(from(), to());
|
| }
|
|
|
| -
|
| RawAbstractType* AbstractType::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -187,7 +183,6 @@ RawAbstractType* AbstractType::ReadFrom(SnapshotReader* reader,
|
| return NULL;
|
| }
|
|
|
| -
|
| void RawAbstractType::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -195,7 +190,6 @@ void RawAbstractType::WriteTo(SnapshotWriter* writer,
|
| UNREACHABLE(); // AbstractType is an abstract class.
|
| }
|
|
|
| -
|
| RawType* Type::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -235,7 +229,6 @@ RawType* Type::ReadFrom(SnapshotReader* reader,
|
| return type.raw();
|
| }
|
|
|
| -
|
| void RawType::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -285,7 +278,6 @@ void RawType::WriteTo(SnapshotWriter* writer,
|
| writer->WriteObjectImpl(type_class, kAsReference);
|
| }
|
|
|
| -
|
| RawTypeRef* TypeRef::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -304,7 +296,6 @@ RawTypeRef* TypeRef::ReadFrom(SnapshotReader* reader,
|
| return type_ref.raw();
|
| }
|
|
|
| -
|
| void RawTypeRef::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -323,7 +314,6 @@ void RawTypeRef::WriteTo(SnapshotWriter* writer,
|
| visitor.VisitPointers(from(), to());
|
| }
|
|
|
| -
|
| RawTypeParameter* TypeParameter::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -354,7 +344,6 @@ RawTypeParameter* TypeParameter::ReadFrom(SnapshotReader* reader,
|
| return type_parameter.raw();
|
| }
|
|
|
| -
|
| void RawTypeParameter::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -386,7 +375,6 @@ void RawTypeParameter::WriteTo(SnapshotWriter* writer,
|
| writer->WriteObjectImpl(param_class, kAsReference);
|
| }
|
|
|
| -
|
| RawBoundedType* BoundedType::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -406,7 +394,6 @@ RawBoundedType* BoundedType::ReadFrom(SnapshotReader* reader,
|
| return bounded_type.raw();
|
| }
|
|
|
| -
|
| void RawBoundedType::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -425,7 +412,6 @@ void RawBoundedType::WriteTo(SnapshotWriter* writer,
|
| visitor.VisitPointers(from(), to());
|
| }
|
|
|
| -
|
| RawMixinAppType* MixinAppType::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -435,7 +421,6 @@ RawMixinAppType* MixinAppType::ReadFrom(SnapshotReader* reader,
|
| return MixinAppType::null();
|
| }
|
|
|
| -
|
| void RawMixinAppType::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -443,7 +428,6 @@ void RawMixinAppType::WriteTo(SnapshotWriter* writer,
|
| UNREACHABLE(); // MixinAppType objects do not survive finalization.
|
| }
|
|
|
| -
|
| RawTypeArguments* TypeArguments::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -482,7 +466,6 @@ RawTypeArguments* TypeArguments::ReadFrom(SnapshotReader* reader,
|
| return type_arguments.raw();
|
| }
|
|
|
| -
|
| void RawTypeArguments::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -524,7 +507,6 @@ void RawTypeArguments::WriteTo(SnapshotWriter* writer,
|
| }
|
| }
|
|
|
| -
|
| RawPatchClass* PatchClass::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -543,7 +525,6 @@ RawPatchClass* PatchClass::ReadFrom(SnapshotReader* reader,
|
| return cls.raw();
|
| }
|
|
|
| -
|
| void RawPatchClass::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -562,7 +543,6 @@ void RawPatchClass::WriteTo(SnapshotWriter* writer,
|
| visitor.VisitPointers(from(), to());
|
| }
|
|
|
| -
|
| RawClosure* Closure::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -572,7 +552,6 @@ RawClosure* Closure::ReadFrom(SnapshotReader* reader,
|
| return Closure::null();
|
| }
|
|
|
| -
|
| void RawClosure::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -591,7 +570,6 @@ void RawClosure::WriteTo(SnapshotWriter* writer,
|
| UNREACHABLE();
|
| }
|
|
|
| -
|
| RawClosureData* ClosureData::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -613,7 +591,6 @@ RawClosureData* ClosureData::ReadFrom(SnapshotReader* reader,
|
| return data.raw();
|
| }
|
|
|
| -
|
| void RawClosureData::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -648,7 +625,6 @@ void RawClosureData::WriteTo(SnapshotWriter* writer,
|
| writer->WriteObjectImpl(ptr()->closure_, kAsInlinedObject);
|
| }
|
|
|
| -
|
| RawSignatureData* SignatureData::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -669,7 +645,6 @@ RawSignatureData* SignatureData::ReadFrom(SnapshotReader* reader,
|
| return data.raw();
|
| }
|
|
|
| -
|
| void RawSignatureData::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -689,7 +664,6 @@ void RawSignatureData::WriteTo(SnapshotWriter* writer,
|
| visitor.VisitPointers(from(), to());
|
| }
|
|
|
| -
|
| RawRedirectionData* RedirectionData::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -709,7 +683,6 @@ RawRedirectionData* RedirectionData::ReadFrom(SnapshotReader* reader,
|
| return data.raw();
|
| }
|
|
|
| -
|
| void RawRedirectionData::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -729,7 +702,6 @@ void RawRedirectionData::WriteTo(SnapshotWriter* writer,
|
| visitor.VisitPointers(from(), to());
|
| }
|
|
|
| -
|
| RawFunction* Function::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -779,7 +751,6 @@ RawFunction* Function::ReadFrom(SnapshotReader* reader,
|
| }
|
| }
|
|
|
| -
|
| void RawFunction::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -845,7 +816,6 @@ void RawFunction::WriteTo(SnapshotWriter* writer,
|
| }
|
| }
|
|
|
| -
|
| RawField* Field::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -882,7 +852,6 @@ RawField* Field::ReadFrom(SnapshotReader* reader,
|
| return field.raw();
|
| }
|
|
|
| -
|
| void RawField::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -927,7 +896,6 @@ void RawField::WriteTo(SnapshotWriter* writer,
|
| writer->WriteObjectImpl(ptr()->guarded_list_length_, kAsReference);
|
| }
|
|
|
| -
|
| RawLiteralToken* LiteralToken::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -952,7 +920,6 @@ RawLiteralToken* LiteralToken::ReadFrom(SnapshotReader* reader,
|
| return literal_token.raw();
|
| }
|
|
|
| -
|
| void RawLiteralToken::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -975,7 +942,6 @@ void RawLiteralToken::WriteTo(SnapshotWriter* writer,
|
| visitor.VisitPointers(from(), to());
|
| }
|
|
|
| -
|
| RawTokenStream* TokenStream::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -1010,7 +976,6 @@ RawTokenStream* TokenStream::ReadFrom(SnapshotReader* reader,
|
| return token_stream.raw();
|
| }
|
|
|
| -
|
| void RawTokenStream::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -1037,7 +1002,6 @@ void RawTokenStream::WriteTo(SnapshotWriter* writer,
|
| writer->WriteObjectImpl(ptr()->private_key_, kAsInlinedObject);
|
| }
|
|
|
| -
|
| RawScript* Script::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -1077,7 +1041,6 @@ RawScript* Script::ReadFrom(SnapshotReader* reader,
|
| return script.raw();
|
| }
|
|
|
| -
|
| void RawScript::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -1103,7 +1066,6 @@ void RawScript::WriteTo(SnapshotWriter* writer,
|
| visitor.VisitPointers(from(), to_snapshot(kind));
|
| }
|
|
|
| -
|
| RawLibrary* Library::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -1162,7 +1124,6 @@ RawLibrary* Library::ReadFrom(SnapshotReader* reader,
|
| return library.raw();
|
| }
|
|
|
| -
|
| void RawLibrary::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -1207,7 +1168,6 @@ void RawLibrary::WriteTo(SnapshotWriter* writer,
|
| }
|
| }
|
|
|
| -
|
| RawLibraryPrefix* LibraryPrefix::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -1237,7 +1197,6 @@ RawLibraryPrefix* LibraryPrefix::ReadFrom(SnapshotReader* reader,
|
| return prefix.raw();
|
| }
|
|
|
| -
|
| void RawLibraryPrefix::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -1261,7 +1220,6 @@ void RawLibraryPrefix::WriteTo(SnapshotWriter* writer,
|
| visitor.VisitPointers(from(), to_snapshot(kind));
|
| }
|
|
|
| -
|
| RawNamespace* Namespace::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -1280,7 +1238,6 @@ RawNamespace* Namespace::ReadFrom(SnapshotReader* reader,
|
| return ns.raw();
|
| }
|
|
|
| -
|
| void RawNamespace::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -1300,7 +1257,6 @@ void RawNamespace::WriteTo(SnapshotWriter* writer,
|
| visitor.VisitPointers(from(), to());
|
| }
|
|
|
| -
|
| RawCode* Code::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -1310,7 +1266,6 @@ RawCode* Code::ReadFrom(SnapshotReader* reader,
|
| return Code::null();
|
| }
|
|
|
| -
|
| void RawCode::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -1318,7 +1273,6 @@ void RawCode::WriteTo(SnapshotWriter* writer,
|
| UNREACHABLE();
|
| }
|
|
|
| -
|
| RawInstructions* Instructions::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -1328,7 +1282,6 @@ RawInstructions* Instructions::ReadFrom(SnapshotReader* reader,
|
| return Instructions::null();
|
| }
|
|
|
| -
|
| void RawInstructions::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -1336,7 +1289,6 @@ void RawInstructions::WriteTo(SnapshotWriter* writer,
|
| UNREACHABLE();
|
| }
|
|
|
| -
|
| RawObjectPool* ObjectPool::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -1346,7 +1298,6 @@ RawObjectPool* ObjectPool::ReadFrom(SnapshotReader* reader,
|
| return ObjectPool::null();
|
| }
|
|
|
| -
|
| void RawObjectPool::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -1354,7 +1305,6 @@ void RawObjectPool::WriteTo(SnapshotWriter* writer,
|
| UNREACHABLE();
|
| }
|
|
|
| -
|
| RawPcDescriptors* PcDescriptors::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -1364,7 +1314,6 @@ RawPcDescriptors* PcDescriptors::ReadFrom(SnapshotReader* reader,
|
| return PcDescriptors::null();
|
| }
|
|
|
| -
|
| void RawPcDescriptors::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -1372,7 +1321,6 @@ void RawPcDescriptors::WriteTo(SnapshotWriter* writer,
|
| UNREACHABLE();
|
| }
|
|
|
| -
|
| RawCodeSourceMap* CodeSourceMap::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -1382,7 +1330,6 @@ RawCodeSourceMap* CodeSourceMap::ReadFrom(SnapshotReader* reader,
|
| return CodeSourceMap::null();
|
| }
|
|
|
| -
|
| void RawCodeSourceMap::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -1390,7 +1337,6 @@ void RawCodeSourceMap::WriteTo(SnapshotWriter* writer,
|
| UNREACHABLE();
|
| }
|
|
|
| -
|
| RawStackMap* StackMap::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -1400,7 +1346,6 @@ RawStackMap* StackMap::ReadFrom(SnapshotReader* reader,
|
| return StackMap::null();
|
| }
|
|
|
| -
|
| void RawStackMap::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -1408,7 +1353,6 @@ void RawStackMap::WriteTo(SnapshotWriter* writer,
|
| UNREACHABLE();
|
| }
|
|
|
| -
|
| RawLocalVarDescriptors* LocalVarDescriptors::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -1418,7 +1362,6 @@ RawLocalVarDescriptors* LocalVarDescriptors::ReadFrom(SnapshotReader* reader,
|
| return LocalVarDescriptors::null();
|
| }
|
|
|
| -
|
| void RawLocalVarDescriptors::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -1426,7 +1369,6 @@ void RawLocalVarDescriptors::WriteTo(SnapshotWriter* writer,
|
| UNREACHABLE();
|
| }
|
|
|
| -
|
| RawExceptionHandlers* ExceptionHandlers::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -1436,7 +1378,6 @@ RawExceptionHandlers* ExceptionHandlers::ReadFrom(SnapshotReader* reader,
|
| return ExceptionHandlers::null();
|
| }
|
|
|
| -
|
| void RawExceptionHandlers::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -1444,7 +1385,6 @@ void RawExceptionHandlers::WriteTo(SnapshotWriter* writer,
|
| UNREACHABLE();
|
| }
|
|
|
| -
|
| RawContext* Context::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -1474,7 +1414,6 @@ RawContext* Context::ReadFrom(SnapshotReader* reader,
|
| return context.raw();
|
| }
|
|
|
| -
|
| void RawContext::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -1498,7 +1437,6 @@ void RawContext::WriteTo(SnapshotWriter* writer,
|
| }
|
| }
|
|
|
| -
|
| RawContextScope* ContextScope::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -1530,7 +1468,6 @@ RawContextScope* ContextScope::ReadFrom(SnapshotReader* reader,
|
| return NULL;
|
| }
|
|
|
| -
|
| void RawContextScope::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -1559,7 +1496,6 @@ void RawContextScope::WriteTo(SnapshotWriter* writer,
|
| UNREACHABLE();
|
| }
|
|
|
| -
|
| RawSingleTargetCache* SingleTargetCache::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -1569,7 +1505,6 @@ RawSingleTargetCache* SingleTargetCache::ReadFrom(SnapshotReader* reader,
|
| return SingleTargetCache::null();
|
| }
|
|
|
| -
|
| void RawSingleTargetCache::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -1577,7 +1512,6 @@ void RawSingleTargetCache::WriteTo(SnapshotWriter* writer,
|
| UNREACHABLE();
|
| }
|
|
|
| -
|
| RawUnlinkedCall* UnlinkedCall::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -1587,7 +1521,6 @@ RawUnlinkedCall* UnlinkedCall::ReadFrom(SnapshotReader* reader,
|
| return UnlinkedCall::null();
|
| }
|
|
|
| -
|
| void RawUnlinkedCall::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -1595,7 +1528,6 @@ void RawUnlinkedCall::WriteTo(SnapshotWriter* writer,
|
| UNREACHABLE();
|
| }
|
|
|
| -
|
| RawICData* ICData::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -1619,7 +1551,6 @@ RawICData* ICData::ReadFrom(SnapshotReader* reader,
|
| return result.raw();
|
| }
|
|
|
| -
|
| void RawICData::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -1647,7 +1578,6 @@ void RawICData::WriteTo(SnapshotWriter* writer,
|
| visitor.VisitPointers(from(), to_snapshot(kind));
|
| }
|
|
|
| -
|
| RawMegamorphicCache* MegamorphicCache::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -1657,7 +1587,6 @@ RawMegamorphicCache* MegamorphicCache::ReadFrom(SnapshotReader* reader,
|
| return MegamorphicCache::null();
|
| }
|
|
|
| -
|
| void RawMegamorphicCache::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -1665,7 +1594,6 @@ void RawMegamorphicCache::WriteTo(SnapshotWriter* writer,
|
| UNREACHABLE();
|
| }
|
|
|
| -
|
| RawSubtypeTestCache* SubtypeTestCache::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -1675,7 +1603,6 @@ RawSubtypeTestCache* SubtypeTestCache::ReadFrom(SnapshotReader* reader,
|
| return SubtypeTestCache::null();
|
| }
|
|
|
| -
|
| void RawSubtypeTestCache::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -1683,7 +1610,6 @@ void RawSubtypeTestCache::WriteTo(SnapshotWriter* writer,
|
| UNREACHABLE();
|
| }
|
|
|
| -
|
| RawError* Error::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -1693,7 +1619,6 @@ RawError* Error::ReadFrom(SnapshotReader* reader,
|
| return Error::null(); // Error is an abstract class.
|
| }
|
|
|
| -
|
| void RawError::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -1701,7 +1626,6 @@ void RawError::WriteTo(SnapshotWriter* writer,
|
| UNREACHABLE(); // Error is an abstract class.
|
| }
|
|
|
| -
|
| RawApiError* ApiError::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -1720,7 +1644,6 @@ RawApiError* ApiError::ReadFrom(SnapshotReader* reader,
|
| return api_error.raw();
|
| }
|
|
|
| -
|
| void RawApiError::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -1739,7 +1662,6 @@ void RawApiError::WriteTo(SnapshotWriter* writer,
|
| visitor.VisitPointers(from(), to());
|
| }
|
|
|
| -
|
| RawLanguageError* LanguageError::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -1765,7 +1687,6 @@ RawLanguageError* LanguageError::ReadFrom(SnapshotReader* reader,
|
| return language_error.raw();
|
| }
|
|
|
| -
|
| void RawLanguageError::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -1789,7 +1710,6 @@ void RawLanguageError::WriteTo(SnapshotWriter* writer,
|
| visitor.VisitPointers(from(), to());
|
| }
|
|
|
| -
|
| RawUnhandledException* UnhandledException::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -1806,7 +1726,6 @@ RawUnhandledException* UnhandledException::ReadFrom(SnapshotReader* reader,
|
| return result.raw();
|
| }
|
|
|
| -
|
| void RawUnhandledException::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -1822,7 +1741,6 @@ void RawUnhandledException::WriteTo(SnapshotWriter* writer,
|
| visitor.VisitPointers(from(), to());
|
| }
|
|
|
| -
|
| RawUnwindError* UnwindError::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -1832,7 +1750,6 @@ RawUnwindError* UnwindError::ReadFrom(SnapshotReader* reader,
|
| return UnwindError::null();
|
| }
|
|
|
| -
|
| void RawUnwindError::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -1840,7 +1757,6 @@ void RawUnwindError::WriteTo(SnapshotWriter* writer,
|
| UNREACHABLE();
|
| }
|
|
|
| -
|
| RawInstance* Instance::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -1861,7 +1777,6 @@ RawInstance* Instance::ReadFrom(SnapshotReader* reader,
|
| return obj.raw();
|
| }
|
|
|
| -
|
| void RawInstance::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -1876,7 +1791,6 @@ void RawInstance::WriteTo(SnapshotWriter* writer,
|
| writer->WriteTags(writer->GetObjectTags(this));
|
| }
|
|
|
| -
|
| RawInteger* Mint::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -1913,7 +1827,6 @@ RawInteger* Mint::ReadFrom(SnapshotReader* reader,
|
| return mint.raw();
|
| }
|
|
|
| -
|
| void RawMint::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -1931,7 +1844,6 @@ void RawMint::WriteTo(SnapshotWriter* writer,
|
| writer->Write<int64_t>(ptr()->value_);
|
| }
|
|
|
| -
|
| RawBigint* Bigint::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -1959,7 +1871,6 @@ RawBigint* Bigint::ReadFrom(SnapshotReader* reader,
|
| return obj.raw();
|
| }
|
|
|
| -
|
| void RawBigint::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -1978,7 +1889,6 @@ void RawBigint::WriteTo(SnapshotWriter* writer,
|
| visitor.VisitPointers(from(), to());
|
| }
|
|
|
| -
|
| RawDouble* Double::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -2005,7 +1915,6 @@ RawDouble* Double::ReadFrom(SnapshotReader* reader,
|
| return dbl.raw();
|
| }
|
|
|
| -
|
| void RawDouble::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -2023,7 +1932,6 @@ void RawDouble::WriteTo(SnapshotWriter* writer,
|
| writer->WriteDouble(ptr()->value_);
|
| }
|
|
|
| -
|
| RawString* String::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -2033,7 +1941,6 @@ RawString* String::ReadFrom(SnapshotReader* reader,
|
| return String::null();
|
| }
|
|
|
| -
|
| void RawString::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -2041,7 +1948,6 @@ void RawString::WriteTo(SnapshotWriter* writer,
|
| UNREACHABLE(); // String is an abstract class.
|
| }
|
|
|
| -
|
| template <typename StringType, typename CharacterType, typename CallbackType>
|
| void String::ReadFromImpl(SnapshotReader* reader,
|
| String* str_obj,
|
| @@ -2074,7 +1980,6 @@ void String::ReadFromImpl(SnapshotReader* reader,
|
| }
|
| }
|
|
|
| -
|
| RawOneByteString* OneByteString::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -2091,7 +1996,6 @@ RawOneByteString* OneByteString::ReadFrom(SnapshotReader* reader,
|
| return raw(str_obj);
|
| }
|
|
|
| -
|
| RawTwoByteString* TwoByteString::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -2108,7 +2012,6 @@ RawTwoByteString* TwoByteString::ReadFrom(SnapshotReader* reader,
|
| return raw(str_obj);
|
| }
|
|
|
| -
|
| template <typename T>
|
| static void StringWriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| @@ -2142,7 +2045,6 @@ static void StringWriteTo(SnapshotWriter* writer,
|
| }
|
| }
|
|
|
| -
|
| void RawOneByteString::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -2151,7 +2053,6 @@ void RawOneByteString::WriteTo(SnapshotWriter* writer,
|
| writer->GetObjectTags(this), ptr()->length_, ptr()->data());
|
| }
|
|
|
| -
|
| void RawTwoByteString::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -2160,7 +2061,6 @@ void RawTwoByteString::WriteTo(SnapshotWriter* writer,
|
| writer->GetObjectTags(this), ptr()->length_, ptr()->data());
|
| }
|
|
|
| -
|
| RawExternalOneByteString* ExternalOneByteString::ReadFrom(
|
| SnapshotReader* reader,
|
| intptr_t object_id,
|
| @@ -2171,7 +2071,6 @@ RawExternalOneByteString* ExternalOneByteString::ReadFrom(
|
| return ExternalOneByteString::null();
|
| }
|
|
|
| -
|
| RawExternalTwoByteString* ExternalTwoByteString::ReadFrom(
|
| SnapshotReader* reader,
|
| intptr_t object_id,
|
| @@ -2182,7 +2081,6 @@ RawExternalTwoByteString* ExternalTwoByteString::ReadFrom(
|
| return ExternalTwoByteString::null();
|
| }
|
|
|
| -
|
| void RawExternalOneByteString::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -2193,7 +2091,6 @@ void RawExternalOneByteString::WriteTo(SnapshotWriter* writer,
|
| ptr()->external_data_->data());
|
| }
|
|
|
| -
|
| void RawExternalTwoByteString::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -2204,7 +2101,6 @@ void RawExternalTwoByteString::WriteTo(SnapshotWriter* writer,
|
| ptr()->external_data_->data());
|
| }
|
|
|
| -
|
| RawBool* Bool::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -2214,7 +2110,6 @@ RawBool* Bool::ReadFrom(SnapshotReader* reader,
|
| return Bool::null();
|
| }
|
|
|
| -
|
| void RawBool::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -2222,7 +2117,6 @@ void RawBool::WriteTo(SnapshotWriter* writer,
|
| UNREACHABLE();
|
| }
|
|
|
| -
|
| RawArray* Array::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -2253,7 +2147,6 @@ RawArray* Array::ReadFrom(SnapshotReader* reader,
|
| return array->raw();
|
| }
|
|
|
| -
|
| RawImmutableArray* ImmutableArray::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -2286,7 +2179,6 @@ RawImmutableArray* ImmutableArray::ReadFrom(SnapshotReader* reader,
|
| return raw(*array);
|
| }
|
|
|
| -
|
| void RawArray::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -2297,7 +2189,6 @@ void RawArray::WriteTo(SnapshotWriter* writer,
|
| as_reference);
|
| }
|
|
|
| -
|
| void RawImmutableArray::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -2307,7 +2198,6 @@ void RawImmutableArray::WriteTo(SnapshotWriter* writer,
|
| ptr()->type_arguments_, ptr()->data(), as_reference);
|
| }
|
|
|
| -
|
| RawGrowableObjectArray* GrowableObjectArray::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -2339,7 +2229,6 @@ RawGrowableObjectArray* GrowableObjectArray::ReadFrom(SnapshotReader* reader,
|
| return array.raw();
|
| }
|
|
|
| -
|
| void RawGrowableObjectArray::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -2363,7 +2252,6 @@ void RawGrowableObjectArray::WriteTo(SnapshotWriter* writer,
|
| writer->WriteObjectImpl(ptr()->data_, kAsReference);
|
| }
|
|
|
| -
|
| RawLinkedHashMap* LinkedHashMap::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -2420,7 +2308,6 @@ RawLinkedHashMap* LinkedHashMap::ReadFrom(SnapshotReader* reader,
|
| return map.raw();
|
| }
|
|
|
| -
|
| void RawLinkedHashMap::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -2471,7 +2358,6 @@ void RawLinkedHashMap::WriteTo(SnapshotWriter* writer,
|
| DEBUG_ASSERT(deleted_keys_found == deleted_keys);
|
| }
|
|
|
| -
|
| RawFloat32x4* Float32x4::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -2491,7 +2377,6 @@ RawFloat32x4* Float32x4::ReadFrom(SnapshotReader* reader,
|
| return simd.raw();
|
| }
|
|
|
| -
|
| void RawFloat32x4::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -2512,7 +2397,6 @@ void RawFloat32x4::WriteTo(SnapshotWriter* writer,
|
| writer->Write<float>(ptr()->value_[3]);
|
| }
|
|
|
| -
|
| RawInt32x4* Int32x4::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -2532,7 +2416,6 @@ RawInt32x4* Int32x4::ReadFrom(SnapshotReader* reader,
|
| return simd.raw();
|
| }
|
|
|
| -
|
| void RawInt32x4::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -2553,7 +2436,6 @@ void RawInt32x4::WriteTo(SnapshotWriter* writer,
|
| writer->Write<uint32_t>(ptr()->value_[3]);
|
| }
|
|
|
| -
|
| RawFloat64x2* Float64x2::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -2571,7 +2453,6 @@ RawFloat64x2* Float64x2::ReadFrom(SnapshotReader* reader,
|
| return simd.raw();
|
| }
|
|
|
| -
|
| void RawFloat64x2::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -2590,13 +2471,11 @@ void RawFloat64x2::WriteTo(SnapshotWriter* writer,
|
| writer->Write<double>(ptr()->value_[1]);
|
| }
|
|
|
| -
|
| #define TYPED_DATA_READ(setter, type) \
|
| for (intptr_t i = 0; i < length_in_bytes; i += element_size) { \
|
| result.Set##setter(i, reader->Read<type>()); \
|
| }
|
|
|
| -
|
| RawTypedData* TypedData::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -2663,7 +2542,6 @@ RawTypedData* TypedData::ReadFrom(SnapshotReader* reader,
|
| }
|
| #undef TYPED_DATA_READ
|
|
|
| -
|
| RawExternalTypedData* ExternalTypedData::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -2685,7 +2563,6 @@ RawExternalTypedData* ExternalTypedData::ReadFrom(SnapshotReader* reader,
|
| return obj.raw();
|
| }
|
|
|
| -
|
| #define TYPED_DATA_WRITE(type) \
|
| { \
|
| type* data = reinterpret_cast<type*>(ptr()->data()); \
|
| @@ -2694,7 +2571,6 @@ RawExternalTypedData* ExternalTypedData::ReadFrom(SnapshotReader* reader,
|
| } \
|
| }
|
|
|
| -
|
| void RawTypedData::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -2751,7 +2627,6 @@ void RawTypedData::WriteTo(SnapshotWriter* writer,
|
| }
|
| }
|
|
|
| -
|
| #define TYPED_EXT_DATA_WRITE(type) \
|
| { \
|
| type* data = reinterpret_cast<type*>(ptr()->data_); \
|
| @@ -2760,14 +2635,12 @@ void RawTypedData::WriteTo(SnapshotWriter* writer,
|
| } \
|
| }
|
|
|
| -
|
| #define EXT_TYPED_DATA_WRITE(cid, type) \
|
| writer->WriteIndexedObject(cid); \
|
| writer->WriteTags(writer->GetObjectTags(this)); \
|
| writer->Write<RawObject*>(ptr()->length_); \
|
| TYPED_EXT_DATA_WRITE(type)
|
|
|
| -
|
| void RawExternalTypedData::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -2820,7 +2693,6 @@ void RawExternalTypedData::WriteTo(SnapshotWriter* writer,
|
| #undef TYPED_DATA_WRITE
|
| #undef EXT_TYPED_DATA_WRITE
|
|
|
| -
|
| RawCapability* Capability::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -2834,7 +2706,6 @@ RawCapability* Capability::ReadFrom(SnapshotReader* reader,
|
| return result.raw();
|
| }
|
|
|
| -
|
| void RawCapability::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -2849,7 +2720,6 @@ void RawCapability::WriteTo(SnapshotWriter* writer,
|
| writer->Write<uint64_t>(ptr()->id_);
|
| }
|
|
|
| -
|
| RawReceivePort* ReceivePort::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -2859,7 +2729,6 @@ RawReceivePort* ReceivePort::ReadFrom(SnapshotReader* reader,
|
| return ReceivePort::null();
|
| }
|
|
|
| -
|
| void RawReceivePort::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -2874,7 +2743,6 @@ void RawReceivePort::WriteTo(SnapshotWriter* writer,
|
| }
|
| }
|
|
|
| -
|
| RawSendPort* SendPort::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -2891,7 +2759,6 @@ RawSendPort* SendPort::ReadFrom(SnapshotReader* reader,
|
| return result.raw();
|
| }
|
|
|
| -
|
| void RawSendPort::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -2907,7 +2774,6 @@ void RawSendPort::WriteTo(SnapshotWriter* writer,
|
| writer->Write<uint64_t>(ptr()->origin_id_);
|
| }
|
|
|
| -
|
| RawStackTrace* StackTrace::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -2917,7 +2783,6 @@ RawStackTrace* StackTrace::ReadFrom(SnapshotReader* reader,
|
| return StackTrace::null();
|
| }
|
|
|
| -
|
| void RawStackTrace::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -2928,7 +2793,6 @@ void RawStackTrace::WriteTo(SnapshotWriter* writer,
|
| " : (object is a stacktrace)");
|
| }
|
|
|
| -
|
| RawRegExp* RegExp::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -2959,7 +2823,6 @@ RawRegExp* RegExp::ReadFrom(SnapshotReader* reader,
|
| return regex.raw();
|
| }
|
|
|
| -
|
| void RawRegExp::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -2980,7 +2843,6 @@ void RawRegExp::WriteTo(SnapshotWriter* writer,
|
| writer->Write<int8_t>(ptr()->type_flags_);
|
| }
|
|
|
| -
|
| RawWeakProperty* WeakProperty::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -3000,7 +2862,6 @@ RawWeakProperty* WeakProperty::ReadFrom(SnapshotReader* reader,
|
| return weak_property.raw();
|
| }
|
|
|
| -
|
| void RawWeakProperty::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -3019,7 +2880,6 @@ void RawWeakProperty::WriteTo(SnapshotWriter* writer,
|
| visitor.VisitPointers(from(), to());
|
| }
|
|
|
| -
|
| RawMirrorReference* MirrorReference::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -3029,7 +2889,6 @@ RawMirrorReference* MirrorReference::ReadFrom(SnapshotReader* reader,
|
| return MirrorReference::null();
|
| }
|
|
|
| -
|
| void RawMirrorReference::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
| @@ -3044,7 +2903,6 @@ void RawMirrorReference::WriteTo(SnapshotWriter* writer,
|
| }
|
| }
|
|
|
| -
|
| RawUserTag* UserTag::ReadFrom(SnapshotReader* reader,
|
| intptr_t object_id,
|
| intptr_t tags,
|
| @@ -3054,7 +2912,6 @@ RawUserTag* UserTag::ReadFrom(SnapshotReader* reader,
|
| return UserTag::null();
|
| }
|
|
|
| -
|
| void RawUserTag::WriteTo(SnapshotWriter* writer,
|
| intptr_t object_id,
|
| Snapshot::Kind kind,
|
|
|