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

#include <wasm-linkage.h>

Collaboration diagram for v8::internal::wasm::LinkageAllocator:

Public Member Functions

template<size_t kNumGpRegs, size_t kNumFpRegs>
constexpr LinkageAllocator (const Register(&gp)[kNumGpRegs], const DoubleRegister(&fp)[kNumFpRegs])
 
constexpr LinkageAllocator (const Register *gp, int gpc, const DoubleRegister *fp, int fpc)
 
bool CanAllocateGP () const
 
bool CanAllocateFP (MachineRepresentation rep) const
 
int NextGpReg ()
 
int NextFpReg (MachineRepresentation rep)
 
int NextStackSlot (MachineRepresentation type)
 
void SetStackOffset (int offset)
 
int NumStackSlots () const
 
void EndSlotArea ()
 

Private Attributes

const int gp_count_
 
int gp_offset_ = 0
 
const Register *const gp_regs_
 
const int fp_count_
 
int fp_offset_ = 0
 
const DoubleRegister *const fp_regs_
 
AlignedSlotAllocator slot_allocator_
 

Detailed Description

Definition at line 148 of file wasm-linkage.h.

Constructor & Destructor Documentation

◆ LinkageAllocator() [1/2]

template<size_t kNumGpRegs, size_t kNumFpRegs>
v8::internal::wasm::LinkageAllocator::LinkageAllocator ( const Register(&) gp[kNumGpRegs],
const DoubleRegister(&) fp[kNumFpRegs] )
inlineconstexpr

Definition at line 151 of file wasm-linkage.h.

◆ LinkageAllocator() [2/2]

v8::internal::wasm::LinkageAllocator::LinkageAllocator ( const Register * gp,
int gpc,
const DoubleRegister * fp,
int fpc )
inlineconstexpr

Definition at line 155 of file wasm-linkage.h.

Member Function Documentation

◆ CanAllocateFP()

bool v8::internal::wasm::LinkageAllocator::CanAllocateFP ( MachineRepresentation rep) const
inline

Definition at line 160 of file wasm-linkage.h.

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

◆ CanAllocateGP()

bool v8::internal::wasm::LinkageAllocator::CanAllocateGP ( ) const
inline

Definition at line 159 of file wasm-linkage.h.

Here is the caller graph for this function:

◆ EndSlotArea()

void v8::internal::wasm::LinkageAllocator::EndSlotArea ( )
inline

Definition at line 243 of file wasm-linkage.h.

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

◆ NextFpReg()

int v8::internal::wasm::LinkageAllocator::NextFpReg ( MachineRepresentation rep)
inline

Definition at line 191 of file wasm-linkage.h.

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

◆ NextGpReg()

int v8::internal::wasm::LinkageAllocator::NextGpReg ( )
inline

Definition at line 186 of file wasm-linkage.h.

Here is the caller graph for this function:

◆ NextStackSlot()

int v8::internal::wasm::LinkageAllocator::NextStackSlot ( MachineRepresentation type)
inline

Definition at line 226 of file wasm-linkage.h.

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

◆ NumStackSlots()

int v8::internal::wasm::LinkageAllocator::NumStackSlots ( ) const
inline

Definition at line 241 of file wasm-linkage.h.

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

◆ SetStackOffset()

void v8::internal::wasm::LinkageAllocator::SetStackOffset ( int offset)
inline

Definition at line 235 of file wasm-linkage.h.

Here is the call graph for this function:

Member Data Documentation

◆ fp_count_

const int v8::internal::wasm::LinkageAllocator::fp_count_
private

Definition at line 250 of file wasm-linkage.h.

◆ fp_offset_

int v8::internal::wasm::LinkageAllocator::fp_offset_ = 0
private

Definition at line 256 of file wasm-linkage.h.

◆ fp_regs_

const DoubleRegister* const v8::internal::wasm::LinkageAllocator::fp_regs_
private

Definition at line 258 of file wasm-linkage.h.

◆ gp_count_

const int v8::internal::wasm::LinkageAllocator::gp_count_
private

Definition at line 246 of file wasm-linkage.h.

◆ gp_offset_

int v8::internal::wasm::LinkageAllocator::gp_offset_ = 0
private

Definition at line 247 of file wasm-linkage.h.

◆ gp_regs_

const Register* const v8::internal::wasm::LinkageAllocator::gp_regs_
private

Definition at line 248 of file wasm-linkage.h.

◆ slot_allocator_

AlignedSlotAllocator v8::internal::wasm::LinkageAllocator::slot_allocator_
private

Definition at line 260 of file wasm-linkage.h.


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