Index: src/heap.h |
diff --git a/src/heap.h b/src/heap.h |
index d254b607b6e756d29245c5d312def4d3f00afaaf..f020c7f3db9064fc989c328d8712898db9d9d8ee 100644 |
--- a/src/heap.h |
+++ b/src/heap.h |
@@ -1812,6 +1812,8 @@ class Heap { |
void QueueMemoryChunkForFree(MemoryChunk* chunk); |
void FreeQueuedChunks(); |
+ int gc_count() const { return gc_count_; } |
+ |
// Completely clear the Instanceof cache (to stop it keeping objects alive |
// around a GC). |
inline void CompletelyClearInstanceofCache(); |