@@ -30,11 +30,7 @@ FlowGraphSerializer::FlowGraphSerializer(NonStreamingWriteStream* stream)
3030 zone_ (Thread::Current()->zone()),
3131 thread_(Thread::Current()),
3232 isolate_group_(IsolateGroup::Current()),
33- heap_(IsolateGroup::Current()->heap()) {
34- // We want to preserve the identity of these, even though they are not const.
35- AddBaseObject (Object::uninitialized_index ());
36- AddBaseObject (Object::uninitialized_data ());
37- }
33+ heap_(IsolateGroup::Current()->heap()) {}
3834
3935FlowGraphSerializer::~FlowGraphSerializer () {
4036 heap_->ResetObjectIdTable ();
@@ -47,11 +43,7 @@ FlowGraphDeserializer::FlowGraphDeserializer(
4743 stream_ (stream),
4844 zone_(Thread::Current()->zone()),
4945 thread_(Thread::Current()),
50- isolate_group_(IsolateGroup::Current()) {
51- // We want to preserve the identity of these, even though they are not const.
52- AddBaseObject (Object::uninitialized_index ());
53- AddBaseObject (Object::uninitialized_data ());
54- }
46+ isolate_group_(IsolateGroup::Current()) {}
5547
5648ClassPtr FlowGraphDeserializer::GetClassById (classid_t id) const {
5749 return isolate_group ()->class_table ()->At (id);
@@ -1411,11 +1403,6 @@ void MoveOperands::Write(FlowGraphSerializer* s) const {
14111403MoveOperands::MoveOperands (FlowGraphDeserializer* d)
14121404 : dest_(Location::Read(d)), src_(Location::Read(d)) {}
14131405
1414- void FlowGraphSerializer::AddBaseObject (const Object& x) {
1415- const intptr_t object_index = object_counter_++;
1416- heap ()->SetObjectId (x.ptr (), object_index + 1 );
1417- }
1418-
14191406template <>
14201407void FlowGraphSerializer::WriteTrait<const Object&>::Write(
14211408 FlowGraphSerializer* s,
@@ -1436,12 +1423,6 @@ void FlowGraphSerializer::WriteTrait<const Object&>::Write(
14361423 s->WriteObjectImpl (x, cid, object_index);
14371424}
14381425
1439- void FlowGraphDeserializer::AddBaseObject (const Object& x) {
1440- const intptr_t object_index = object_counter_;
1441- object_counter_++;
1442- SetObjectAt (object_index, x);
1443- }
1444-
14451426template <>
14461427const Object& FlowGraphDeserializer::ReadTrait<const Object&>::Read(
14471428 FlowGraphDeserializer* d) {
0 commit comments