Index: src/mark-compact.cc |
diff --git a/src/mark-compact.cc b/src/mark-compact.cc |
index 3770bc3b35572a3b33e3cb7b82b5ad4d83276bb9..fad1e27b4ca2257e2180b1b93d11cdcc50d79187 100644 |
--- a/src/mark-compact.cc |
+++ b/src/mark-compact.cc |
@@ -689,9 +689,7 @@ class StaticMarkingVisitor : public StaticVisitorBase { |
static void VisitSharedFunctionInfoGeneric(Map* map, HeapObject* object) { |
- SharedFunctionInfo* shared = reinterpret_cast<SharedFunctionInfo*>(object); |
- |
- if (shared->IsInobjectSlackTrackingInProgress()) shared->DetachInitialMap(); |
+ reinterpret_cast<SharedFunctionInfo*>(object)->BeforeVisitingPointers(); |
FixedBodyVisitor<StaticMarkingVisitor, |
SharedFunctionInfo::BodyDescriptor, |
@@ -715,7 +713,7 @@ class StaticMarkingVisitor : public StaticVisitorBase { |
Heap* heap = map->heap(); |
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); |
@@ -840,8 +838,8 @@ class StaticMarkingVisitor : public StaticVisitorBase { |
} |
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 |