Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(380)

Unified Diff: test/cctest/test-feedback-vector.h

Issue 2672363002: Link type feedback vectors to the shared function info. (Closed)
Patch Set: rebase Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/cctest/interpreter/interpreter-tester.h ('k') | test/cctest/test-feedback-vector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « test/cctest/interpreter/interpreter-tester.h ('k') | test/cctest/test-feedback-vector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698