Reviewers: Hannes Payer,
Message:
PTAL
Description:
Check the slots being adding to the SlotsBuffer.
Related to crbug/454297.
Please review this at https://codereview.chromium.org/897523003/
Base URL: https://chromium.googlesource.com/v8/v8.git@master
Affected files (+5, -0 lines):
M src/heap/mark-compact.h
Index: src/heap/mark-compact.h
diff --git a/src/heap/mark-compact.h b/src/heap/mark-compact.h
index
361f3a6377392022e69931832f2ee8ec6962d91d..50c23dd810d7d17552f5dcdd9392711a640b5065
100644
--- a/src/heap/mark-compact.h
+++ b/src/heap/mark-compact.h
@@ -266,6 +266,11 @@ class SlotsBuffer {
void Add(ObjectSlot slot) {
DCHECK(0 <= idx_ && idx_ < kNumberOfElements);
+#ifdef DEBUG
+ if (slot >= reinterpret_cast<ObjectSlot>(NUMBER_OF_SLOT_TYPES)) {
+ DCHECK_NOT_NULL(*slot);
+ }
+#endif
slots_[idx_++] = slot;
}
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.