| Index: src/heap/objects-visiting-inl.h
|
| diff --git a/src/heap/objects-visiting-inl.h b/src/heap/objects-visiting-inl.h
|
| index 0e025b22f2af61dabef81bca9136b518c162fc2d..3d914b863f64147d06d10d99cb587639a01019a9 100644
|
| --- a/src/heap/objects-visiting-inl.h
|
| +++ b/src/heap/objects-visiting-inl.h
|
| @@ -415,13 +415,6 @@ void StaticMarkingVisitor<StaticVisitor>::VisitCode(Map* map,
|
| if (FLAG_age_code && !heap->isolate()->serializer_enabled()) {
|
| code->MakeOlder(heap->mark_compact_collector()->marking_parity());
|
| }
|
| - MarkCompactCollector* collector = heap->mark_compact_collector();
|
| - if (collector->is_code_flushing_enabled()) {
|
| - if (code->kind() == Code::OPTIMIZED_FUNCTION) {
|
| - // Visit all unoptimized code objects to prevent flushing them.
|
| - MarkInlinedFunctionsCode(heap, code);
|
| - }
|
| - }
|
| CodeBodyVisitor::Visit(map, object);
|
| }
|
|
|
| @@ -605,25 +598,6 @@ void StaticMarkingVisitor<StaticVisitor>::MarkOptimizedCodeMap(
|
| }
|
|
|
|
|
| -template <typename StaticVisitor>
|
| -void StaticMarkingVisitor<StaticVisitor>::MarkInlinedFunctionsCode(Heap* heap,
|
| - Code* code) {
|
| - // For optimized functions we should retain both non-optimized version
|
| - // of its code and non-optimized version of all inlined functions.
|
| - // This is required to support bailing out from inlined code.
|
| - if (code->deoptimization_data() != heap->empty_fixed_array()) {
|
| - DeoptimizationInputData* const data =
|
| - DeoptimizationInputData::cast(code->deoptimization_data());
|
| - FixedArray* const literals = data->LiteralArray();
|
| - int const inlined_count = data->InlinedFunctionCount()->value();
|
| - for (int i = 0; i < inlined_count; ++i) {
|
| - StaticVisitor::MarkObject(
|
| - heap, SharedFunctionInfo::cast(literals->get(i))->code());
|
| - }
|
| - }
|
| -}
|
| -
|
| -
|
| inline static bool HasSourceCode(Heap* heap, SharedFunctionInfo* info) {
|
| Object* undefined = heap->undefined_value();
|
| return (info->script() != undefined) &&
|
|
|