Index: src/objects-visiting-inl.h |
diff --git a/src/objects-visiting-inl.h b/src/objects-visiting-inl.h |
index 30a7ad460b01222931a8a0defe744bf96958a31c..8363f4f466e76feccc68d8d56ee867811370e22f 100644 |
--- a/src/objects-visiting-inl.h |
+++ b/src/objects-visiting-inl.h |
@@ -176,6 +176,17 @@ void StaticMarkingVisitor<StaticVisitor>::VisitCodeEntry( |
template<typename StaticVisitor> |
+void StaticMarkingVisitor<StaticVisitor>::VisitEmbeddedPointer( |
+ Heap* heap, RelocInfo* rinfo) { |
+ ASSERT(rinfo->rmode() == RelocInfo::EMBEDDED_OBJECT); |
+ ASSERT(!rinfo->target_object()->IsConsString()); |
+ HeapObject* object = HeapObject::cast(rinfo->target_object()); |
+ heap->mark_compact_collector()->RecordRelocSlot(rinfo, object); |
+ StaticVisitor::MarkObject(heap, object); |
+} |
+ |
+ |
+template<typename StaticVisitor> |
void StaticMarkingVisitor<StaticVisitor>::VisitGlobalPropertyCell( |
Heap* heap, RelocInfo* rinfo) { |
ASSERT(rinfo->rmode() == RelocInfo::GLOBAL_PROPERTY_CELL); |