| Index: runtime/vm/raw_object_snapshot.cc
|
| ===================================================================
|
| --- runtime/vm/raw_object_snapshot.cc (revision 37600)
|
| +++ runtime/vm/raw_object_snapshot.cc (working copy)
|
| @@ -97,7 +97,7 @@
|
| !RawObject::IsCreatedFromSnapshot(writer->GetObjectTags(this)))) {
|
| // Write out the class and tags information.
|
| writer->WriteVMIsolateObject(kClassCid);
|
| - writer->WriteIntptrValue(writer->GetObjectTags(this));
|
| + writer->WriteTags(writer->GetObjectTags(this));
|
|
|
| // Write out all the non object pointer fields.
|
| // NOTE: cpp_vtable_ is not written.
|
| @@ -167,7 +167,7 @@
|
|
|
| // Write out the class and tags information.
|
| writer->WriteVMIsolateObject(kUnresolvedClassCid);
|
| - writer->WriteIntptrValue(writer->GetObjectTags(this));
|
| + writer->WriteTags(writer->GetObjectTags(this));
|
|
|
| // Write out all the non object pointer fields.
|
| writer->Write<int32_t>(ptr()->token_pos_);
|
| @@ -253,7 +253,7 @@
|
|
|
| // Write out the class and tags information.
|
| writer->WriteIndexedObject(kTypeCid);
|
| - writer->WriteIntptrValue(writer->GetObjectTags(this));
|
| + writer->WriteTags(writer->GetObjectTags(this));
|
|
|
| // Write out all the non object pointer fields.
|
| writer->Write<int32_t>(ptr()->token_pos_);
|
| @@ -305,7 +305,7 @@
|
|
|
| // Write out the class and tags information.
|
| writer->WriteIndexedObject(kTypeRefCid);
|
| - writer->WriteIntptrValue(writer->GetObjectTags(this));
|
| + writer->WriteTags(writer->GetObjectTags(this));
|
|
|
| // Write out all the object pointer fields.
|
| SnapshotWriterVisitor visitor(writer);
|
| @@ -360,7 +360,7 @@
|
|
|
| // Write out the class and tags information.
|
| writer->WriteIndexedObject(kTypeParameterCid);
|
| - writer->WriteIntptrValue(writer->GetObjectTags(this));
|
| + writer->WriteTags(writer->GetObjectTags(this));
|
|
|
| // Write out all the non object pointer fields.
|
| writer->Write<int32_t>(ptr()->index_);
|
| @@ -412,7 +412,7 @@
|
|
|
| // Write out the class and tags information.
|
| writer->WriteIndexedObject(kBoundedTypeCid);
|
| - writer->WriteIntptrValue(writer->GetObjectTags(this));
|
| + writer->WriteTags(writer->GetObjectTags(this));
|
|
|
| // Write out all the object pointer fields.
|
| SnapshotWriterVisitor visitor(writer);
|
| @@ -497,7 +497,7 @@
|
|
|
| // Write out the class and tags information.
|
| writer->WriteVMIsolateObject(kTypeArgumentsCid);
|
| - writer->WriteIntptrValue(writer->GetObjectTags(this));
|
| + writer->WriteTags(writer->GetObjectTags(this));
|
|
|
| // Write out the length field.
|
| writer->Write<RawObject*>(ptr()->length_);
|
| @@ -557,7 +557,7 @@
|
|
|
| // Write out the class and tags information.
|
| writer->WriteVMIsolateObject(kPatchClassCid);
|
| - writer->WriteIntptrValue(writer->GetObjectTags(this));
|
| + writer->WriteTags(writer->GetObjectTags(this));
|
| // Write out all the object pointer fields.
|
| SnapshotWriterVisitor visitor(writer);
|
| visitor.VisitPointers(from(), to());
|
| @@ -606,7 +606,7 @@
|
|
|
| // Write out the class and tags information.
|
| writer->WriteVMIsolateObject(kClosureDataCid);
|
| - writer->WriteIntptrValue(writer->GetObjectTags(this));
|
| + writer->WriteTags(writer->GetObjectTags(this));
|
|
|
| // Context scope.
|
| // We don't write the context scope in the snapshot.
|
| @@ -666,7 +666,7 @@
|
|
|
| // Write out the class and tags information.
|
| writer->WriteVMIsolateObject(kRedirectionDataCid);
|
| - writer->WriteIntptrValue(writer->GetObjectTags(this));
|
| + writer->WriteTags(writer->GetObjectTags(this));
|
|
|
| // Write out all the object pointer fields.
|
| SnapshotWriterVisitor visitor(writer);
|
| @@ -730,7 +730,7 @@
|
|
|
| // Write out the class and tags information.
|
| writer->WriteVMIsolateObject(kFunctionCid);
|
| - writer->WriteIntptrValue(writer->GetObjectTags(this));
|
| + writer->WriteTags(writer->GetObjectTags(this));
|
|
|
| // Write out all the non object fields.
|
| writer->Write<int32_t>(ptr()->token_pos_);
|
| @@ -798,7 +798,7 @@
|
|
|
| // Write out the class and tags information.
|
| writer->WriteVMIsolateObject(kFieldCid);
|
| - writer->WriteIntptrValue(writer->GetObjectTags(this));
|
| + writer->WriteTags(writer->GetObjectTags(this));
|
|
|
| // Write out all the non object fields.
|
| writer->Write<int32_t>(ptr()->token_pos_);
|
| @@ -850,7 +850,7 @@
|
|
|
| // Write out the class and tags information.
|
| writer->WriteVMIsolateObject(kLiteralTokenCid);
|
| - writer->WriteIntptrValue(writer->GetObjectTags(this));
|
| + writer->WriteTags(writer->GetObjectTags(this));
|
|
|
| // Write out the kind field.
|
| writer->Write<intptr_t>(ptr()->kind_);
|
| @@ -913,7 +913,7 @@
|
|
|
| // Write out the class and tags information.
|
| writer->WriteVMIsolateObject(kTokenStreamCid);
|
| - writer->WriteIntptrValue(writer->GetObjectTags(this));
|
| + writer->WriteTags(writer->GetObjectTags(this));
|
|
|
| // Write out the length field and the token stream.
|
| RawExternalTypedData* stream = ptr()->stream_;
|
| @@ -977,7 +977,7 @@
|
|
|
| // Write out the class and tags information.
|
| writer->WriteVMIsolateObject(kScriptCid);
|
| - writer->WriteIntptrValue(writer->GetObjectTags(this));
|
| + writer->WriteTags(writer->GetObjectTags(this));
|
|
|
| // Write out all the object pointer fields.
|
| writer->WriteObjectImpl(ptr()->url_);
|
| @@ -1058,7 +1058,7 @@
|
|
|
| // Write out the class and tags information.
|
| writer->WriteVMIsolateObject(kLibraryCid);
|
| - writer->WriteIntptrValue(writer->GetObjectTags(this));
|
| + writer->WriteTags(writer->GetObjectTags(this));
|
|
|
| if ((kind == Snapshot::kScript) &&
|
| RawObject::IsCreatedFromSnapshot(writer->GetObjectTags(this))) {
|
| @@ -1138,7 +1138,7 @@
|
|
|
| // Write out the class and tags information.
|
| writer->WriteIndexedObject(kLibraryPrefixCid);
|
| - writer->WriteIntptrValue(writer->GetObjectTags(this));
|
| + writer->WriteTags(writer->GetObjectTags(this));
|
|
|
| // Write out all non object fields.
|
| writer->Write<int32_t>(ptr()->num_imports_);
|
| @@ -1193,7 +1193,7 @@
|
|
|
| // Write out the class and tags information.
|
| writer->WriteVMIsolateObject(kNamespaceCid);
|
| - writer->WriteIntptrValue(writer->GetObjectTags(this));
|
| + writer->WriteTags(writer->GetObjectTags(this));
|
|
|
| // Write out all the object pointer fields.
|
| SnapshotWriterVisitor visitor(writer);
|
| @@ -1361,7 +1361,7 @@
|
|
|
| // Write out the class and tags information.
|
| writer->WriteVMIsolateObject(kContextCid);
|
| - writer->WriteIntptrValue(writer->GetObjectTags(this));
|
| + writer->WriteTags(writer->GetObjectTags(this));
|
|
|
| // Write out num of variables in the context.
|
| writer->WriteIntptrValue(ptr()->num_variables_);
|
| @@ -1492,7 +1492,7 @@
|
|
|
| // Write out the class and tags information.
|
| writer->WriteVMIsolateObject(kApiErrorCid);
|
| - writer->WriteIntptrValue(writer->GetObjectTags(this));
|
| + writer->WriteTags(writer->GetObjectTags(this));
|
|
|
| // Write out all the object pointer fields.
|
| SnapshotWriterVisitor visitor(writer);
|
| @@ -1543,7 +1543,7 @@
|
|
|
| // Write out the class and tags information.
|
| writer->WriteVMIsolateObject(kLanguageErrorCid);
|
| - writer->WriteIntptrValue(writer->GetObjectTags(this));
|
| + writer->WriteTags(writer->GetObjectTags(this));
|
|
|
| // Write out all the non object fields.
|
| writer->Write<int32_t>(ptr()->token_pos_);
|
| @@ -1632,7 +1632,7 @@
|
|
|
| // Write out the class and tags information.
|
| writer->WriteIndexedObject(kInstanceCid);
|
| - writer->WriteIntptrValue(writer->GetObjectTags(this));
|
| + writer->WriteTags(writer->GetObjectTags(this));
|
| }
|
|
|
|
|
| @@ -1682,7 +1682,7 @@
|
|
|
| // Write out the class and tags information.
|
| writer->WriteIndexedObject(kMintCid);
|
| - writer->WriteIntptrValue(writer->GetObjectTags(this));
|
| + writer->WriteTags(writer->GetObjectTags(this));
|
|
|
| // Write out the 64 bit value.
|
| writer->Write<int64_t>(ptr()->value_);
|
| @@ -1740,7 +1740,7 @@
|
|
|
| // Write out the class and tags information.
|
| writer->WriteIndexedObject(kBigintCid);
|
| - writer->WriteIntptrValue(writer->GetObjectTags(this));
|
| + writer->WriteTags(writer->GetObjectTags(this));
|
|
|
| // Write out the bigint value as a HEXCstring.
|
| intptr_t length = ptr()->signed_length_;
|
| @@ -1816,7 +1816,7 @@
|
|
|
| // Write out the class and tags information.
|
| writer->WriteIndexedObject(kDoubleCid);
|
| - writer->WriteIntptrValue(writer->GetObjectTags(this));
|
| + writer->WriteTags(writer->GetObjectTags(this));
|
|
|
| // Write out the double value.
|
| writer->WriteDouble(ptr()->value_);
|
| @@ -1946,7 +1946,7 @@
|
|
|
| // Write out the class and tags information.
|
| writer->WriteIndexedObject(class_id);
|
| - writer->WriteIntptrValue(tags);
|
| + writer->WriteTags(tags);
|
|
|
| // Write out the length field.
|
| writer->Write<RawObject*>(length);
|
| @@ -2162,7 +2162,7 @@
|
|
|
| // Write out the class and tags information.
|
| writer->WriteIndexedObject(kGrowableObjectArrayCid);
|
| - writer->WriteIntptrValue(writer->GetObjectTags(this));
|
| + writer->WriteTags(writer->GetObjectTags(this));
|
|
|
| // Write out the used length field.
|
| writer->Write<RawObject*>(ptr()->length_);
|
| @@ -2208,7 +2208,7 @@
|
|
|
| // Write out the class and tags information.
|
| writer->WriteIndexedObject(kFloat32x4Cid);
|
| - writer->WriteIntptrValue(writer->GetObjectTags(this));
|
| + writer->WriteTags(writer->GetObjectTags(this));
|
|
|
| // Write out the float values.
|
| writer->Write<float>(ptr()->value_[0]);
|
| @@ -2254,7 +2254,7 @@
|
|
|
| // Write out the class and tags information.
|
| writer->WriteIndexedObject(kInt32x4Cid);
|
| - writer->WriteIntptrValue(writer->GetObjectTags(this));
|
| + writer->WriteTags(writer->GetObjectTags(this));
|
|
|
| // Write out the mask values.
|
| writer->Write<uint32_t>(ptr()->value_[0]);
|
| @@ -2298,7 +2298,7 @@
|
|
|
| // Write out the class and tags information.
|
| writer->WriteIndexedObject(kFloat64x2Cid);
|
| - writer->WriteIntptrValue(writer->GetObjectTags(this));
|
| + writer->WriteTags(writer->GetObjectTags(this));
|
|
|
| // Write out the float values.
|
| writer->Write<double>(ptr()->value_[0]);
|
| @@ -2411,7 +2411,7 @@
|
|
|
| // Write out the class and tags information.
|
| writer->WriteIndexedObject(cid);
|
| - writer->WriteIntptrValue(tags);
|
| + writer->WriteTags(tags);
|
|
|
| // Write out the length field.
|
| writer->Write<RawObject*>(ptr()->length_);
|
| @@ -2466,7 +2466,7 @@
|
|
|
| #define EXT_TYPED_DATA_WRITE(cid, type) \
|
| writer->WriteIndexedObject(cid); \
|
| - writer->WriteIntptrValue(RawObject::ClassIdTag::update(cid, tags)); \
|
| + writer->WriteTags(RawObject::ClassIdTag::update(cid, tags)); \
|
| writer->Write<RawObject*>(ptr()->length_); \
|
| TYPED_EXT_DATA_WRITE(type) \
|
|
|
| @@ -2584,7 +2584,7 @@
|
|
|
| // Write out the class and tags information.
|
| writer->WriteIndexedObject(kSendPortCid);
|
| - writer->WriteIntptrValue(writer->GetObjectTags(this));
|
| + writer->WriteTags(writer->GetObjectTags(this));
|
|
|
| writer->Write(ptr()->id_);
|
| }
|
| @@ -2636,7 +2636,7 @@
|
|
|
| // Write out the class and tags information.
|
| writer->WriteIndexedObject(kStacktraceCid);
|
| - writer->WriteIntptrValue(writer->GetObjectTags(this));
|
| + writer->WriteTags(writer->GetObjectTags(this));
|
|
|
| // Write out all the object pointer fields.
|
| SnapshotWriterVisitor visitor(writer);
|
| @@ -2694,7 +2694,7 @@
|
|
|
| // Write out the class and tags information.
|
| writer->WriteIndexedObject(kJSRegExpCid);
|
| - writer->WriteIntptrValue(writer->GetObjectTags(this));
|
| + writer->WriteTags(writer->GetObjectTags(this));
|
|
|
| // Write out the data length field.
|
| writer->Write<RawObject*>(ptr()->data_length_);
|
| @@ -2741,7 +2741,7 @@
|
|
|
| // Write out the class and tags information.
|
| writer->WriteIndexedObject(kWeakPropertyCid);
|
| - writer->WriteIntptrValue(writer->GetObjectTags(this));
|
| + writer->WriteTags(writer->GetObjectTags(this));
|
|
|
| // Write out all the other fields.
|
| writer->Write<RawObject*>(ptr()->key_);
|
|
|