#include <object_set.h>
Definition at line 47 of file object_set.h.
◆ ObjectSet()
dart::ObjectSet::ObjectSet |
( |
Zone * |
zone | ) |
|
|
inlineexplicit |
Definition at line 49 of file object_set.h.
49: zone_(zone), sorted_(true), regions_() {}
◆ Add()
void dart::ObjectSet::Add |
( |
ObjectPtr |
raw_obj | ) |
|
|
inline |
Definition at line 75 of file object_set.h.
75 {
78 if (FindRegion(raw_addr, &
region)) {
79 return region->AddObject(raw_addr);
80 }
81 FATAL(
"Address not in any heap region");
82 }
static uword ToAddr(const UntaggedObject *raw_obj)
ClipOpAndAA opAA SkRegion region
◆ AddRegion()
void dart::ObjectSet::AddRegion |
( |
uword |
start, |
|
|
uword |
end |
|
) |
| |
|
inline |
Definition at line 51 of file object_set.h.
51 {
52 if (start == end) {
53 return;
54 }
56 ObjectSetRegion*
region =
new (zone_) ObjectSetRegion(zone_, start, end);
58 sorted_ = false;
59 }
◆ Contains()
bool dart::ObjectSet::Contains |
( |
ObjectPtr |
raw_obj | ) |
const |
|
inline |
Definition at line 66 of file object_set.h.
66 {
69 if (FindRegion(raw_addr, &
region)) {
70 return region->ContainsObject(raw_addr);
71 }
72 return false;
73 }
◆ SortRegions()
void dart::ObjectSet::SortRegions |
( |
| ) |
|
|
inline |
Definition at line 61 of file object_set.h.
61 {
62 regions_.Sort(CompareRegions);
63 sorted_ = true;
64 }
The documentation for this class was generated from the following file: