| Index: src/serialize.cc
|
| diff --git a/src/serialize.cc b/src/serialize.cc
|
| index 78abd47b2105035a0822b0ba8aa86999c1e8fb3d..34722673371c3453a87fa7d9b72a7ca6f30c89c3 100644
|
| --- a/src/serialize.cc
|
| +++ b/src/serialize.cc
|
| @@ -631,6 +631,7 @@ Address Deserializer::Allocate(int space_index, Space* space, int size) {
|
| maybe_new_allocation =
|
| reinterpret_cast<PagedSpace*>(space)->AllocateRaw(size);
|
| }
|
| + ASSERT(!maybe_new_allocation->IsFailure());
|
| Object* new_allocation = maybe_new_allocation->ToObjectUnchecked();
|
| HeapObject* new_object = HeapObject::cast(new_allocation);
|
| address = new_object->address();
|
| @@ -691,6 +692,7 @@ HeapObject* Deserializer::GetAddressFromStart(int space) {
|
|
|
| void Deserializer::Deserialize() {
|
| isolate_ = Isolate::Current();
|
| + ASSERT(isolate_ != NULL);
|
| // Don't GC while deserializing - just expand the heap.
|
| Address* store_buffer_top =
|
| reinterpret_cast<Address*>(isolate_->heap()->store_buffer_top());
|
|
|