Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 205d98a70be06ff71cba312f73769ddf8f2c5263..a3bde5dac615c5a5193eedaf8f98eae43e9330c1 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -297,10 +297,8 @@ void CompilationInfo::PrepareForCompilation(Scope* scope) { |
void CompilationInfo::EnsureFeedbackVector() { |
if (feedback_vector_.is_null()) { |
feedback_vector_ = isolate()->factory()->NewTypeFeedbackVector( |
- function()->slot_count(), function()->ic_slot_count()); |
+ function()->feedback_vector_spec()); |
} |
- DCHECK(feedback_vector_->Slots() == function()->slot_count() && |
- feedback_vector_->ICSlots() == function()->ic_slot_count()); |
} |