| Index: src/heap.cc
|
| diff --git a/src/heap.cc b/src/heap.cc
|
| index 4feb70eb412d8558fc15c8f88116fa3c8f984df6..f40e6327ae7820f2dfcd4659d09e4055223b2f16 100644
|
| --- a/src/heap.cc
|
| +++ b/src/heap.cc
|
| @@ -1157,7 +1157,6 @@ void Heap::Scavenge() {
|
| promotion_queue_.Destroy();
|
|
|
| LiveObjectList::UpdateReferencesForScavengeGC();
|
| - isolate()->runtime_profiler()->UpdateSamplesAfterScavenge();
|
| incremental_marking()->UpdateMarkingDequeAfterScavenge();
|
|
|
| ASSERT(new_space_front == new_space_.top());
|
| @@ -2747,6 +2746,7 @@ 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_call_counter(SharedFunctionInfo::kCallsUntilPrimitiveOptimization);
|
| share->set_deopt_counter(Smi::FromInt(FLAG_deopt_every_n_times));
|
|
|
| // Set integer fields (smi or int, depending on the architecture).
|
| @@ -3372,6 +3372,7 @@ void Heap::InitializeFunction(JSFunction* function,
|
| function->set_context(undefined_value());
|
| function->set_literals_or_bindings(empty_fixed_array());
|
| function->set_next_function_link(undefined_value());
|
| + function->set_profiler_ticks(0);
|
| }
|
|
|
|
|
|
|