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

#include <gc-tracer.h>

Collaboration diagram for v8::internal::GCTracer::Scope:

Public Types

enum  ScopeId {
  TRACER_SCOPES , FIRST_INCREMENTAL_SCOPE = MC_INCREMENTAL , LAST_INCREMENTAL_SCOPE = MC_INCREMENTAL_SWEEPING , FIRST_SCOPE = MC_INCREMENTAL ,
  NUMBER_OF_INCREMENTAL_SCOPES , FIRST_TOP_MC_SCOPE = MC_CLEAR , LAST_TOP_MC_SCOPE = MC_SWEEP , FIRST_BACKGROUND_SCOPE = BACKGROUND_YOUNG_ARRAY_BUFFER_SWEEP ,
  LAST_BACKGROUND_SCOPE
}
 

Public Member Functions

V8_INLINE Scope (GCTracer *tracer, ScopeId scope, ThreadKind thread_kind)
 
V8_INLINE ~Scope ()
 
 Scope (const Scope &)=delete
 
Scopeoperator= (const Scope &)=delete
 

Static Public Member Functions

static constexpr const char * Name (ScopeId id)
 
static constexpr bool NeedsYoungEpoch (ScopeId id)
 
static constexpr int IncrementalOffset (ScopeId id)
 

Private Attributes

GCTracer *const tracer_
 
const ScopeId scope_
 
const ThreadKind thread_kind_
 
const base::TimeTicks start_time_
 

Detailed Description

Definition at line 119 of file gc-tracer.h.

Member Enumeration Documentation

◆ ScopeId

Enumerator
TRACER_SCOPES 
FIRST_INCREMENTAL_SCOPE 
LAST_INCREMENTAL_SCOPE 
FIRST_SCOPE 
NUMBER_OF_INCREMENTAL_SCOPES 
FIRST_TOP_MC_SCOPE 
LAST_TOP_MC_SCOPE 
FIRST_BACKGROUND_SCOPE 
LAST_BACKGROUND_SCOPE 

Definition at line 121 of file gc-tracer.h.

Constructor & Destructor Documentation

◆ Scope() [1/2]

v8::internal::GCTracer::Scope::Scope ( GCTracer * tracer,
ScopeId scope,
ThreadKind thread_kind )

Definition at line 29 of file gc-tracer-inl.h.

Here is the call graph for this function:

◆ ~Scope()

v8::internal::GCTracer::Scope::~Scope ( )

Definition at line 51 of file gc-tracer-inl.h.

Here is the call graph for this function:

◆ Scope() [2/2]

v8::internal::GCTracer::Scope::Scope ( const Scope & )
delete

Member Function Documentation

◆ IncrementalOffset()

int v8::internal::GCTracer::Scope::IncrementalOffset ( ScopeId id)
staticconstexpr

Definition at line 96 of file gc-tracer-inl.h.

Here is the caller graph for this function:

◆ Name()

const char * v8::internal::GCTracer::Scope::Name ( ScopeId id)
staticconstexpr

Definition at line 71 of file gc-tracer-inl.h.

◆ NeedsYoungEpoch()

bool v8::internal::GCTracer::Scope::NeedsYoungEpoch ( ScopeId id)
staticconstexpr

Definition at line 84 of file gc-tracer-inl.h.

Here is the caller graph for this function:

◆ operator=()

Scope & v8::internal::GCTracer::Scope::operator= ( const Scope & )
delete

Member Data Documentation

◆ scope_

const ScopeId v8::internal::GCTracer::Scope::scope_
private

Definition at line 149 of file gc-tracer.h.

◆ start_time_

const base::TimeTicks v8::internal::GCTracer::Scope::start_time_
private

Definition at line 151 of file gc-tracer.h.

◆ thread_kind_

const ThreadKind v8::internal::GCTracer::Scope::thread_kind_
private

Definition at line 150 of file gc-tracer.h.

◆ tracer_

GCTracer* const v8::internal::GCTracer::Scope::tracer_
private

Definition at line 148 of file gc-tracer.h.


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