Lines Matching refs:ref

45       // load to the ref field (ptr) load to avoid needing a load-load
51 MirrorType* ref = ref_addr->AsMirrorPtr();
52 MirrorType* old_ref = ref;
55 ref = reinterpret_cast<MirrorType*>(Mark(ref));
58 if (kAlwaysUpdateField && ref != old_ref) {
60 offset, old_ref, ref);
66 AssertToSpaceInvariant(obj, offset, ref);
67 return ref;
72 MirrorType* ref = ref_addr->AsMirrorPtr();
73 MirrorType* old_ref = ref;
77 ref = reinterpret_cast<MirrorType*>(Mark(old_ref));
79 if (ref != old_ref) {
81 offset, old_ref, ref);
84 AssertToSpaceInvariant(obj, offset, ref);
85 return ref;
99 MirrorType* ref = *root;
112 ref = reinterpret_cast<MirrorType*>(Mark(ref));
114 AssertToSpaceInvariant(gc_root_source, ref);
115 return ref;
118 return ref;
123 Runtime::Current()->GetHeap()->GetReadBarrierTable()->IsSet(ref)) {
124 MirrorType* old_ref = ref;
125 ref = reinterpret_cast<MirrorType*>(Mark(old_ref));
127 if (ref != old_ref) {
129 atomic_root->CompareExchangeStrongRelaxed(old_ref, ref);
132 AssertToSpaceInvariant(gc_root_source, ref);
133 return ref;
139 return ref;
147 MirrorType* ref = root->AsMirrorPtr();
153 ref = reinterpret_cast<MirrorType*>(Mark(ref));
155 AssertToSpaceInvariant(gc_root_source, ref);
156 return ref;
159 return ref;
164 Runtime::Current()->GetHeap()->GetReadBarrierTable()->IsSet(ref)) {
165 auto old_ref = mirror::CompressedReference<MirrorType>::FromMirrorPtr(ref);
166 ref = reinterpret_cast<MirrorType*>(Mark(ref));
167 auto new_ref = mirror::CompressedReference<MirrorType>::FromMirrorPtr(ref);
175 AssertToSpaceInvariant(gc_root_source, ref);
176 return ref;
178 return ref;
201 mirror::Object* ref) {
203 if (ref == nullptr || IsDuringStartup()) {
207 AssertToSpaceInvariant(obj, offset, ref);
212 mirror::Object* ref) {
214 if (ref == nullptr || IsDuringStartup()) {
218 AssertToSpaceInvariant(gc_root_source, ref);