Map* map, DescriptorArray* descriptors,
LayoutDescriptor* layout_descriptor) {
map->InitializeDescriptors(descriptors, layout_descriptor);
-#ifdef VERIFY_HEAP
- if (FLAG_verify_heap) {
- DCHECK(layout_descriptor->IsConsistentWithMap(map));
- }
-#endif
+ CHECK(layout_descriptor->IsConsistentWithMap(map));
}
}
CHECK(layout_desc->IsSlowLayout());
CHECK(!layout_desc->IsFastPointerLayout());
-#ifdef VERIFY_HEAP
- if (FLAG_verify_heap) {
- DCHECK(layout_descriptor->IsConsistentWithMap(*map));
- }
-#endif
+ CHECK(layout_descriptor->IsConsistentWithMap(*map));
}
}
map->InitializeDescriptors(*descriptors, *layout_descriptor);
}
Handle<LayoutDescriptor> layout_descriptor(map->layout_descriptor(), isolate);
-#ifdef VERIFY_HEAP
- if (FLAG_verify_heap) {
- DCHECK(layout_descriptor->IsConsistentWithMap(*map));
- }
-#endif
+ CHECK(layout_descriptor->IsConsistentWithMap(*map));
return layout_descriptor;
}
CHECK(layout_desc->IsTagged(field_index + field_width_in_words));
}
}
-#ifdef VERIFY_HEAP
- if (FLAG_verify_heap) {
- DCHECK(map->layout_descriptor()->IsConsistentWithMap(*map));
- }
-#endif
+ CHECK(map->layout_descriptor()->IsConsistentWithMap(*map));
}
Handle<LayoutDescriptor> layout_descriptor(map->GetLayoutDescriptor(),
isolate);
-#ifdef VERIFY_HEAP
- if (FLAG_verify_heap) {
- DCHECK(layout_descriptor->IsConsistentWithMap(*map));
- }
-#endif
+ CHECK(layout_descriptor->IsConsistentWithMap(*map));
return layout_descriptor;
}
}
Handle<LayoutDescriptor> split_layout_descriptor(
split_map->layout_descriptor(), isolate);
-#ifdef VERIFY_HEAP
- if (FLAG_verify_heap) {
- DCHECK(split_layout_descriptor->IsConsistentWithMap(*split_map));
- }
-#endif
+ CHECK(split_layout_descriptor->IsConsistentWithMap(*split_map));
CHECK(split_layout_descriptor->IsSlowLayout());
CHECK(split_map->owns_descriptors());
// Layout descriptors should be shared with |split_map|.
CHECK(map1->owns_descriptors());
CHECK_EQ(*split_layout_descriptor, map1->layout_descriptor());
-#ifdef VERIFY_HEAP
- if (FLAG_verify_heap) {
- DCHECK(map1->layout_descriptor()->IsConsistentWithMap(*map1));
- }
-#endif
+ CHECK(map1->layout_descriptor()->IsConsistentWithMap(*map1));
Handle<Map> map2 = Map::CopyWithField(split_map, MakeString("bar"), any_type,
NONE, Representation::Tagged(),
// Layout descriptors should not be shared with |split_map|.
CHECK(map2->owns_descriptors());
CHECK_NE(*split_layout_descriptor, map2->layout_descriptor());
-#ifdef VERIFY_HEAP
- if (FLAG_verify_heap) {
- DCHECK(map2->layout_descriptor()->IsConsistentWithMap(*map2));
- }
-#endif
+ CHECK(map2->layout_descriptor()->IsConsistentWithMap(*map2));
}