Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::VerifyAfterMarkingVisitor Class Reference
Inheritance diagram for dart::VerifyAfterMarkingVisitor:
dart::ObjectVisitor dart::ObjectPointerVisitor

Public Member Functions

 VerifyAfterMarkingVisitor ()
 
void VisitObject (ObjectPtr obj) override
 
void VisitPointers (ObjectPtr *from, ObjectPtr *to) override
 
bool failed () const
 
- Public Member Functions inherited from dart::ObjectVisitor
 ObjectVisitor ()
 
virtual ~ObjectVisitor ()
 
virtual void VisitObject (ObjectPtr obj)=0
 
- Public Member Functions inherited from dart::ObjectPointerVisitor
 ObjectPointerVisitor (IsolateGroup *isolate_group)
 
virtual ~ObjectPointerVisitor ()
 
IsolateGroupisolate_group () const
 
virtual void VisitTypedDataViewPointers (TypedDataViewPtr view, CompressedObjectPtr *first, CompressedObjectPtr *last)
 
virtual void VisitPointers (ObjectPtr *first, ObjectPtr *last)=0
 
void VisitCompressedPointers (uword heap_base, CompressedObjectPtr *first, CompressedObjectPtr *last)
 
void VisitPointers (ObjectPtr *p, intptr_t len)
 
void VisitPointer (ObjectPtr *p)
 
const char * gc_root_type () const
 
void set_gc_root_type (const char *gc_root_type)
 
void clear_gc_root_type ()
 
virtual bool visit_weak_persistent_handles () const
 
virtual bool trace_values_through_fields () const
 
const ClassTableclass_table () const
 
virtual bool CanVisitSuspendStatePointers (SuspendStatePtr suspend_state)
 

Detailed Description

Definition at line 1243 of file marker.cc.

Constructor & Destructor Documentation

◆ VerifyAfterMarkingVisitor()

dart::VerifyAfterMarkingVisitor::VerifyAfterMarkingVisitor ( )
inline

Definition at line 1246 of file marker.cc.

static IsolateGroup * Current()
Definition: isolate.h:539
ObjectPointerVisitor(IsolateGroup *isolate_group)
Definition: visitor.cc:11

Member Function Documentation

◆ failed()

bool dart::VerifyAfterMarkingVisitor::failed ( ) const
inline

Definition at line 1284 of file marker.cc.

1284{ return failed_; }

◆ VisitObject()

void dart::VerifyAfterMarkingVisitor::VisitObject ( ObjectPtr  obj)
inlineoverridevirtual

Implements dart::ObjectVisitor.

Definition at line 1249 of file marker.cc.

1249 {
1250 if (obj->untag()->IsMarked()) {
1251 current_ = obj;
1252 obj->untag()->VisitPointers(this);
1253 }
1254 }
UntaggedObject * untag() const
intptr_t VisitPointers(ObjectPointerVisitor *visitor)
Definition: raw_object.h:447

◆ VisitPointers()

void dart::VerifyAfterMarkingVisitor::VisitPointers ( ObjectPtr from,
ObjectPtr to 
)
inlineoverridevirtual

Implements dart::ObjectPointerVisitor.

Definition at line 1256 of file marker.cc.

1256 {
1257 for (ObjectPtr* ptr = from; ptr <= to; ptr++) {
1258 ObjectPtr obj = *ptr;
1259 if (obj->IsHeapObject() && !obj->untag()->IsMarked()) {
1260 OS::PrintErr("object=0x%" Px ", slot=0x%" Px ", value=0x%" Px "\n",
1261 static_cast<uword>(current_), reinterpret_cast<uword>(ptr),
1262 static_cast<uword>(obj));
1263 failed_ = true;
1264 }
1265 }
1266 }
static void static void PrintErr(const char *format,...) PRINTF_ATTRIBUTE(1
uintptr_t uword
Definition: globals.h:501
#define Px
Definition: globals.h:410

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