| Index: src/ic-inl.h
|
| diff --git a/src/ic-inl.h b/src/ic-inl.h
|
| index 56cea817600c29748fc0e9cd9e0037d3b70cd20d..1add1cd0d4bd4b3035aec38834a70356105cb4cd 100644
|
| --- a/src/ic-inl.h
|
| +++ b/src/ic-inl.h
|
| @@ -89,6 +89,16 @@ void IC::SetTargetAtAddress(Address address, Code* target) {
|
| Assembler::set_target_address_at(address, target->instruction_start());
|
| target->GetHeap()->incremental_marking()->RecordCodeTargetPatch(address,
|
| target);
|
| + StackFrameIterator it;
|
| + if (it.done()) return;
|
| + it.Advance();
|
| + StackFrame* raw_frame = it.frame();
|
| + if (raw_frame->is_java_script()) {
|
| + JSFunction* function =
|
| + JSFunction::cast(JavaScriptFrame::cast(raw_frame)->function());
|
| + function->set_profiler_ticks(0);
|
| + Isolate::Current()->runtime_profiler()->NotifyICChanged();
|
| + }
|
| }
|
|
|
|
|
|
|