Index: test/cctest/test-feedback-vector.h |
diff --git a/test/cctest/test-feedback-vector.h b/test/cctest/test-feedback-vector.h |
index 52f92d12479bbfe3f8aa7f9176cf4695901350ad..6817a266aaaedec15deb80cb5a511119257dfa1e 100644 |
--- a/test/cctest/test-feedback-vector.h |
+++ b/test/cctest/test-feedback-vector.h |
@@ -17,9 +17,9 @@ class FeedbackVectorHelper { |
public: |
explicit FeedbackVectorHelper(Handle<TypeFeedbackVector> vector) |
: vector_(vector) { |
- int slot_count = vector->Slots(); |
+ int slot_count = vector->slot_count(); |
slots_.reserve(slot_count); |
- TypeFeedbackMetadataIterator iter(vector); |
+ TypeFeedbackMetadataIterator iter(vector->metadata()); |
while (iter.HasNext()) { |
FeedbackVectorSlot slot = iter.Next(); |
slots_.push_back(slot); |
@@ -39,6 +39,14 @@ class FeedbackVectorHelper { |
std::vector<FeedbackVectorSlot> slots_; |
}; |
+template <typename Spec> |
+Handle<TypeFeedbackVector> NewTypeFeedbackVector(Isolate* isolate, Spec* spec) { |
+ Handle<TypeFeedbackMetadata> metadata = |
+ TypeFeedbackMetadata::New(isolate, spec); |
+ return TypeFeedbackVector::New(isolate, metadata); |
+} |
+ |
+ |
} // namespace internal |
} // namespace v8 |