| Index: src/runtime.cc
|
| diff --git a/src/runtime.cc b/src/runtime.cc
|
| index 47d6042ab4fe8c09eaf322dd292cfc8e6bfa83e3..ce221e3b86434b76e8e1f829b981aed2256a763e 100644
|
| --- a/src/runtime.cc
|
| +++ b/src/runtime.cc
|
| @@ -2942,6 +2942,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SetCode) {
|
| // Set the code, scope info, formal parameter count, and the length
|
| // of the target shared function info.
|
| target_shared->ReplaceCode(source_shared->code());
|
| + target_shared->set_feedback_vector(source_shared->feedback_vector());
|
| target_shared->set_scope_info(source_shared->scope_info());
|
| target_shared->set_length(source_shared->length());
|
| target_shared->set_formal_parameter_count(
|
| @@ -8516,10 +8517,10 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_ClearFunctionTypeFeedback) {
|
| HandleScope scope(isolate);
|
| ASSERT(args.length() == 1);
|
| CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0);
|
| + function->shared()->ClearTypeFeedbackInfo(isolate->heap());
|
| Code* unoptimized = function->shared()->code();
|
| if (unoptimized->kind() == Code::FUNCTION) {
|
| unoptimized->ClearInlineCaches();
|
| - unoptimized->ClearTypeFeedbackInfo(isolate->heap());
|
| }
|
| return isolate->heap()->undefined_value();
|
| }
|
|
|