Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
dart::DeoptMaterializedObjectRefInstr Class Reference
Inheritance diagram for dart::DeoptMaterializedObjectRefInstr:
dart::DeoptInstr dart::ZoneAllocated

Public Member Functions

 DeoptMaterializedObjectRefInstr (intptr_t index)
 
virtual intptr_t source_index () const
 
virtual DeoptInstr::Kind kind () const
 
virtual const char * ArgumentsToCString () const
 
void Execute (DeoptContext *deopt_context, intptr_t *dest_addr)
 
- Public Member Functions inherited from dart::DeoptInstr
 DeoptInstr ()
 
virtual ~DeoptInstr ()
 
virtual const char * ToCString () const
 
virtual CatchEntryMove ToCatchEntryMove (DeoptContext *deopt_context, intptr_t dest_slot)
 
bool Equals (const DeoptInstr &other) const
 
- Public Member Functions inherited from dart::ZoneAllocated
 ZoneAllocated ()
 
void * operator new (size_t size)
 
void * operator new (size_t size, Zone *zone)
 
void operator delete (void *pointer)
 

Additional Inherited Members

- Public Types inherited from dart::DeoptInstr
enum  Kind {
  kRetAddress , kConstant , kWord , kFloat ,
  kDouble , kFloat32x4 , kFloat64x2 , kInt32x4 ,
  kMintPair , kMint , kInt32 , kUint32 ,
  kPcMarker , kPp , kCallerFp , kCallerPp ,
  kCallerPc , kMaterializedObjectRef , kMaterializeObject
}
 
- Static Public Member Functions inherited from dart::DeoptInstr
static DeoptInstrCreate (intptr_t kind_as_int, intptr_t source_index)
 
static uword GetRetAddress (DeoptInstr *instr, const ObjectPool &object_pool, Code *code)
 
static intptr_t GetFieldCount (DeoptInstr *instr)
 

Detailed Description

Definition at line 825 of file deopt_instructions.cc.

Constructor & Destructor Documentation

◆ DeoptMaterializedObjectRefInstr()

dart::DeoptMaterializedObjectRefInstr::DeoptMaterializedObjectRefInstr ( intptr_t  index)
inlineexplicit

Definition at line 827 of file deopt_instructions.cc.

827 : index_(index) {
828 ASSERT(index >= 0);
829 }
#define ASSERT(E)

Member Function Documentation

◆ ArgumentsToCString()

virtual const char * dart::DeoptMaterializedObjectRefInstr::ArgumentsToCString ( ) const
inlinevirtual

Reimplemented from dart::DeoptInstr.

Definition at line 834 of file deopt_instructions.cc.

834 {
835 return Thread::Current()->zone()->PrintToString("#%" Pd "", index_);
836 }
Zone * zone() const
static Thread * Current()
Definition thread.h:361
char * PrintToString(const char *format,...) PRINTF_ATTRIBUTE(2
Definition zone.cc:313
#define Pd
Definition globals.h:408

◆ Execute()

void dart::DeoptMaterializedObjectRefInstr::Execute ( DeoptContext deopt_context,
intptr_t *  dest_addr 
)
inlinevirtual

Implements dart::DeoptInstr.

Definition at line 838 of file deopt_instructions.cc.

838 {
839 *reinterpret_cast<SmiPtr*>(dest_addr) = Smi::New(0);
840 deopt_context->DeferMaterializedObjectRef(index_, dest_addr);
841 }
static SmiPtr New(intptr_t value)
Definition object.h:9985

◆ kind()

virtual DeoptInstr::Kind dart::DeoptMaterializedObjectRefInstr::kind ( ) const
inlinevirtual

Implements dart::DeoptInstr.

Definition at line 832 of file deopt_instructions.cc.

◆ source_index()

virtual intptr_t dart::DeoptMaterializedObjectRefInstr::source_index ( ) const
inlinevirtual

Implements dart::DeoptInstr.

Definition at line 831 of file deopt_instructions.cc.

831{ return index_; }

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