v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::AllocationCounter Class Referencefinal

#include <allocation-observer.h>

Collaboration diagram for v8::internal::AllocationCounter:

Classes

struct  AllocationObserverCounter
 

Public Member Functions

 AllocationCounter ()=default
 
V8_EXPORT_PRIVATE void AddAllocationObserver (AllocationObserver *observer)
 
V8_EXPORT_PRIVATE void RemoveAllocationObserver (AllocationObserver *observer)
 
V8_EXPORT_PRIVATE void AdvanceAllocationObservers (size_t allocated)
 
V8_EXPORT_PRIVATE void InvokeAllocationObservers (Address soon_object, size_t object_size, size_t aligned_object_size)
 
bool IsStepInProgress () const
 
size_t NextBytes () const
 

Private Attributes

std::vector< AllocationObserverCounterobservers_
 
std::vector< AllocationObserverCounterpending_added_
 
std::unordered_set< AllocationObserver * > pending_removed_
 
size_t current_counter_ = 0
 
size_t next_counter_ = 0
 
bool step_in_progress_ = false
 

Detailed Description

Definition at line 54 of file allocation-observer.h.

Constructor & Destructor Documentation

◆ AllocationCounter()

v8::internal::AllocationCounter::AllocationCounter ( )
default

Member Function Documentation

◆ AddAllocationObserver()

void v8::internal::AllocationCounter::AddAllocationObserver ( AllocationObserver * observer)

Definition at line 15 of file allocation-observer.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AdvanceAllocationObservers()

void v8::internal::AllocationCounter::AdvanceAllocationObservers ( size_t allocated)

Definition at line 75 of file allocation-observer.cc.

Here is the caller graph for this function:

◆ InvokeAllocationObservers()

void v8::internal::AllocationCounter::InvokeAllocationObservers ( Address soon_object,
size_t object_size,
size_t aligned_object_size )

Definition at line 82 of file allocation-observer.cc.

Here is the caller graph for this function:

◆ IsStepInProgress()

bool v8::internal::AllocationCounter::IsStepInProgress ( ) const
inline

Definition at line 73 of file allocation-observer.h.

◆ NextBytes()

size_t v8::internal::AllocationCounter::NextBytes ( ) const
inline

Definition at line 75 of file allocation-observer.h.

Here is the caller graph for this function:

◆ RemoveAllocationObserver()

void v8::internal::AllocationCounter::RemoveAllocationObserver ( AllocationObserver * observer)

Definition at line 45 of file allocation-observer.cc.

Here is the caller graph for this function:

Member Data Documentation

◆ current_counter_

size_t v8::internal::AllocationCounter::current_counter_ = 0
private

Definition at line 104 of file allocation-observer.h.

◆ next_counter_

size_t v8::internal::AllocationCounter::next_counter_ = 0
private

Definition at line 105 of file allocation-observer.h.

◆ observers_

std::vector<AllocationObserverCounter> v8::internal::AllocationCounter::observers_
private

Definition at line 100 of file allocation-observer.h.

◆ pending_added_

std::vector<AllocationObserverCounter> v8::internal::AllocationCounter::pending_added_
private

Definition at line 101 of file allocation-observer.h.

◆ pending_removed_

std::unordered_set<AllocationObserver*> v8::internal::AllocationCounter::pending_removed_
private

Definition at line 102 of file allocation-observer.h.

◆ step_in_progress_

bool v8::internal::AllocationCounter::step_in_progress_ = false
private

Definition at line 106 of file allocation-observer.h.


The documentation for this class was generated from the following files: