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

#include <bytecode-register-allocator.h>

Collaboration diagram for v8::internal::interpreter::BytecodeRegisterAllocator:

Classes

class  Observer
 

Public Member Functions

 BytecodeRegisterAllocator (int start_index)
 
 ~BytecodeRegisterAllocator ()=default
 
 BytecodeRegisterAllocator (const BytecodeRegisterAllocator &)=delete
 
BytecodeRegisterAllocatoroperator= (const BytecodeRegisterAllocator &)=delete
 
Register NewRegister ()
 
RegisterList NewRegisterList (int count)
 
RegisterList NewGrowableRegisterList ()
 
Register GrowRegisterList (RegisterList *reg_list)
 
void ReleaseRegisters (int register_index)
 
void ReleaseRegister (Register reg)
 
bool RegisterIsLive (Register reg) const
 
RegisterList AllLiveRegisters () const
 
void set_observer (Observer *observer)
 
int next_register_index () const
 
int maximum_register_count () const
 

Private Attributes

int next_register_index_
 
int max_register_count_
 
Observerobserver_
 

Detailed Description

Definition at line 15 of file bytecode-register-allocator.h.

Constructor & Destructor Documentation

◆ BytecodeRegisterAllocator() [1/2]

v8::internal::interpreter::BytecodeRegisterAllocator::BytecodeRegisterAllocator ( int start_index)
inlineexplicit

Definition at line 27 of file bytecode-register-allocator.h.

◆ ~BytecodeRegisterAllocator()

v8::internal::interpreter::BytecodeRegisterAllocator::~BytecodeRegisterAllocator ( )
default

◆ BytecodeRegisterAllocator() [2/2]

v8::internal::interpreter::BytecodeRegisterAllocator::BytecodeRegisterAllocator ( const BytecodeRegisterAllocator & )
delete

Member Function Documentation

◆ AllLiveRegisters()

RegisterList v8::internal::interpreter::BytecodeRegisterAllocator::AllLiveRegisters ( ) const
inline

Definition at line 102 of file bytecode-register-allocator.h.

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

◆ GrowRegisterList()

Register v8::internal::interpreter::BytecodeRegisterAllocator::GrowRegisterList ( RegisterList * reg_list)
inline

Definition at line 68 of file bytecode-register-allocator.h.

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

◆ maximum_register_count()

int v8::internal::interpreter::BytecodeRegisterAllocator::maximum_register_count ( ) const
inline

Definition at line 109 of file bytecode-register-allocator.h.

◆ NewGrowableRegisterList()

RegisterList v8::internal::interpreter::BytecodeRegisterAllocator::NewGrowableRegisterList ( )
inline

Definition at line 58 of file bytecode-register-allocator.h.

Here is the caller graph for this function:

◆ NewRegister()

Register v8::internal::interpreter::BytecodeRegisterAllocator::NewRegister ( )
inline

Definition at line 37 of file bytecode-register-allocator.h.

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

◆ NewRegisterList()

RegisterList v8::internal::interpreter::BytecodeRegisterAllocator::NewRegisterList ( int count)
inline

Definition at line 47 of file bytecode-register-allocator.h.

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

◆ next_register_index()

int v8::internal::interpreter::BytecodeRegisterAllocator::next_register_index ( ) const
inline

Definition at line 108 of file bytecode-register-allocator.h.

Here is the caller graph for this function:

◆ operator=()

BytecodeRegisterAllocator & v8::internal::interpreter::BytecodeRegisterAllocator::operator= ( const BytecodeRegisterAllocator & )
delete

◆ RegisterIsLive()

bool v8::internal::interpreter::BytecodeRegisterAllocator::RegisterIsLive ( Register reg) const
inline

Definition at line 97 of file bytecode-register-allocator.h.

Here is the caller graph for this function:

◆ ReleaseRegister()

void v8::internal::interpreter::BytecodeRegisterAllocator::ReleaseRegister ( Register reg)
inline

Definition at line 88 of file bytecode-register-allocator.h.

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

◆ ReleaseRegisters()

void v8::internal::interpreter::BytecodeRegisterAllocator::ReleaseRegisters ( int register_index)
inline

Definition at line 79 of file bytecode-register-allocator.h.

Here is the call graph for this function:

◆ set_observer()

void v8::internal::interpreter::BytecodeRegisterAllocator::set_observer ( Observer * observer)
inline

Definition at line 106 of file bytecode-register-allocator.h.

Here is the caller graph for this function:

Member Data Documentation

◆ max_register_count_

int v8::internal::interpreter::BytecodeRegisterAllocator::max_register_count_
private

Definition at line 113 of file bytecode-register-allocator.h.

◆ next_register_index_

int v8::internal::interpreter::BytecodeRegisterAllocator::next_register_index_
private

Definition at line 112 of file bytecode-register-allocator.h.

◆ observer_

Observer* v8::internal::interpreter::BytecodeRegisterAllocator::observer_
private

Definition at line 114 of file bytecode-register-allocator.h.


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