Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::ForwardHeapPointersHandleVisitor Class Reference
Inheritance diagram for dart::ForwardHeapPointersHandleVisitor:
dart::HandleVisitor

Public Member Functions

 ForwardHeapPointersHandleVisitor (Thread *thread)
 
void VisitHandle (uword addr) override
 
- Public Member Functions inherited from dart::HandleVisitor
 HandleVisitor (Thread *thread)
 
virtual ~HandleVisitor ()
 
Threadthread () const
 
virtual void VisitHandle (uword addr)=0
 

Detailed Description

Definition at line 174 of file become.cc.

Constructor & Destructor Documentation

◆ ForwardHeapPointersHandleVisitor()

dart::ForwardHeapPointersHandleVisitor::ForwardHeapPointersHandleVisitor ( Thread thread)
inlineexplicit

Definition at line 176 of file become.cc.

HandleVisitor(Thread *thread)
Thread * thread() const

Member Function Documentation

◆ VisitHandle()

void dart::ForwardHeapPointersHandleVisitor::VisitHandle ( uword  addr)
inlineoverridevirtual

Implements dart::HandleVisitor.

Definition at line 179 of file become.cc.

179 {
180 FinalizablePersistentHandle* handle =
181 reinterpret_cast<FinalizablePersistentHandle*>(addr);
182 if (IsForwardingObject(handle->ptr())) {
183 *handle->ptr_addr() = GetForwardedObject(handle->ptr());
184 }
185 }
static ObjectPtr GetForwardedObject(ObjectPtr object)
Definition: become.cc:54
static bool IsForwardingObject(ObjectPtr object)
Definition: become.cc:50

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