V8 Project
v8::internal::X87Register Struct Reference

#include <assembler-x87.h>

+ Collaboration diagram for v8::internal::X87Register:

Public Member Functions

bool is_valid () const
 
int code () const
 
bool is (X87Register reg) const
 

Static Public Member Functions

static int NumAllocatableRegisters ()
 
static int NumAllocatableAliasedRegisters ()
 
static int ToAllocationIndex (X87Register reg)
 
static const char * AllocationIndexToString (int index)
 
static X87Register FromAllocationIndex (int index)
 

Public Attributes

int code_
 

Static Public Attributes

static const int kMaxNumAllocatableRegisters = 6
 
static const int kMaxNumRegisters = 8
 

Detailed Description

Definition at line 144 of file assembler-x87.h.

Member Function Documentation

◆ AllocationIndexToString()

static const char* v8::internal::X87Register::AllocationIndexToString ( int  index)
inlinestatic

Definition at line 162 of file assembler-x87.h.

162  {
163  DCHECK(index >= 0 && index < kMaxNumAllocatableRegisters);
164  const char* const names[] = {
165  "stX_0", "stX_1", "stX_2", "stX_3", "stX_4",
166  "stX_5", "stX_6", "stX_7"
167  };
168  return names[index];
169  }
#define DCHECK(condition)
Definition: logging.h:205
static const int kMaxNumAllocatableRegisters

References DCHECK, and kMaxNumAllocatableRegisters.

◆ code()

int v8::internal::X87Register::code ( ) const
inline

Definition at line 182 of file assembler-x87.h.

182  {
183  DCHECK(is_valid());
184  return code_;
185  }

References code_, DCHECK, and is_valid().

+ Here is the call graph for this function:

◆ FromAllocationIndex()

static X87Register v8::internal::X87Register::FromAllocationIndex ( int  index)
inlinestatic

Definition at line 171 of file assembler-x87.h.

171  {
172  DCHECK(index >= 0 && index < kMaxNumAllocatableRegisters);
173  X87Register result;
174  result.code_ = index;
175  return result;
176  }

References code_, DCHECK, and kMaxNumAllocatableRegisters.

◆ is()

bool v8::internal::X87Register::is ( X87Register  reg) const
inline

Definition at line 187 of file assembler-x87.h.

187  {
188  return code_ == reg.code_;
189  }

References code_.

◆ is_valid()

bool v8::internal::X87Register::is_valid ( ) const
inline

Definition at line 178 of file assembler-x87.h.

178  {
179  return 0 <= code_ && code_ < kMaxNumRegisters;
180  }
static const int kMaxNumRegisters

References code_, and kMaxNumRegisters.

Referenced by code().

+ Here is the caller graph for this function:

◆ NumAllocatableAliasedRegisters()

static int v8::internal::X87Register::NumAllocatableAliasedRegisters ( )
inlinestatic

Definition at line 153 of file assembler-x87.h.

153  {
154  return NumAllocatableRegisters();
155  }
static int NumAllocatableRegisters()

References NumAllocatableRegisters().

+ Here is the call graph for this function:

◆ NumAllocatableRegisters()

static int v8::internal::X87Register::NumAllocatableRegisters ( )
inlinestatic

Definition at line 147 of file assembler-x87.h.

147  {
149  }

References kMaxNumAllocatableRegisters.

Referenced by NumAllocatableAliasedRegisters().

+ Here is the caller graph for this function:

◆ ToAllocationIndex()

static int v8::internal::X87Register::ToAllocationIndex ( X87Register  reg)
inlinestatic

Definition at line 158 of file assembler-x87.h.

158  {
159  return reg.code_;
160  }

References code_.

Member Data Documentation

◆ code_

int v8::internal::X87Register::code_

Definition at line 191 of file assembler-x87.h.

Referenced by code(), FromAllocationIndex(), is(), is_valid(), and ToAllocationIndex().

◆ kMaxNumAllocatableRegisters

const int v8::internal::X87Register::kMaxNumAllocatableRegisters = 6
static

◆ kMaxNumRegisters

const int v8::internal::X87Register::kMaxNumRegisters = 8
static

Definition at line 146 of file assembler-x87.h.

Referenced by is_valid().


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