Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index ef87fa391e1525f260d7602f5c1bba0e2e795861..43d29f6f0f007bd14ebc71b27e3f587aa3898898 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -2138,8 +2138,10 @@ Handle<SharedFunctionInfo> Factory::NewSharedFunctionInfo( |
share->set_debug_info(*undefined_value(), SKIP_WRITE_BARRIER); |
share->set_inferred_name(*empty_string(), SKIP_WRITE_BARRIER); |
StaticFeedbackVectorSpec empty_spec; |
+ Handle<TypeFeedbackMetadata> feedback_metadata = |
+ TypeFeedbackMetadata::New(isolate(), &empty_spec); |
Handle<TypeFeedbackVector> feedback_vector = |
- TypeFeedbackVector::New(isolate(), &empty_spec); |
+ TypeFeedbackVector::New(isolate(), feedback_metadata); |
share->set_feedback_vector(*feedback_vector, SKIP_WRITE_BARRIER); |
#if TRACE_MAPS |
share->set_unique_id(isolate()->GetNextUniqueSharedFunctionInfoId()); |