Index: src/heap.cc |
diff --git a/src/heap.cc b/src/heap.cc |
index ff978cf3b7f5f198165fcd01e5c82ca6b1ed3059..300ba0d0ef17de34dfcb8cf63f4ad7ed4b7a0d8f 100644 |
--- a/src/heap.cc |
+++ b/src/heap.cc |
@@ -2847,7 +2847,8 @@ MaybeObject* Heap::AllocateSharedFunctionInfo(Object* name) { |
share->set_inferred_name(empty_string(), SKIP_WRITE_BARRIER); |
share->set_initial_map(undefined_value(), SKIP_WRITE_BARRIER); |
share->set_this_property_assignments(undefined_value(), SKIP_WRITE_BARRIER); |
- share->set_deopt_counter(Smi::FromInt(FLAG_deopt_every_n_times)); |
+ share->set_deopt_counter(FLAG_deopt_every_n_times); |
+ share->set_ast_node_count(0); |
// Set integer fields (smi or int, depending on the architecture). |
share->set_length(0); |