| Index: src/factory.cc
|
| diff --git a/src/factory.cc b/src/factory.cc
|
| index 4de2407784ad543e89d0f02665eb80dffb7082e4..696c78060f2f3d50986a272bd07991938b31ff4e 100644
|
| --- a/src/factory.cc
|
| +++ b/src/factory.cc
|
| @@ -2017,9 +2017,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);
|
| }
|
|
|
|
|
| @@ -2094,7 +2094,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());
|
|
|