Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 9bda713a0e71bac3fb0676122e866eaec406e062..218d3b9625880164cc77add838d537432871f628 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -2014,9 +2014,9 @@ void Factory::BecomeJSFunction(Handle<JSProxy> proxy) { |
} |
-Handle<TypeFeedbackVector> Factory::NewTypeFeedbackVector(int slot_count, |
- int ic_slot_count) { |
- return TypeFeedbackVector::Allocate(isolate(), slot_count, ic_slot_count); |
+Handle<TypeFeedbackVector> Factory::NewTypeFeedbackVector( |
+ const FeedbackVectorSpec& spec) { |
+ return TypeFeedbackVector::Allocate(isolate(), spec); |
} |
@@ -2091,7 +2091,9 @@ Handle<SharedFunctionInfo> Factory::NewSharedFunctionInfo( |
share->set_script(*undefined_value(), SKIP_WRITE_BARRIER); |
share->set_debug_info(*undefined_value(), SKIP_WRITE_BARRIER); |
share->set_inferred_name(*empty_string(), SKIP_WRITE_BARRIER); |
- Handle<TypeFeedbackVector> feedback_vector = NewTypeFeedbackVector(0, 0); |
+ FeedbackVectorSpec empty_spec; |
+ Handle<TypeFeedbackVector> feedback_vector = |
+ NewTypeFeedbackVector(empty_spec); |
share->set_feedback_vector(*feedback_vector, SKIP_WRITE_BARRIER); |
#if TRACE_MAPS |
share->set_unique_id(isolate()->GetNextUniqueSharedFunctionInfoId()); |