diff --git a/include/v8.h b/include/v8.h index 7c28e38e939..9751ba348a3 100644 --- a/include/v8.h +++ b/include/v8.h @@ -8496,7 +8496,6 @@ class V8_EXPORT Isolate { void SetArrayBufferAllocatorShared( std::shared_ptr allocator); - /** * Stack-allocated class which sets the isolate for all operations * executed within a local scope. diff --git a/src/snapshot/code-serializer.cc b/src/snapshot/code-serializer.cc index c9630bd6df4..882f4819dab 100644 --- a/src/snapshot/code-serializer.cc +++ b/src/snapshot/code-serializer.cc @@ -333,7 +333,6 @@ MaybeHandle CodeSerializer::Deserialize( if (!maybe_result.ToHandle(&result)) { // Deserializing may fail if the reservations cannot be fulfilled. if (FLAG_profile_deserialization) PrintF("[Deserializing failed]\n"); - cached_data->Reject(); return MaybeHandle(); } diff --git a/src/snapshot/deserializer.cc b/src/snapshot/deserializer.cc index 9a44d23ba4b..b1e1d61588d 100644 --- a/src/snapshot/deserializer.cc +++ b/src/snapshot/deserializer.cc @@ -237,9 +237,7 @@ Deserializer::Deserializer(Isolate* isolate, Vector payload, } } #endif // DEBUG - bool ret = - (magic_number_ == SerializedData::kMagicNumber); - valid_ = ret; + CHECK_EQ(magic_number_, SerializedData::kMagicNumber); } void Deserializer::Rehash() { diff --git a/src/snapshot/deserializer.h b/src/snapshot/deserializer.h index 104edbb1068..e0409a4fd61 100644 --- a/src/snapshot/deserializer.h +++ b/src/snapshot/deserializer.h @@ -130,8 +130,6 @@ class V8_EXPORT_PRIVATE Deserializer : public SerializerDeserializer { Handle ReadObject(); - bool valid_ = true; - private: class RelocInfoVisitor; // A circular queue of hot objects. This is added to in the same order as in diff --git a/src/snapshot/object-deserializer.cc b/src/snapshot/object-deserializer.cc index 308f54d7b4a..5747f705ae5 100644 --- a/src/snapshot/object-deserializer.cc +++ b/src/snapshot/object-deserializer.cc @@ -43,8 +43,6 @@ ObjectDeserializer::DeserializeSharedFunctionInfoOffThread( MaybeHandle ObjectDeserializer::Deserialize() { DCHECK(deserializing_user_code()); - if (!valid_) - return MaybeHandle(); HandleScope scope(isolate()); Handle result; {