| Index: src/ic-inl.h
|
| diff --git a/src/ic-inl.h b/src/ic-inl.h
|
| index 779dfcdf4dcde5ac3ce97d584422af58968e157c..0e41093e5cdc2398f0cf00020012acd6ad8d67ad 100644
|
| --- a/src/ic-inl.h
|
| +++ b/src/ic-inl.h
|
| @@ -91,12 +91,8 @@ void IC::SetTargetAtAddress(Address address, Code* target) {
|
| }
|
| #endif
|
| Assembler::set_target_address_at(address, target->instruction_start());
|
| - if (heap->gc_state() == Heap::MARK_COMPACT &&
|
| - heap->mark_compact_collector()->is_compacting()) {
|
| - Code* host = heap->isolate()->inner_pointer_to_code_cache()->
|
| - GcSafeFindCodeForInnerPointer(address);
|
| - RelocInfo rinfo(address, RelocInfo::CODE_TARGET, 0, host);
|
| - heap->mark_compact_collector()->RecordRelocSlot(&rinfo, target);
|
| + if (heap->gc_state() == Heap::MARK_COMPACT) {
|
| + heap->mark_compact_collector()->RecordCodeTargetPatch(address, target);
|
| } else {
|
| heap->incremental_marking()->RecordCodeTargetPatch(address, target);
|
| }
|
|
|