Index: src/heap.cc |
diff --git a/src/heap.cc b/src/heap.cc |
index 16204355bc1c35ffe3a040003f52d8fe98a22adc..49e511327f8e73134da4730d6a2989c4631d030c 100644 |
--- a/src/heap.cc |
+++ b/src/heap.cc |
@@ -4970,7 +4970,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; |