diff options
Diffstat (limited to 'deps/v8/src/heap/read-only-heap.cc')
-rw-r--r-- | deps/v8/src/heap/read-only-heap.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/deps/v8/src/heap/read-only-heap.cc b/deps/v8/src/heap/read-only-heap.cc index 2050d3729b..5b0e29bf12 100644 --- a/deps/v8/src/heap/read-only-heap.cc +++ b/deps/v8/src/heap/read-only-heap.cc @@ -52,9 +52,12 @@ void ReadOnlyHeap::SetUp(Isolate* isolate, ReadOnlyDeserializer* des) { #ifdef DEBUG const base::Optional<uint32_t> last_checksum = shared_ro_heap_->read_only_blob_checksum_; - if (last_checksum || des_checksum) { + if (last_checksum) { // The read-only heap was set up from a snapshot. Make sure it's the always // the same snapshot. + CHECK_WITH_MSG(des_checksum, + "Attempt to create the read-only heap after " + "already creating from a snapshot."); CHECK_EQ(last_checksum, des_checksum); } else { // The read-only heap objects were created. Make sure this happens only @@ -144,9 +147,7 @@ bool ReadOnlyHeap::Contains(Address address) { // static bool ReadOnlyHeap::Contains(HeapObject object) { if (V8_ENABLE_THIRD_PARTY_HEAP_BOOL) { - // read only includes both TPH and the snapshot, so need both checks - return third_party_heap::Heap::InReadOnlySpace(object.address()) || - MemoryChunk::FromHeapObject(object)->InReadOnlySpace(); + return third_party_heap::Heap::InReadOnlySpace(object.address()); } else { return MemoryChunk::FromHeapObject(object)->InReadOnlySpace(); } |