CACAO
Public Member Functions | Private Attributes
cacao::jit::compiler2::SourceStateAwareInst Class Referenceabstract

Base type of instructions that can be mapped to a SourceStateInst. More...

Inheritance diagram for cacao::jit::compiler2::SourceStateAwareInst:
cacao::jit::compiler2::AssumptionInst cacao::jit::compiler2::CHECKNULLInst cacao::jit::compiler2::DeoptimizeInst cacao::jit::compiler2::DereferenceInst cacao::jit::compiler2::ALOADInst cacao::jit::compiler2::AREFInst cacao::jit::compiler2::ARRAYBOUNDSCHECKInst cacao::jit::compiler2::ARRAYLENGTHInst cacao::jit::compiler2::ASTOREInst cacao::jit::compiler2::GETFIELDInst cacao::jit::compiler2::INVOKEINTERFACEInst cacao::jit::compiler2::INVOKEVIRTUALInst cacao::jit::compiler2::PUTFIELDInst

Public Member Functions

 SourceStateAwareInst ()
 Construct a SourceStateAwareInst. More...
 
virtual Instructionto_Instruction ()=0
 Convert this SourceStateAwareInst to an Instruction. More...
 
SourceStateInstget_source_state () const
 Get the SourceStateInst that corresponds to this Instruction. More...
 
void set_source_state (SourceStateInst *source_state)
 Set the SourceStateInst that corresponds to this Instruction. More...
 
virtual bool needs_source_state ()
 
virtual ~SourceStateAwareInst ()
 

Private Attributes

SourceStateInstsource_state
 The SourceStateInst that corresponds to this Instruction. More...
 

Detailed Description

Base type of instructions that can be mapped to a SourceStateInst.

Definition at line 344 of file Instructions.hpp.

Constructor & Destructor Documentation

cacao::jit::compiler2::SourceStateAwareInst::SourceStateAwareInst ( )
inline

Construct a SourceStateAwareInst.

Definition at line 357 of file Instructions.hpp.

virtual cacao::jit::compiler2::SourceStateAwareInst::~SourceStateAwareInst ( )
inlinevirtual

Definition at line 391 of file Instructions.hpp.

Member Function Documentation

SourceStateInst* cacao::jit::compiler2::SourceStateAwareInst::get_source_state ( ) const
inline

Get the SourceStateInst that corresponds to this Instruction.

Returns
The source state if available, NULL otherwise.

Definition at line 371 of file Instructions.hpp.

virtual bool cacao::jit::compiler2::SourceStateAwareInst::needs_source_state ( )
inlinevirtual

Reimplemented in cacao::jit::compiler2::DereferenceInst.

Definition at line 389 of file Instructions.hpp.

void cacao::jit::compiler2::SourceStateAwareInst::set_source_state ( SourceStateInst source_state)
inline

Set the SourceStateInst that corresponds to this Instruction.

This will be done automatically by the SourceStateAttachmentPass.

Parameters
source_stateThe corresponding SourceStateInst.

Definition at line 380 of file Instructions.hpp.

virtual Instruction* cacao::jit::compiler2::SourceStateAwareInst::to_Instruction ( )
pure virtual

Field Documentation

SourceStateInst* cacao::jit::compiler2::SourceStateAwareInst::source_state
private

The SourceStateInst that corresponds to this Instruction.

Definition at line 350 of file Instructions.hpp.


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