Index: test/cctest/test-feedback-vector.h |
diff --git a/test/cctest/test-feedback-vector.h b/test/cctest/test-feedback-vector.h |
index a16fa37874bfd373492cab4109da758d5987e158..6bae553c853af30677c1b87be700d1c8300c6e26 100644 |
--- a/test/cctest/test-feedback-vector.h |
+++ b/test/cctest/test-feedback-vector.h |
@@ -42,7 +42,10 @@ class FeedbackVectorHelper { |
template <typename Spec> |
Handle<FeedbackVector> NewFeedbackVector(Isolate* isolate, Spec* spec) { |
Handle<FeedbackMetadata> metadata = FeedbackMetadata::New(isolate, spec); |
- return FeedbackVector::New(isolate, metadata); |
+ Handle<SharedFunctionInfo> shared = isolate->factory()->NewSharedFunctionInfo( |
+ isolate->factory()->empty_string(), MaybeHandle<Code>(), false); |
+ shared->set_feedback_metadata(*metadata); |
+ return FeedbackVector::New(isolate, shared); |
} |
template <typename Spec> |