diff options
Diffstat (limited to 'deps/v8/src/profiler/sampling-heap-profiler.cc')
-rw-r--r-- | deps/v8/src/profiler/sampling-heap-profiler.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/deps/v8/src/profiler/sampling-heap-profiler.cc b/deps/v8/src/profiler/sampling-heap-profiler.cc index 3e158544fd..659ed25c00 100644 --- a/deps/v8/src/profiler/sampling-heap-profiler.cc +++ b/deps/v8/src/profiler/sampling-heap-profiler.cc @@ -53,14 +53,14 @@ v8::AllocationProfile::Allocation SamplingHeapProfiler::ScaleSample( SamplingHeapProfiler::SamplingHeapProfiler( Heap* heap, StringsStorage* names, uint64_t rate, int stack_depth, v8::HeapProfiler::SamplingFlags flags) - : isolate_(heap->isolate()), + : isolate_(Isolate::FromHeap(heap)), heap_(heap), new_space_observer_(new SamplingAllocationObserver( heap_, static_cast<intptr_t>(rate), rate, this, - heap->isolate()->random_number_generator())), + isolate_->random_number_generator())), other_spaces_observer_(new SamplingAllocationObserver( heap_, static_cast<intptr_t>(rate), rate, this, - heap->isolate()->random_number_generator())), + isolate_->random_number_generator())), names_(names), profile_root_(nullptr, "(root)", v8::UnboundScript::kNoScriptId, 0, next_node_id()), |