| Index: src/heap/objects-visiting-inl.h
|
| diff --git a/src/heap/objects-visiting-inl.h b/src/heap/objects-visiting-inl.h
|
| index d9a584192e47765d2da38ace66f4a733e523a7a8..fcf33de068324eb7573d4b385a80cb744dc329f0 100644
|
| --- a/src/heap/objects-visiting-inl.h
|
| +++ b/src/heap/objects-visiting-inl.h
|
| @@ -455,14 +455,6 @@ void StaticMarkingVisitor<StaticVisitor>::VisitSharedFunctionInfo(
|
| // Always flush the optimized code map if requested by flag.
|
| shared->ClearOptimizedCodeMap();
|
| }
|
| - } else {
|
| - if (!shared->OptimizedCodeMapIsCleared()) {
|
| - // Treat some references within the code map weakly by marking the
|
| - // code map itself but not pushing it onto the marking deque. The
|
| - // map will be processed after marking.
|
| - FixedArray* code_map = shared->optimized_code_map();
|
| - MarkOptimizedCodeMap(heap, code_map);
|
| - }
|
| }
|
| MarkCompactCollector* collector = heap->mark_compact_collector();
|
| if (collector->is_code_flushing_enabled()) {
|
| @@ -630,23 +622,6 @@ void StaticMarkingVisitor<StaticVisitor>::MarkTransitionArray(
|
|
|
|
|
| template <typename StaticVisitor>
|
| -void StaticMarkingVisitor<StaticVisitor>::MarkOptimizedCodeMap(
|
| - Heap* heap, FixedArray* code_map) {
|
| - if (!StaticVisitor::MarkObjectWithoutPush(heap, code_map)) return;
|
| -
|
| - // Mark the context-independent entry in the optimized code map. Depending on
|
| - // the age of the code object, we treat it as a strong or a weak reference.
|
| - Object* shared_object = code_map->get(SharedFunctionInfo::kSharedCodeIndex);
|
| - if (FLAG_turbo_preserve_shared_code && shared_object->IsCode() &&
|
| - FLAG_age_code && !Code::cast(shared_object)->IsOld()) {
|
| - StaticVisitor::VisitPointer(
|
| - heap, code_map,
|
| - code_map->RawFieldOfElementAt(SharedFunctionInfo::kSharedCodeIndex));
|
| - }
|
| -}
|
| -
|
| -
|
| -template <typename StaticVisitor>
|
| void StaticMarkingVisitor<StaticVisitor>::MarkInlinedFunctionsCode(Heap* heap,
|
| Code* code) {
|
| // For optimized functions we should retain both non-optimized version
|
|
|