Index: src/mark-compact.cc |
=================================================================== |
--- src/mark-compact.cc (revision 11812) |
+++ src/mark-compact.cc (working copy) |
@@ -1296,10 +1296,8 @@ |
static void VisitSharedFunctionInfoGeneric(Map* map, HeapObject* object) { |
- SharedFunctionInfo* shared = reinterpret_cast<SharedFunctionInfo*>(object); |
+ SharedFunctionInfo::cast(object)->BeforeVisitingPointers(); |
- if (shared->IsInobjectSlackTrackingInProgress()) shared->DetachInitialMap(); |
- |
FixedBodyVisitor<StaticMarkingVisitor, |
SharedFunctionInfo::BodyDescriptor, |
void>::Visit(map, object); |
@@ -1402,7 +1400,7 @@ |
Heap* heap = map->GetHeap(); |
SharedFunctionInfo* shared = reinterpret_cast<SharedFunctionInfo*>(object); |
- if (shared->IsInobjectSlackTrackingInProgress()) shared->DetachInitialMap(); |
+ shared->BeforeVisitingPointers(); |
if (!known_flush_code_candidate) { |
known_flush_code_candidate = IsFlushable(heap, shared); |
@@ -1539,8 +1537,8 @@ |
} |
VisitPointers(heap, |
- SLOT_ADDR(object, SharedFunctionInfo::kScopeInfoOffset), |
- SLOT_ADDR(object, SharedFunctionInfo::kSize)); |
+ SLOT_ADDR(object, SharedFunctionInfo::kOptimizedCodeMapOffset), |
+ SLOT_ADDR(object, SharedFunctionInfo::kSize)); |
} |
#undef SLOT_ADDR |