Index: src/mark-compact.h |
=================================================================== |
--- src/mark-compact.h (revision 687) |
+++ src/mark-compact.h (working copy) |
@@ -152,9 +152,17 @@ |
static void MarkUnmarkedObject(HeapObject* obj); |
static inline void MarkObject(HeapObject* obj) { |
- if (!obj->IsMarked()) MarkUnmarkedObject(obj); |
+ if (!obj->IsMarked()) MarkUnmarkedObject(obj); |
} |
+ static inline void SetMark(HeapObject* obj) { |
+ tracer_->increment_marked_count(); |
+#ifdef DEBUG |
+ UpdateLiveObjectCount(obj); |
+#endif |
+ obj->SetMark(); |
+ } |
+ |
// Creates back pointers for all map transitions, stores them in |
// the prototype field. The original prototype pointers are restored |
// in ClearNonLiveTransitions(). All JSObject maps |