Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 39badb69362c7c68c50287dfd61a1854acf28b84..23c0f5b9ab7628e7a8ba7441aa72f8e716bf7b5a 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -1222,7 +1222,7 @@ Handle<JSFunction> Factory::NewFunction(Handle<Map> map, |
function->set_code(info->code()); |
function->set_context(*context); |
function->set_prototype_or_initial_map(*the_hole_value()); |
- function->set_literals(LiteralsArray::cast(*empty_fixed_array())); |
+ function->set_literals(LiteralsArray::cast(*empty_literals_array())); |
function->set_next_function_link(*undefined_value(), SKIP_WRITE_BARRIER); |
isolate()->heap()->InitializeJSObjectBody(*function, *map, JSFunction::kSize); |
return function; |
@@ -2140,9 +2140,7 @@ Handle<SharedFunctionInfo> Factory::NewSharedFunctionInfo( |
StaticFeedbackVectorSpec empty_spec; |
Handle<TypeFeedbackMetadata> feedback_metadata = |
TypeFeedbackMetadata::New(isolate(), &empty_spec); |
- Handle<TypeFeedbackVector> feedback_vector = |
- TypeFeedbackVector::New(isolate(), feedback_metadata); |
- share->set_feedback_vector(*feedback_vector, SKIP_WRITE_BARRIER); |
+ share->set_feedback_metadata(*feedback_metadata, SKIP_WRITE_BARRIER); |
#if TRACE_MAPS |
share->set_unique_id(isolate()->GetNextUniqueSharedFunctionInfoId()); |
#endif |