Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::compiler::PatchCodeWithHandle Class Reference
Inheritance diagram for dart::compiler::PatchCodeWithHandle:
dart::compiler::AssemblerFixup dart::ZoneAllocated

Public Member Functions

 PatchCodeWithHandle (ZoneGrowableArray< intptr_t > *pointer_offsets, const Object &object)
 
void Process (const MemoryRegion &region, intptr_t position)
 
virtual bool IsPointerOffset () const
 
- Public Member Functions inherited from dart::compiler::AssemblerFixup
virtual void Process (const MemoryRegion &region, intptr_t position)=0
 
virtual bool IsPointerOffset () const =0
 
virtual ~AssemblerFixup ()
 
- 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)
 

Detailed Description

Definition at line 534 of file assembler_base.cc.

Constructor & Destructor Documentation

◆ PatchCodeWithHandle()

dart::compiler::PatchCodeWithHandle::PatchCodeWithHandle ( ZoneGrowableArray< intptr_t > *  pointer_offsets,
const Object object 
)
inline

Definition at line 536 of file assembler_base.cc.

538 : pointer_offsets_(pointer_offsets), object_(object) {}

Member Function Documentation

◆ IsPointerOffset()

virtual bool dart::compiler::PatchCodeWithHandle::IsPointerOffset ( ) const
inlinevirtual

Implements dart::compiler::AssemblerFixup.

Definition at line 548 of file assembler_base.cc.

548{ return true; }

◆ Process()

void dart::compiler::PatchCodeWithHandle::Process ( const MemoryRegion region,
intptr_t  position 
)
inlinevirtual

Implements dart::compiler::AssemblerFixup.

Definition at line 540 of file assembler_base.cc.

540 {
541 // Patch the handle into the code. Once the instructions are installed into
542 // a raw code object and the pointer offsets are setup, the handle is
543 // resolved.
544 region.StoreUnaligned<const Object*>(position, &object_);
545 pointer_offsets_->Add(position);
546 }
void Add(const T &value)
ClipOpAndAA opAA SkRegion region
Definition: SkRecords.h:238

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