Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index f078c227115fb223769d57a1d344ca880157bdda..8923d071b106278271507a1cf676889274657092 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -1342,7 +1342,9 @@ Handle<JSFunction> Factory::NewFunctionFromSharedFunctionInfo( |
} else if (!info->bound()) { |
int number_of_literals = info->num_literals(); |
- Handle<FixedArray> literals = NewFixedArray(number_of_literals, pretenure); |
+ Handle<LiteralsArray> literals = |
+ LiteralsArray::New(isolate(), handle(info->feedback_vector()), |
+ number_of_literals, pretenure); |
result->set_literals(*literals); |
// Cache context-specific literals. |
if (FLAG_cache_optimized_code) { |