delete external_reference_decoder_;
external_reference_decoder_ = NULL;
}
+ if (attached_objects_) attached_objects_->Dispose();
}
DisallowHeapAllocation no_gc;
// Prepare and register list of attached objects.
- List<Object*> attached_objects(1);
- attached_objects.Set(kSourceObjectIndex, *source);
+ Vector<Object*> attached_objects = Vector<Object*>::New(1);
+ attached_objects[kSourceObjectIndex] = *source;
deserializer.SetAttachedObjects(&attached_objects);
Object* root;
// Serialized user code reference certain objects that are provided in a list
// By calling this method, we assume that we are deserializing user code.
- void SetAttachedObjects(List<Object*>* attached_objects) {
+ void SetAttachedObjects(Vector<Object*>* attached_objects) {
attached_objects_ = attached_objects;
}
Isolate* isolate_;
// Objects from the attached object descriptions in the serialized user code.
- List<Object*>* attached_objects_;
+ Vector<Object*>* attached_objects_;
SnapshotByteSource* source_;
// This is the address of the next object that will be allocated in each