V8 Project
v8::internal::BranchIfRoot Class Reference
+ Inheritance diagram for v8::internal::BranchIfRoot:
+ Collaboration diagram for v8::internal::BranchIfRoot:

Public Member Functions

 BranchIfRoot (LCodeGen *codegen, const Register &value, Heap::RootListIndex index)
 
virtual void Emit (Label *label) const
 
virtual void EmitInverted (Label *label) const
 

Private Attributes

const Registervalue_
 
const Heap::RootListIndex index_
 

Detailed Description

Definition at line 200 of file lithium-codegen-arm64.cc.

Constructor & Destructor Documentation

◆ BranchIfRoot()

v8::internal::BranchIfRoot::BranchIfRoot ( LCodeGen codegen,
const Register value,
Heap::RootListIndex  index 
)
inline

Definition at line 202 of file lithium-codegen-arm64.cc.

204  : BranchGenerator(codegen), value_(value), index_(index) { }
const Heap::RootListIndex index_

Member Function Documentation

◆ Emit()

virtual void v8::internal::BranchIfRoot::Emit ( Label *  label) const
inlinevirtual

Definition at line 206 of file lithium-codegen-arm64.cc.

206  {
207  __ JumpIfRoot(value_, index_, label);
208  }
#define __

References __, index_, and value_.

◆ EmitInverted()

virtual void v8::internal::BranchIfRoot::EmitInverted ( Label *  label) const
inlinevirtual

Definition at line 210 of file lithium-codegen-arm64.cc.

210  {
211  __ JumpIfNotRoot(value_, index_, label);
212  }

References __, index_, and value_.

Member Data Documentation

◆ index_

const Heap::RootListIndex v8::internal::BranchIfRoot::index_
private

Definition at line 216 of file lithium-codegen-arm64.cc.

Referenced by Emit(), and EmitInverted().

◆ value_

const Register& v8::internal::BranchIfRoot::value_
private

Definition at line 215 of file lithium-codegen-arm64.cc.

Referenced by Emit(), and EmitInverted().


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