diff options
Diffstat (limited to 'chromium/v8/src/heap/cppgc/object-start-bitmap-inl.h')
| -rw-r--r-- | chromium/v8/src/heap/cppgc/object-start-bitmap-inl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/chromium/v8/src/heap/cppgc/object-start-bitmap-inl.h b/chromium/v8/src/heap/cppgc/object-start-bitmap-inl.h index 93243979aac..6d963cc9486 100644 --- a/chromium/v8/src/heap/cppgc/object-start-bitmap-inl.h +++ b/chromium/v8/src/heap/cppgc/object-start-bitmap-inl.h @@ -19,6 +19,7 @@ ObjectStartBitmap::ObjectStartBitmap(Address offset) : offset_(offset) { HeapObjectHeader* ObjectStartBitmap::FindHeader( ConstAddress address_maybe_pointing_to_the_middle_of_object) const { + DCHECK_LE(offset_, address_maybe_pointing_to_the_middle_of_object); size_t object_offset = address_maybe_pointing_to_the_middle_of_object - offset_; size_t object_start_number = object_offset / kAllocationGranularity; |
