V8 Project
v8::internal::CRegister Struct Reference

#include <assembler-arm.h>

+ Collaboration diagram for v8::internal::CRegister:

Public Member Functions

bool is_valid () const
 
bool is (CRegister creg) const
 
int code () const
 
int bit () const
 

Public Attributes

int code_
 

Detailed Description

Definition at line 429 of file assembler-arm.h.

Member Function Documentation

◆ bit()

int v8::internal::CRegister::bit ( ) const
inline

Definition at line 436 of file assembler-arm.h.

436  {
437  DCHECK(is_valid());
438  return 1 << code_;
439  }
#define DCHECK(condition)
Definition: logging.h:205

References code_, DCHECK, and is_valid().

+ Here is the call graph for this function:

◆ code()

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

Definition at line 432 of file assembler-arm.h.

432  {
433  DCHECK(is_valid());
434  return code_;
435  }

References code_, DCHECK, and is_valid().

+ Here is the call graph for this function:

◆ is()

bool v8::internal::CRegister::is ( CRegister  creg) const
inline

Definition at line 431 of file assembler-arm.h.

431 { return code_ == creg.code_; }

References code_.

◆ is_valid()

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

Definition at line 430 of file assembler-arm.h.

430 { return 0 <= code_ && code_ < 16; }

References code_.

Referenced by bit(), and code().

+ Here is the caller graph for this function:

Member Data Documentation

◆ code_

int v8::internal::CRegister::code_

Definition at line 442 of file assembler-arm.h.

Referenced by bit(), code(), is(), and is_valid().


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