Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::VerifyWeakPointersVisitor Class Reference

#include <verifier.h>

Inheritance diagram for dart::VerifyWeakPointersVisitor:
dart::HandleVisitor

Public Member Functions

 VerifyWeakPointersVisitor (VerifyPointersVisitor *visitor)
 
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 72 of file verifier.h.

Constructor & Destructor Documentation

◆ VerifyWeakPointersVisitor()

dart::VerifyWeakPointersVisitor::VerifyWeakPointersVisitor ( VerifyPointersVisitor visitor)
inlineexplicit

Definition at line 74 of file verifier.h.

75 : HandleVisitor(Thread::Current()), visitor_(visitor) {}
HandleVisitor(Thread *thread)
static Thread * Current()
Definition: thread.h:362

Member Function Documentation

◆ VisitHandle()

void dart::VerifyWeakPointersVisitor::VisitHandle ( uword  addr)
overridevirtual

Implements dart::HandleVisitor.

Definition at line 74 of file verifier.cc.

74 {
75 FinalizablePersistentHandle* handle =
76 reinterpret_cast<FinalizablePersistentHandle*>(addr);
77 ObjectPtr raw_obj = handle->ptr();
78 visitor_->VisitPointer(&raw_obj);
79}
void VisitPointer(ObjectPtr *p)
Definition: visitor.h:55

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