[vm] Add more details to the assertion in ObjectSlots::ObjectSlots
TEST=ci Issue: https://github.com/dart-lang/sdk/issues/63180 Change-Id: I8dc86589827b31ce5838ecb2b4b0d80d5111871a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/495942 Commit-Queue: Alexander Markov <alexmarkov@google.com> Reviewed-by: Alexander Aprelev <aam@google.com>
This commit is contained in:
committed by
dart-scoped@luci-project-accounts.iam.gserviceaccount.com
parent
1c7332ec86
commit
1d901d209d
@@ -136,7 +136,10 @@ class ObjectSlots {
|
||||
if (contains_only_tagged_words && (slots->length() > 0)) {
|
||||
auto expected_offset = (*slots)[0].offset;
|
||||
for (auto& slot : *slots) {
|
||||
ASSERT_EQUAL(slot.offset, expected_offset);
|
||||
if (slot.offset != expected_offset) {
|
||||
FATAL("Slot %s has offset 0x%" Px32 ", expected offset 0x%" Px32,
|
||||
slot.name, slot.offset, expected_offset);
|
||||
}
|
||||
expected_offset += kCompressedWordSize;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user