Index: runtime/vm/object.h |
diff --git a/runtime/vm/object.h b/runtime/vm/object.h |
index 8431674cfa11d66865b13632e1ee2b3ff979dfb0..845d9da9481c3347b311f60b4487788dd9bb9443 100644 |
--- a/runtime/vm/object.h |
+++ b/runtime/vm/object.h |
@@ -3628,6 +3628,7 @@ class ObjectPool : public Object { |
// Returns the pool index from the offset relative to a tagged RawObjectPool*, |
// adjusting for the tag-bit. |
static intptr_t IndexFromOffset(intptr_t offset) { |
+ ASSERT(Utils::IsAligned(offset + kHeapObjectTag, kWordSize)); |
return (offset + kHeapObjectTag - data_offset()) / kBytesPerElement; |
} |