Home
last modified time | relevance | path

Searched refs:old_value (Results 1 – 25 of 28) 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()
/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.cc416 T old_value = atom->exchange(new_value_, MO); in Access() local
417 StoreResult(old_value, result_); in Access()
444 T old_value = atom->load(std::memory_order_relaxed); in Apply() local
447 new_value = old_value + addend; in Apply()
448 } while (!atom->compare_exchange_weak(old_value, new_value, MO, std::memory_order_relaxed)); in Apply()
449 return old_value; in Apply()
460 T old_value = AtomicGetAndAddOperator<T, kIsFloatingPoint, MO>::Apply(addr, addend_); in Access() local
461 StoreResult(old_value, result_); in Access()
511 T old_value = atom->fetch_or(value_, MO); in Access() local
512 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,
769 ALWAYS_INLINE void VerifyCAS(ObjPtr<mirror::Object> new_value, ObjPtr<mirror::Object> old_value) in VerifyCAS() argument
772 VerifyRead<kVerifyFlags>(old_value); in VerifyCAS()
Dclass-inl.h1111 T old_value = GetFieldPtrWithSize<T, kVerifyFlags>(member_offset, pointer_size); in FixupNativePointer() local
1112 T new_value = visitor(old_value, address); in FixupNativePointer()
1113 if (old_value != new_value) { in FixupNativePointer()
/art/compiler/optimizing/
Dintrinsics_arm_vixl.cc3353 Location old_value) { in EmitLoadExclusive() argument
3358 __ Ldrexb(RegisterFrom(old_value), MemOperand(ptr)); in EmitLoadExclusive()
3362 __ Ldrexh(RegisterFrom(old_value), MemOperand(ptr)); in EmitLoadExclusive()
3366 __ Ldrex(RegisterFrom(old_value), MemOperand(ptr)); in EmitLoadExclusive()
3369 __ Ldrexd(LowRegisterFrom(old_value), HighRegisterFrom(old_value), MemOperand(ptr)); in EmitLoadExclusive()
3377 __ Sxtb(RegisterFrom(old_value), RegisterFrom(old_value)); in EmitLoadExclusive()
3380 __ Sxth(RegisterFrom(old_value), RegisterFrom(old_value)); in EmitLoadExclusive()
3383 assembler->MaybeUnpoisonHeapReference(RegisterFrom(old_value)); in EmitLoadExclusive()
3433 Location old_value, in GenerateCompareAndSet() argument
3443 DCHECK(old_value.IsRegisterPair()); in GenerateCompareAndSet()
[all …]
Dintrinsics_arm64.cc1120 Register old_value, in EmitLoadExclusive() argument
1129 __ Ldaxrb(old_value, MemOperand(ptr)); in EmitLoadExclusive()
1131 __ Ldxrb(old_value, MemOperand(ptr)); in EmitLoadExclusive()
1137 __ Ldaxrh(old_value, MemOperand(ptr)); in EmitLoadExclusive()
1139 __ Ldxrh(old_value, MemOperand(ptr)); in EmitLoadExclusive()
1146 __ Ldaxr(old_value, MemOperand(ptr)); in EmitLoadExclusive()
1148 __ Ldxr(old_value, MemOperand(ptr)); in EmitLoadExclusive()
1157 __ Sxtb(old_value, old_value); in EmitLoadExclusive()
1160 __ Sxth(old_value, old_value); in EmitLoadExclusive()
1163 assembler->MaybeUnpoisonHeapReference(old_value); in EmitLoadExclusive()
[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()
1911 Value old_value = record.value; in VisitGetLocation() local
1914 KeepStores(old_value); in VisitGetLocation()
Dcode_generator_arm_vixl.h730 vixl::aarch32::Register old_value);
Dcode_generator_arm64.h884 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/test/
Ddefault_run.py209 old_value = getattr(args, name)
210 …assert isinstance(new_value, old_value.__class__), name + " should have type " + str(old_value.__c…
211 if isinstance(old_value, list):
212 setattr(args, name, old_value + new_value) # Lists get merged.
/art/runtime/gc/space/
Dimage_space.cc445 T* old_value = root->template Read<kWithoutReadBarrier>(); in PatchGcRoot() local
446 DCHECK(kMayBeNull || old_value != nullptr); in PatchGcRoot()
447 if (!kMayBeNull || old_value != nullptr) { in PatchGcRoot()
448 *root = GcRoot<T>(heap_visitor_(old_value)); in PatchGcRoot()
456 T* old_value = reinterpret_cast64<T*>(*raw_entry); in PatchNativePointer() local
457 DCHECK(kMayBeNull || old_value != nullptr); in PatchNativePointer()
458 if (!kMayBeNull || old_value != nullptr) { in PatchNativePointer()
459 T* new_value = native_visitor_(old_value); in PatchNativePointer()
464 T* old_value = reinterpret_cast32<T*>(*raw_entry); in PatchNativePointer() local
465 DCHECK(kMayBeNull || old_value != nullptr); in PatchNativePointer()
[all …]
/art/runtime/interpreter/mterp/armng/
Dmain.S722 .macro UPDATE_REGISTERS_FOR_STRING_INIT old_value, new_value
726 cmp lr, \old_value
/art/runtime/interpreter/mterp/arm64ng/
Dmain.S717 .macro UPDATE_REGISTERS_FOR_STRING_INIT old_value, new_value
721 cmp wip2, \old_value
/art/runtime/interpreter/mterp/x86_64ng/
Dmain.S1092 .macro UPDATE_REGISTERS_FOR_STRING_INIT old_value, new_value
1096 cmpl (%r9), \old_value
/art/runtime/interpreter/mterp/x86ng/
Dmain.S1083 .macro UPDATE_REGISTERS_FOR_STRING_INIT old_value, new_value
1087 cmpl (%edx), \old_value

12