Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 5690455b810caf8b5ec2099edaf0282e96a970da..e892a2d864c3617e1bdd2e7f506d545cec0c8f25 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -260,16 +260,7 @@ void CompilationInfo::PrepareForCompilation(Scope* scope) { |
int length = function()->slot_count(); |
if (feedback_vector_.is_null()) { |
// Allocate the feedback vector too. |
- feedback_vector_ = isolate()->factory()->NewFixedArray(length, TENURED); |
- // Ensure we can skip the write barrier |
- ASSERT_EQ(isolate()->heap()->uninitialized_symbol(), |
- *TypeFeedbackInfo::UninitializedSentinel(isolate())); |
- for (int i = 0; i < length; i++) { |
- feedback_vector_->set( |
- i, |
- *TypeFeedbackInfo::UninitializedSentinel(isolate()), |
- SKIP_WRITE_BARRIER); |
- } |
+ feedback_vector_ = isolate()->factory()->NewTypeFeedbackVector(length); |
} |
ASSERT(feedback_vector_->length() == length); |
} |