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

Public Member Functions

 CollectStoreBufferScavengeVisitor (ObjectSet *in_store_buffer, const char *msg)
 
void VisitPointers (ObjectPtr *from, ObjectPtr *to) override
 
- 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 883 of file scavenger.cc.

Constructor & Destructor Documentation

◆ CollectStoreBufferScavengeVisitor()

dart::CollectStoreBufferScavengeVisitor::CollectStoreBufferScavengeVisitor ( ObjectSet in_store_buffer,
const char *  msg 
)
inline

Definition at line 885 of file scavenger.cc.

887 in_store_buffer_(in_store_buffer),
888 msg_(msg) {}
static IsolateGroup * Current()
Definition: isolate.h:539
ObjectPointerVisitor(IsolateGroup *isolate_group)
Definition: visitor.cc:11

Member Function Documentation

◆ VisitPointers()

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

Implements dart::ObjectPointerVisitor.

Definition at line 890 of file scavenger.cc.

890 {
891 for (ObjectPtr* ptr = from; ptr <= to; ptr++) {
892 ObjectPtr obj = *ptr;
893 RELEASE_ASSERT_WITH_MSG(obj->untag()->IsRemembered(), msg_);
894 RELEASE_ASSERT_WITH_MSG(obj->IsOldObject(), msg_);
895
896 RELEASE_ASSERT_WITH_MSG(!obj->untag()->IsCardRemembered(), msg_);
897 if (obj.GetClassId() == kArrayCid) {
898 const uword length =
899 Smi::Value(static_cast<UntaggedArray*>(obj.untag())->length());
901 msg_);
902 }
903 in_store_buffer_->Add(obj);
904 }
905 }
#define RELEASE_ASSERT_WITH_MSG(cond, msg)
Definition: assert.h:332
static constexpr bool UseCardMarkingForAllocation(const intptr_t array_length)
Definition: object.h:10818
void Add(ObjectPtr raw_obj)
Definition: object_set.h:75
intptr_t Value() const
Definition: object.h:9990
size_t length
uintptr_t uword
Definition: globals.h:501

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