Commit b1409cb8 authored by Michael Lippautz's avatar Michael Lippautz Committed by Commit Bot

[heap] Do not inline Heap::CreateObjectStats

Bug: 
Change-Id: I177baaea8031f61a7d57806a65c2286b1af1fb4b
Reviewed-on: https://chromium-review.googlesource.com/643926Reviewed-by: 's avatarMichael Starzinger <mstarzinger@chromium.org>
Commit-Queue: Michael Lippautz <mlippautz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#47731}
parent e79de747
......@@ -686,16 +686,6 @@ void Heap::SetSerializedGlobalProxySizes(FixedArray* sizes) {
set_serialized_global_proxy_sizes(sizes);
}
void Heap::CreateObjectStats() {
if (V8_LIKELY(FLAG_gc_stats == 0)) return;
if (!live_object_stats_) {
live_object_stats_ = new ObjectStats(this);
}
if (!dead_object_stats_) {
dead_object_stats_ = new ObjectStats(this);
}
}
AlwaysAllocateScope::AlwaysAllocateScope(Isolate* isolate)
: heap_(isolate->heap()) {
heap_->always_allocate_scope_count_.Increment(1);
......
......@@ -6884,5 +6884,15 @@ bool Heap::AllowedToBeMigrated(HeapObject* obj, AllocationSpace dst) {
UNREACHABLE();
}
void Heap::CreateObjectStats() {
if (V8_LIKELY(FLAG_gc_stats == 0)) return;
if (!live_object_stats_) {
live_object_stats_ = new ObjectStats(this);
}
if (!dead_object_stats_) {
dead_object_stats_ = new ObjectStats(this);
}
}
} // namespace internal
} // namespace v8
......@@ -936,7 +936,7 @@ class Heap {
bool CreateHeapObjects();
// Create ObjectStats if live_object_stats_ or dead_object_stats_ are nullptr.
V8_INLINE void CreateObjectStats();
void CreateObjectStats();
// Destroys all memory allocated by the heap.
void TearDown();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment