Index: src/debug/liveedit.cc |
diff --git a/src/debug/liveedit.cc b/src/debug/liveedit.cc |
index e0419f487948dcd086bcc0575d613d99da2ea881..8a936ac177b76349d8b8bc9b7e199422ba29a3ce 100644 |
--- a/src/debug/liveedit.cc |
+++ b/src/debug/liveedit.cc |
@@ -995,10 +995,12 @@ class LiteralFixer { |
// collect all functions and fix their literal arrays. |
Handle<FixedArray> function_instances = |
CollectJSFunctions(shared_info, isolate); |
+ Handle<TypeFeedbackVector> vector(shared_info->feedback_vector()); |
+ |
for (int i = 0; i < function_instances->length(); i++) { |
Handle<JSFunction> fun(JSFunction::cast(function_instances->get(i))); |
- Handle<FixedArray> new_literals = |
- isolate->factory()->NewFixedArray(new_literal_count); |
+ Handle<LiteralsArray> new_literals = |
+ LiteralsArray::New(isolate, vector, new_literal_count, TENURED); |
fun->set_literals(*new_literals); |
} |