Index: src/heap.cc |
diff --git a/src/heap.cc b/src/heap.cc |
index ad352bce50ee38990042edfe746708872799c73d..b1096b37e29f25dd332cf8343f12e54468e76988 100644 |
--- a/src/heap.cc |
+++ b/src/heap.cc |
@@ -4971,7 +4971,7 @@ MaybeObject* Heap::CopyJSObjectWithAllocationSite( |
int object_size = map->instance_size(); |
Object* clone; |
- ASSERT(map->CanTrackAllocationSite()); |
+ ASSERT(AllocationSite::CanTrack(map->instance_type())); |
ASSERT(map->instance_type() == JS_ARRAY_TYPE); |
WriteBarrierMode wb_mode = UPDATE_WRITE_BARRIER; |