V8 Project
v8::internal::QwNeonRegister Struct Reference

#include <assembler-arm.h>

+ Collaboration diagram for v8::internal::QwNeonRegister:

Public Member Functions

bool is_valid () const
 
bool is (QwNeonRegister reg) const
 
int code () const
 
void split_code (int *vm, int *m) const
 

Static Public Member Functions

static QwNeonRegister from_code (int code)
 

Public Attributes

int code_
 

Static Public Attributes

static const int kMaxNumRegisters = 16
 

Detailed Description

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

Member Function Documentation

◆ code()

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

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

314  {
315  DCHECK(is_valid());
316  return code_;
317  }
#define DCHECK(condition)
Definition: logging.h:205

References code_, DCHECK, and is_valid().

Referenced by from_code().

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

◆ from_code()

static QwNeonRegister v8::internal::QwNeonRegister::from_code ( int  code)
inlinestatic

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

305  {
306  QwNeonRegister r = { code };
307  return r;
308  }

References code().

+ Here is the call graph for this function:

◆ is()

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

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

313 { return code_ == reg.code_; }

References code_.

◆ is_valid()

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

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

310  {
311  return (0 <= code_) && (code_ < kMaxNumRegisters);
312  }
static const int kMaxNumRegisters

References code_, and kMaxNumRegisters.

Referenced by code(), and split_code().

+ Here is the caller graph for this function:

◆ split_code()

void v8::internal::QwNeonRegister::split_code ( int vm,
int m 
) const
inline

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

318  {
319  DCHECK(is_valid());
320  int encoded_code = code_ << 1;
321  *m = (encoded_code & 0x10) >> 4;
322  *vm = encoded_code & 0x0F;
323  }

References code_, DCHECK, and is_valid().

+ Here is the call graph for this function:

Member Data Documentation

◆ code_

int v8::internal::QwNeonRegister::code_

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

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

◆ kMaxNumRegisters

const int v8::internal::QwNeonRegister::kMaxNumRegisters = 16
static

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

Referenced by is_valid().


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