Index: src/objects-visiting-inl.h |
diff --git a/src/objects-visiting-inl.h b/src/objects-visiting-inl.h |
index 92fb393872336745c4d2c6d2ab68297c0c111488..78fe92bac3e4d004a36ab4ada9115595444d8646 100644 |
--- a/src/objects-visiting-inl.h |
+++ b/src/objects-visiting-inl.h |
@@ -289,10 +289,10 @@ void StaticMarkingVisitor<StaticVisitor>::VisitCodeTarget( |
if (FLAG_cleanup_code_caches_at_gc && target->is_inline_cache_stub() |
&& (target->ic_state() == MEGAMORPHIC || target->ic_state() == GENERIC || |
target->ic_state() == POLYMORPHIC || heap->flush_monomorphic_ics() || |
- Serializer::enabled() || target->ic_age() != heap->global_ic_age() || |
+ Serializer::enabled(heap->isolate()) || |
+ target->ic_age() != heap->global_ic_age() || |
target->is_invalidated_weak_stub())) { |
- IC::Clear(target->GetIsolate(), rinfo->pc(), |
- rinfo->host()->constant_pool()); |
+ IC::Clear(heap->isolate(), rinfo->pc(), rinfo->host()->constant_pool()); |
target = Code::GetCodeFromTargetAddress(rinfo->target_address()); |
} |
heap->mark_compact_collector()->RecordRelocSlot(rinfo, target); |
@@ -408,7 +408,7 @@ void StaticMarkingVisitor<StaticVisitor>::VisitCode( |
if (FLAG_cleanup_code_caches_at_gc) { |
code->ClearTypeFeedbackInfo(heap); |
} |
- if (FLAG_age_code && !Serializer::enabled()) { |
+ if (FLAG_age_code && !Serializer::enabled(heap->isolate())) { |
code->MakeOlder(heap->mark_compact_collector()->marking_parity()); |
} |
code->CodeIterateBody<StaticVisitor>(heap); |