Definition at line 528 of file object_graph_copy.cc.
◆ IdentityMap()
dart::IdentityMap::IdentityMap |
( |
Thread * |
thread | ) |
|
|
inlineexplicit |
Definition at line 530 of file object_graph_copy.cc.
530 : isolate_(thread->isolate()) {
533 }
void set_forward_table_old(WeakTable *table)
void set_forward_table_new(WeakTable *table)
◆ ~IdentityMap()
dart::IdentityMap::~IdentityMap |
( |
| ) |
|
|
inline |
◆ ForwardedObject()
template<typename
S , typename
T >
DART_FORCE_INLINE ObjectPtr dart::IdentityMap::ForwardedObject |
( |
const S & |
object, |
|
|
T |
from_to |
|
) |
| |
|
inline |
Definition at line 540 of file object_graph_copy.cc.
540 {
541 const intptr_t
id = GetObjectId(
Ptr(
object));
542 if (
id == 0)
return Marker();
543 return from_to.At(id + 1);
544 }
static ObjectPtr Ptr(ObjectPtr obj)
static DART_FORCE_INLINE ObjectPtr Marker()
◆ Insert()
template<typename
S , typename
T >
DART_FORCE_INLINE void dart::IdentityMap::Insert |
( |
const S & |
from, |
|
|
const S & |
to, |
|
|
T |
from_to, |
|
|
bool |
check_for_safepoint |
|
) |
| |
|
inline |
Definition at line 547 of file object_graph_copy.cc.
550 {
552 const auto id = from_to.Length();
553
554 SetObjectId(
Ptr(from),
id);
555 from_to.Add(from, to);
556 }
DART_FORCE_INLINE ObjectPtr ForwardedObject(const S &object, T from_to)
The documentation for this class was generated from the following file: