| Index: runtime/vm/snapshot.cc
|
| diff --git a/runtime/vm/snapshot.cc b/runtime/vm/snapshot.cc
|
| index 4f01d350c72f30c95239efad43d5ca24ac071528..ac90a10aedc276c00295f680c46dfece69fef5d1 100644
|
| --- a/runtime/vm/snapshot.cc
|
| +++ b/runtime/vm/snapshot.cc
|
| @@ -184,7 +184,7 @@ RawObject* SnapshotReader::ReadInlinedObject(intptr_t object_id) {
|
| intptr_t instance_size = cls.instance_size();
|
| ASSERT(instance_size > 0);
|
| // Allocate the instance and read in all the fields for the object.
|
| - RawObject* raw = Object::Allocate(cls, instance_size, Heap::kNew);
|
| + RawObject* raw = Instance::New(cls, Heap::kNew);
|
| result ^= raw;
|
| intptr_t offset = Object::InstanceSize();
|
| while (offset < instance_size) {
|
|
|