Index: src/heap.cc |
diff --git a/src/heap.cc b/src/heap.cc |
index aa5c3a9200cdfeecfad159ed9af42970ec2dc983..f33d6d3785adb5c74cb466d7ca8e3b515a5238e7 100644 |
--- a/src/heap.cc |
+++ b/src/heap.cc |
@@ -2687,6 +2687,7 @@ MaybeObject* Heap::AllocateTypeFeedbackInfo() { |
if (!maybe_info->To(&info)) return maybe_info; |
} |
info->initialize_storage(); |
+ info->set_feedback_vector(empty_fixed_array(), SKIP_WRITE_BARRIER); |
return info; |
} |
@@ -3808,7 +3809,6 @@ MaybeObject* Heap::AllocateSharedFunctionInfo(Object* name) { |
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); |
- share->set_feedback_vector(empty_fixed_array(), SKIP_WRITE_BARRIER); |
share->set_initial_map(undefined_value(), SKIP_WRITE_BARRIER); |
share->set_ast_node_count(0); |
share->set_counters(0); |