Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 00a228238f98574a0949ba396a29ac32c3d2d220..f2a3a3243f10f2a23fcfa97c51f048f978cd44a8 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -251,7 +251,8 @@ bool CompilationInfo::ShouldSelfOptimize() { |
void CompilationInfo::EnsureFeedbackVector() { |
- if (feedback_vector_.is_null()) { |
+ if (feedback_vector_.is_null() || |
+ feedback_vector_->SpecDiffersFrom(function()->feedback_vector_spec())) { |
feedback_vector_ = isolate()->factory()->NewTypeFeedbackVector( |
function()->feedback_vector_spec()); |
} |