Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 61eb8ad72a30ff6dd34ae4410c1bca3a644cca00..61cce041f517b76bbf78591bf3b84283594fd357 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -2947,6 +2947,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( |
@@ -8558,7 +8559,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_ClearFunctionTypeFeedback) { |
Code* unoptimized = function->shared()->code(); |
if (unoptimized->kind() == Code::FUNCTION) { |
unoptimized->ClearInlineCaches(); |
- unoptimized->ClearTypeFeedbackInfo(isolate->heap()); |
+ function->shared()->ClearTypeFeedbackInfo(isolate->heap()); |
Benedikt Meurer
2014/03/05 07:22:56
This should be done unconditionally.
mvstanton
2014/03/05 08:48:02
Done.
|
} |
return isolate->heap()->undefined_value(); |
} |