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

Public Member Functions

 DeoptConstantInstr (intptr_t object_table_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)
 
CatchEntryMove ToCatchEntryMove (DeoptContext *deopt_context, intptr_t dest_slot)
 
- Public Member Functions inherited from dart::DeoptInstr
 DeoptInstr ()
 
virtual ~DeoptInstr ()
 
virtual const char * ToCString () const
 
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 460 of file deopt_instructions.cc.

Constructor & Destructor Documentation

◆ DeoptConstantInstr()

dart::DeoptConstantInstr::DeoptConstantInstr ( intptr_t  object_table_index)
inlineexplicit

Definition at line 462 of file deopt_instructions.cc.

463 : object_table_index_(object_table_index) {
464 ASSERT(object_table_index >= 0);
465 }
#define ASSERT(E)

Member Function Documentation

◆ ArgumentsToCString()

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

Reimplemented from dart::DeoptInstr.

Definition at line 470 of file deopt_instructions.cc.

470 {
471 return Thread::Current()->zone()->PrintToString("%" Pd "",
472 object_table_index_);
473 }
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::DeoptConstantInstr::Execute ( DeoptContext deopt_context,
intptr_t *  dest_addr 
)
inlinevirtual

Implements dart::DeoptInstr.

Definition at line 475 of file deopt_instructions.cc.

475 {
476 const PassiveObject& obj = PassiveObject::Handle(
477 deopt_context->zone(), deopt_context->ObjectAt(object_table_index_));
478 *reinterpret_cast<ObjectPtr*>(dest_addr) = obj.ptr();
479 }
static PassiveObject & Handle()
Definition object.h:1077

◆ kind()

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

Implements dart::DeoptInstr.

Definition at line 468 of file deopt_instructions.cc.

468{ return kConstant; }

◆ source_index()

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

Implements dart::DeoptInstr.

Definition at line 467 of file deopt_instructions.cc.

467{ return object_table_index_; }

◆ ToCatchEntryMove()

CatchEntryMove dart::DeoptConstantInstr::ToCatchEntryMove ( DeoptContext deopt_context,
intptr_t  dest_slot 
)
inlinevirtual

Reimplemented from dart::DeoptInstr.

Definition at line 481 of file deopt_instructions.cc.

482 {
483 return CatchEntryMove::FromConstant(object_table_index_, dest_slot);
484 }
static CatchEntryMove FromConstant(intptr_t pool_id, intptr_t dest_slot)
Definition exceptions.h:184

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