Home
last modified time | relevance | path

Searched refs:old_value (Results 1 – 25 of 27) sorted by relevance

12

/art/runtime/
Dsubtype_check.h475 SubtypeCheckBitsAndStatus old_value = ReadField(klass); in WriteSubtypeCheckBits() local
478 SubtypeCheckBits old_bits = old_value.subtype_check_info_; in WriteSubtypeCheckBits()
485 full_old = old_value; in WriteSubtypeCheckBits()
486 old_status = old_value.status_; in WriteSubtypeCheckBits()
488 new_value = old_value; in WriteSubtypeCheckBits()
503 old_value.int32_alias_, in WriteSubtypeCheckBits()
519 SubtypeCheckBitsAndStatus old_value = ReadField(klass); in WriteStatusImpl() local
520 old_status = old_value.status_; in WriteStatusImpl()
527 new_value = old_value; in WriteStatusImpl()
532 old_value.int32_alias_, in WriteStatusImpl()
[all …]
Dsubtype_check_test.cc90 int32_t old_value, in CasField32()
96 if (old_value == GetField32Volatile(offset)) { in CasField32()
Druntime.cc626 auto old_value = gAborting.fetch_add(1); // set before taking any locks in Abort() local
629 if (old_value == 0) { in Abort()
/art/runtime/base/
Dquasi_atomic.h142 static bool Cas64(int64_t old_value, int64_t new_value, volatile int64_t* addr) { in Cas64() argument
144 return __sync_bool_compare_and_swap(addr, old_value, new_value); in Cas64()
146 return SwapMutexCas64(old_value, new_value, addr); in Cas64()
167 static bool SwapMutexCas64(int64_t old_value, int64_t new_value, volatile int64_t* addr);
Dquasi_atomic.cc58 bool QuasiAtomic::SwapMutexCas64(int64_t old_value, int64_t new_value, volatile int64_t* addr) { in SwapMutexCas64() argument
60 if (*addr == old_value) { in SwapMutexCas64()
/art/runtime/mirror/
Dobject-inl.h570 int64_t old_value, in CasFieldWeakSequentiallyConsistent64() argument
574 Runtime::Current()->RecordWriteField64(this, field_offset, old_value, true); in CasFieldWeakSequentiallyConsistent64()
579 return atomic_addr->CompareAndSetWeakSequentiallyConsistent(old_value, new_value); in CasFieldWeakSequentiallyConsistent64()
584 int64_t old_value, in CasFieldStrongSequentiallyConsistent64() argument
588 Runtime::Current()->RecordWriteField64(this, field_offset, old_value, true); in CasFieldStrongSequentiallyConsistent64()
593 return atomic_addr->CompareAndSetStrongSequentiallyConsistent(old_value, new_value); in CasFieldStrongSequentiallyConsistent64()
682 ObjPtr<Object> old_value, in CasFieldObjectWithoutWriteBarrier() argument
687 VerifyCAS<kVerifyFlags>(new_value, old_value); in CasFieldObjectWithoutWriteBarrier()
689 Runtime::Current()->RecordWriteFieldReference(this, field_offset, old_value, true); in CasFieldObjectWithoutWriteBarrier()
691 uint32_t old_ref(PtrCompression<kPoisonHeapReferences, Object>::Compress(old_value)); in CasFieldObjectWithoutWriteBarrier()
[all …]
Dobject-readbarrier-inl.h42 int32_t old_value, in CasField32() argument
50 Runtime::Current()->RecordWriteField32(this, field_offset, old_value, true); in CasField32()
58 return atomic_addr->CompareAndSet(old_value, new_value, mode, memory_order); in CasField32()
Dvar_handle.cc410 T old_value = atom->exchange(new_value_, MO); in Access() local
411 StoreResult(old_value, result_); in Access()
438 T old_value = atom->load(std::memory_order_relaxed); in Apply() local
441 new_value = old_value + addend; in Apply()
442 } while (!atom->compare_exchange_weak(old_value, new_value, MO, std::memory_order_relaxed)); in Apply()
443 return old_value; in Apply()
454 T old_value = AtomicGetAndAddOperator<T, kIsFloatingPoint, MO>::Apply(addr, addend_); in Access() local
455 StoreResult(old_value, result_); in Access()
505 T old_value = atom->fetch_or(value_, MO); in Access() local
506 StoreResult(old_value, result_); in Access()
[all …]
Dobject.h320 ObjPtr<Object> old_value,
329 ObjPtr<Object> old_value,
339 ObjPtr<Object> old_value,
500 int32_t old_value,
542 int64_t old_value,
550 int64_t old_value,
750 ALWAYS_INLINE void VerifyCAS(ObjPtr<mirror::Object> new_value, ObjPtr<mirror::Object> old_value) { in VerifyCAS() argument
752 VerifyRead<kVerifyFlags>(old_value); in VerifyCAS()
Dclass-inl.h1132 T old_value = GetFieldPtrWithSize<T, kVerifyFlags>(member_offset, pointer_size); in FixupNativePointer() local
1133 T new_value = visitor(old_value, address); in FixupNativePointer()
1134 if (old_value != new_value) { in FixupNativePointer()
/art/compiler/optimizing/
Dgraph_checker.h109 bool old_value = check_reference_type_info_; variable
111 return old_value;
Dintrinsics_arm64.cc968 Register old_value, in EmitLoadExclusive() argument
977 __ Ldaxrb(old_value, MemOperand(ptr)); in EmitLoadExclusive()
979 __ Ldxrb(old_value, MemOperand(ptr)); in EmitLoadExclusive()
985 __ Ldaxrh(old_value, MemOperand(ptr)); in EmitLoadExclusive()
987 __ Ldxrh(old_value, MemOperand(ptr)); in EmitLoadExclusive()
994 __ Ldaxr(old_value, MemOperand(ptr)); in EmitLoadExclusive()
996 __ Ldxr(old_value, MemOperand(ptr)); in EmitLoadExclusive()
1005 __ Sxtb(old_value, old_value); in EmitLoadExclusive()
1008 __ Sxth(old_value, old_value); in EmitLoadExclusive()
1011 assembler->MaybeUnpoisonHeapReference(old_value); in EmitLoadExclusive()
[all …]
Dintrinsics_arm_vixl.cc3158 Location old_value) { in EmitLoadExclusive() argument
3163 __ Ldrexb(RegisterFrom(old_value), MemOperand(ptr)); in EmitLoadExclusive()
3167 __ Ldrexh(RegisterFrom(old_value), MemOperand(ptr)); in EmitLoadExclusive()
3171 __ Ldrex(RegisterFrom(old_value), MemOperand(ptr)); in EmitLoadExclusive()
3174 __ Ldrexd(LowRegisterFrom(old_value), HighRegisterFrom(old_value), MemOperand(ptr)); in EmitLoadExclusive()
3182 __ Sxtb(RegisterFrom(old_value), RegisterFrom(old_value)); in EmitLoadExclusive()
3185 __ Sxth(RegisterFrom(old_value), RegisterFrom(old_value)); in EmitLoadExclusive()
3188 assembler->MaybeUnpoisonHeapReference(RegisterFrom(old_value)); in EmitLoadExclusive()
3238 Location old_value, in GenerateCompareAndSet() argument
3248 DCHECK(old_value.IsRegisterPair()); in GenerateCompareAndSet()
[all …]
Dload_store_elimination.cc444 static constexpr Value PartialUnknown(Value old_value) { in PartialUnknown() argument
445 if (old_value.IsInvalid() || old_value.IsPureUnknown()) { in PartialUnknown()
448 return Value(PriorValueHolder(old_value)); in PartialUnknown()
1773 Value old_value = record.value; in VisitGetLocation() local
1776 KeepStores(old_value); in VisitGetLocation()
Dcode_generator_arm_vixl.h666 vixl::aarch32::Register old_value);
Dcode_generator_arm64.h841 vixl::aarch64::Register old_value);
/art/openjdkjvmti/
Dti_search.cc149 ScopedLocalRef<jobject> old_value(self->GetJniEnv(), in Update() local
154 DCHECK(old_value.get() != nullptr); in Update()
156 str_value = self->DecodeJObject(old_value.get())->AsString()->ToModifiedUtf8(); in Update()
157 self->GetJniEnv()->DeleteLocalRef(old_value.release()); in Update()
/art/runtime/gc/accounting/
Dcard_table-inl.h33 static inline bool byte_cas(uint8_t old_value, uint8_t new_value, uint8_t* address) { in byte_cas() argument
36 return byte_atomic->CompareAndSetWeakRelaxed(old_value, new_value); in byte_cas()
48 const uintptr_t old_word = cur_word | (static_cast<uintptr_t>(old_value) << shift_in_bits); in byte_cas()
/art/libartbase/base/
Dleb128_test.cc259 uint32_t old_value = uleb128_tests[i].decoded; in TEST() local
262 if (new_value <= old_value) { in TEST()
264 uint8_t* old_end = EncodeUnsignedLeb128(encoded_data, old_value); in TEST()
Dleb128.h275 uint32_t old_value = DecodeUnsignedLeb128(&old_end); in UpdateUnsignedLeb128() local
276 DCHECK_LE(UnsignedLeb128Size(value), UnsignedLeb128Size(old_value)); in UpdateUnsignedLeb128()
Dstl_util.h112 void ReplaceElement(Container& container, const T& old_value, const T& new_value) { in ReplaceElement() argument
113 auto it = std::find(container.begin(), container.end(), old_value); in ReplaceElement()
/art/runtime/gc/space/
Dimage_space.cc376 T* old_value = root->template Read<kWithoutReadBarrier>(); in PatchGcRoot() local
377 DCHECK(kMayBeNull || old_value != nullptr); in PatchGcRoot()
378 if (!kMayBeNull || old_value != nullptr) { in PatchGcRoot()
379 *root = GcRoot<T>(heap_visitor_(old_value)); in PatchGcRoot()
387 T* old_value = reinterpret_cast64<T*>(*raw_entry); in PatchNativePointer() local
388 DCHECK(kMayBeNull || old_value != nullptr); in PatchNativePointer()
389 if (!kMayBeNull || old_value != nullptr) { in PatchNativePointer()
390 T* new_value = native_visitor_(old_value); in PatchNativePointer()
395 T* old_value = reinterpret_cast32<T*>(*raw_entry); in PatchNativePointer() local
396 DCHECK(kMayBeNull || old_value != nullptr); in PatchNativePointer()
[all …]
/art/runtime/interpreter/mterp/armng/
Dmain.S725 .macro UPDATE_REGISTERS_FOR_STRING_INIT old_value, new_value
729 cmp lr, \old_value
/art/runtime/interpreter/mterp/arm64ng/
Dmain.S713 .macro UPDATE_REGISTERS_FOR_STRING_INIT old_value, new_value
717 cmp wip2, \old_value
/art/runtime/interpreter/mterp/x86_64ng/
Dmain.S1081 .macro UPDATE_REGISTERS_FOR_STRING_INIT old_value, new_value
1085 cmpl (%r9), \old_value

12