Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 7b06b8732ad03928d97d3dfcf16483b7633a39c5..bac87f8816e7b7c1f430c6c06925e6e897ffdb1c 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -1706,7 +1706,11 @@ void HeapObject::IterateBody(InstanceType type, int object_size, |
case NAME##_TYPE: |
STRUCT_LIST(MAKE_STRUCT_CASE) |
#undef MAKE_STRUCT_CASE |
- StructBodyDescriptor::IterateBody(this, object_size, v); |
+ if (type == ALLOCATION_SITE_TYPE) { |
+ AllocationSite::BodyDescriptor::IterateBody(this, v); |
+ } else { |
+ StructBodyDescriptor::IterateBody(this, object_size, v); |
+ } |
break; |
default: |
PrintF("Unknown type: %d\n", type); |