21 container.
SetAt(0, before_obj);
25 become.
Add(before_obj, after_obj);
60 void* peer =
reinterpret_cast<void*
>(42);
61 void* no_peer =
reinterpret_cast<void*
>(0);
63 EXPECT_EQ(peer, heap->
GetPeer(before_obj.
ptr()));
64 EXPECT_EQ(no_peer, heap->
GetPeer(after_obj.
ptr()));
67 become.
Add(before_obj, after_obj);
71 EXPECT_EQ(peer, heap->
GetPeer(before_obj.
ptr()));
72 EXPECT_EQ(peer, heap->
GetPeer(after_obj.
ptr()));
89 become.
Add(before_obj, after_obj);
115 become.
Add(before_obj, after_obj);
133 before_obj.
SetAt(0, new_element);
134 after_obj.
SetAt(0, old_element);
141 become.
Add(before_obj, after_obj);
161 card_remembered_array.
SetAt(0, old_element);
170 become.
Add(old_element, new_element);
174 EXPECT(old_element.
ptr()->IsNewObject());
static ArrayPtr New(intptr_t len, Heap::Space space=Heap::kNew)
static constexpr intptr_t kBytesPerElement
static constexpr bool UseCardMarkingForAllocation(const intptr_t array_length)
ObjectPtr At(intptr_t index) const
void SetAt(intptr_t index, const Object &value) const
void Add(const Object &before, const Object &after)
void * GetPeer(ObjectPtr raw_obj) const
void SetPeer(ObjectPtr raw_obj, void *peer)
intptr_t GetObjectId(ObjectPtr raw_obj) const
void SetObjectId(ObjectPtr raw_obj, intptr_t object_id)
static IsolateGroup * Current()
void set_forward_table_old(WeakTable *table)
static Isolate * Current()
void set_forward_table_new(WeakTable *table)
WeakTable * forward_table_old()
UntaggedObject * untag() const
virtual const char * ToCString() const
static StringPtr New(const char *cstr, Heap::Space space=Heap::kNew)
bool IsCardRemembered() const
bool IsRemembered() const
void SetValueExclusive(ObjectPtr key, intptr_t val)
intptr_t GetValueExclusive(ObjectPtr key) const
#define HANDLESCOPE(thread)
ISOLATE_UNIT_TEST_CASE(StackAllocatedDestruction)
static void CollectAllGarbage(Thread *thread, JSONStream *js)
void TestBecomeForward(Heap::Space before_space, Heap::Space after_space)
static constexpr intptr_t kNewAllocatableSize