Chromium Code Reviews| Index: src/objects-visiting-inl.h |
| diff --git a/src/objects-visiting-inl.h b/src/objects-visiting-inl.h |
| index 169c405175d88111833f20ec2eb2282f14427965..d1c8c0f6414f09dd9881e97a4038739c59c3c6da 100644 |
| --- a/src/objects-visiting-inl.h |
| +++ b/src/objects-visiting-inl.h |
| @@ -312,7 +312,8 @@ 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(target->GetIsolate()) || |
|
Michael Starzinger
2014/04/30 09:23:53
Better use "heap->isolate()" here.
Sven Panne
2014/04/30 09:37:19
Done.
|
| + target->ic_age() != heap->global_ic_age() || |
| target->is_invalidated_weak_stub())) { |
| IC::Clear(target->GetIsolate(), rinfo->pc(), |
|
Michael Starzinger
2014/04/30 09:23:53
I know you didn't change this line, but likewise h
Sven Panne
2014/04/30 09:37:19
Done.
|
| rinfo->host()->constant_pool()); |
| @@ -431,7 +432,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); |