Home
last modified time | relevance | path

Searched refs:addr (Results 1 – 25 of 203) sorted by relevance

123456789

/arkcompiler/runtime_core/static_core/verification/absint/
Dexec_context.h34 bool HasContext(const uint8_t *addr) const in HasContext() argument
36 return regContextOnCheckPoint_.count(addr) > 0; in HasContext()
39 bool IsCheckPoint(const uint8_t *addr) const in IsCheckPoint() argument
41 return checkPoint_.HasMark(addr); in IsCheckPoint()
44 void AddEntryPoint(const uint8_t *addr, EntryPointType type) in AddEntryPoint() argument
46 entryPoint_.insert({addr, type}); in AddEntryPoint()
50 void StoreCurrentRegContextForAddr(const uint8_t *addr, Reporter reporter) in StoreCurrentRegContextForAddr() argument
52 if (HasContext(addr)) { in StoreCurrentRegContextForAddr()
53 StoreCurrentRegContextForAddrIfHasContext(addr, reporter); in StoreCurrentRegContextForAddr()
54 } else if (IsCheckPoint(addr)) { in StoreCurrentRegContextForAddr()
[all …]
/arkcompiler/runtime_core/static_core/verification/cflow/
Dcflow_info.h59 bool IsAddrValid(uint8_t const *addr) const in IsAddrValid() argument
61 return addrStart_ <= addr && addr < addrEnd_; in IsAddrValid()
64 bool IsFlagSet(uint8_t const *addr, Flag flag) const in IsFlagSet() argument
66 ASSERT(addr >= addrStart_); in IsFlagSet()
67 ASSERT(addr < addrEnd_); in IsFlagSet()
68 return ((flags_[addr - addrStart_] & flag) != 0); in IsFlagSet()
71 void SetFlag(uint8_t const *addr, Flag flag) in SetFlag() argument
73 ASSERT(addr >= addrStart_); in SetFlag()
74 ASSERT(addr < addrEnd_); in SetFlag()
75 flags_[addr - addrStart_] |= flag; in SetFlag()
[all …]
/arkcompiler/runtime_core/static_core/libpandabase/utils/
Dasan_interface.h34 void __asan_poison_memory_region(void const volatile *addr, size_t size) __attribute__((visibility(…
37 void __asan_unpoison_memory_region(void const volatile *addr, size_t size) __attribute__((visibilit…
40 #define ASAN_POISON_MEMORY_REGION(addr, size) __asan_poison_memory_region((addr), (size)) argument
42 #define ASAN_UNPOISON_MEMORY_REGION(addr, size) __asan_unpoison_memory_region((addr), (size)) argument
50 #define ASAN_POISON_MEMORY_REGION(addr, size) ((void)(addr), (void)(size)) argument
52 #define ASAN_UNPOISON_MEMORY_REGION(addr, size) ((void)(addr), (void)(size)) argument
/arkcompiler/runtime_core/libpandabase/utils/
Dasan_interface.h35 void __asan_poison_memory_region(void const volatile *addr, size_t size) __attribute__((visibility(…
38 void __asan_unpoison_memory_region(void const volatile *addr, size_t size) __attribute__((visibilit…
41 #define ASAN_POISON_MEMORY_REGION(addr, size) __asan_poison_memory_region((addr), (size)) argument
43 #define ASAN_UNPOISON_MEMORY_REGION(addr, size) __asan_unpoison_memory_region((addr), (size)) argument
51 #define ASAN_POISON_MEMORY_REGION(addr, size) ((void)(addr), (void)(size)) argument
53 #define ASAN_UNPOISON_MEMORY_REGION(addr, size) ((void)(addr), (void)(size)) argument
/arkcompiler/runtime_core/platforms/unix/libpandabase/futex/
Dfmutex.h30 #define ATOMIC_STORE(addr, val, mem) atomic_store_explicit(addr, val, mem) argument
31 #define ATOMIC_LOAD(addr, mem) atomic_load_explicit(addr, mem) argument
32 #define ATOMIC_FETCH_ADD(addr, val, mem) atomic_fetch_add_explicit(addr, val, mem) argument
33 #define ATOMIC_FETCH_SUB(addr, val, mem) atomic_fetch_sub_explicit(addr, val, mem) argument
34 #define ATOMIC_CAS_WEAK(addr, old_val, new_val, mem1, mem2) \ argument
35 atomic_compare_exchange_weak_explicit(addr, &old_val, new_val, mem1, mem2)
53 #define ATOMIC_STORE(addr, val, mem) (addr)->store(val, std::mem) // NOLINT(cppcoreguideli… argument
54 #define ATOMIC_LOAD(addr, mem) (addr)->load(std::mem) // NOLINT(cppcoreguideli… argument
55 #define ATOMIC_FETCH_ADD(addr, val, mem) (addr)->fetch_add(val, std::mem) // NOLINT(cppcoreguideli… argument
56 #define ATOMIC_FETCH_SUB(addr, val, mem) (addr)->fetch_sub(val, std::mem) // NOLINT(cppcoreguideli… argument
[all …]
/arkcompiler/ets_runtime/ecmascript/base/
Dasan_interface.h30 void __asan_poison_memory_region(void const volatile *addr, size_t size) __attribute__((visibility(…
32 void __asan_unpoison_memory_region(void const volatile *addr, size_t size) __attribute__((visibilit…
37 #define ASAN_POISON_MEMORY_REGION(addr, size) __asan_poison_memory_region((addr), (size)) argument
41 #define ASAN_UNPOISON_MEMORY_REGION(addr, size) __asan_unpoison_memory_region((addr), (size)) argument
48 #define ASAN_POISON_MEMORY_REGION(addr, size) ((void)(addr), (void)(size)) argument
53 #define ASAN_UNPOISON_MEMORY_REGION(addr, size) ((void)(addr), (void)(size)) argument
/arkcompiler/runtime_core/static_core/runtime/mem/refstorage/
Dreference.h92 static Reference *CreateWithoutType(uintptr_t addr) in CreateWithoutType() argument
94 ASSERT((addr & MASK_TYPE) == 0); in CreateWithoutType()
95 return reinterpret_cast<Reference *>(addr); in CreateWithoutType()
98 static Reference *Create(uintptr_t addr, ObjectType type) in Create() argument
100 ASSERT((addr & MASK_TYPE) == 0); in Create()
101 return SetType(addr, type); in Create()
106 auto addr = ToUintPtr(ref); in GetType() local
107 return static_cast<ObjectType>(addr & MASK_TYPE); in GetType()
112 auto addr = ToUintPtr(ref); in SetType() local
113 return SetType(addr, type); in SetType()
[all …]
/arkcompiler/runtime_core/static_core/platforms/unix/libpandabase/futex/
Dfmutex.h28 #define ATOMIC_STORE(addr, val, mem) atomic_store_explicit(addr, val, mem) argument
29 #define ATOMIC_LOAD(addr, mem) atomic_load_explicit(addr, mem) argument
30 #define ATOMIC_FETCH_ADD(addr, val, mem) atomic_fetch_add_explicit(addr, val, mem) argument
31 #define ATOMIC_FETCH_SUB(addr, val, mem) atomic_fetch_sub_explicit(addr, val, mem) argument
32 #define ATOMIC_CAS_WEAK(addr, old_val, new_val, mem1, mem2) \ argument
33 atomic_compare_exchange_weak_explicit(addr, &old_val, new_val, mem1, mem2)
52 #define ATOMIC_STORE(addr, val, mem) (addr)->store(val, std::mem) // NOLINT(cppcoreguideli… argument
53 #define ATOMIC_LOAD(addr, mem) (addr)->load(std::mem) // NOLINT(cppcoreguideli… argument
54 #define ATOMIC_FETCH_ADD(addr, val, mem) (addr)->fetch_add(val, std::mem) // NOLINT(cppcoreguideli… argument
55 #define ATOMIC_FETCH_SUB(addr, val, mem) (addr)->fetch_sub(val, std::mem) // NOLINT(cppcoreguideli… argument
[all …]
/arkcompiler/runtime_core/static_core/runtime/mem/gc/
Dbitmap.h464 void Set(void *addr) in Set() argument
466 CheckAddrValidity(addr); in Set()
467 SetBit(AddrToBitOffset(ToPointerType(addr))); in Set()
474 void Clear(void *addr) in Clear() argument
476 CheckAddrValidity(addr); in Clear()
477 ClearBit(AddrToBitOffset(ToPointerType(addr))); in Clear()
491 bool Test(const void *addr) const in Test() argument
493 CheckAddrValidity(addr); in Test()
494 return TestBit(AddrToBitOffset(ToPointerType(addr))); in Test()
501 bool TestIfAddrValid(const void *addr) const in TestIfAddrValid() argument
[all …]
Dcard_table.cpp72 bool CardTable::IsMarked(uintptr_t addr) const in IsMarked()
74 CardPtr card = GetCardPtr(addr); in IsMarked()
78 void CardTable::MarkCard(uintptr_t addr) in MarkCard() argument
80 CardPtr card = GetCardPtr(addr); in MarkCard()
84 bool CardTable::IsClear(uintptr_t addr) const in IsClear()
86 CardPtr card = GetCardPtr(addr); in IsClear()
90 void CardTable::ClearCard(uintptr_t addr) in ClearCard() argument
92 CardPtr card = GetCardPtr(addr); in ClearCard()
169 CardTable::CardPtr CardTable::GetCardPtr(uintptr_t addr) const in GetCardPtr()
171 ASSERT(addr >= minAddress_); in GetCardPtr()
[all …]
/arkcompiler/ets_runtime/ecmascript/
Djs_thread_stub_entries.h35 void Set(size_t index, Address addr) in Set()
38 stubEntries_[index] = addr; in Set()
61 void Set(size_t index, Address addr) in Set()
64 stubEntries_[index] = addr; in Set()
82 void Set(size_t index, Address addr) in Set()
85 stubEntries_[index] = addr; in Set()
104 void Set(size_t index, Address addr) in Set()
107 stubEntries_[index] = addr; in Set()
116 void SetNonexistentBCHandlerStubEntries(Address addr) in SetNonexistentBCHandlerStubEntries()
120 stubEntries_[i] = addr; in SetNonexistentBCHandlerStubEntries()
[all …]
/arkcompiler/runtime_core/libpandabase/mem/
Dpool_map.cpp48 AllocatorInfo PoolMap::GetAllocatorInfo(const void *addr) const in GetAllocatorInfo()
50 size_t map_num = AddrToMapNum(addr); in GetAllocatorInfo()
59 SpaceType PoolMap::GetSpaceType(const void *addr) const in GetSpaceType()
61 if (ToUintPtr(addr) > (POOL_MAP_COVERAGE - 1U)) { in GetSpaceType()
64 size_t map_num = AddrToMapNum(addr); in GetSpaceType()
71 void *PoolMap::GetFirstByteOfPoolForAddr(const void *addr) const in GetFirstByteOfPoolForAddr()
73 return GetFirstByteInSegment(addr); in GetFirstByteOfPoolForAddr()
76 void *PoolMap::GetFirstByteInSegment(const void *addr) const in GetFirstByteInSegment()
78 size_t current_map_num = AddrToMapNum(addr); in GetFirstByteInSegment()
Dmem_range.h33 bool IsAddressInRange(uintptr_t addr) const in IsAddressInRange() argument
35 return (addr >= start_address_) && (addr <= end_address_); in IsAddressInRange()
60 bool Contains(uintptr_t addr) const in Contains() argument
62 return start_address_ <= addr && addr < end_address_; in Contains()
Dpool_map.h46 …cit constexpr AllocatorInfo(AllocatorType type, const void *addr) : type_(type), header_addr_(addr) in AllocatorInfo() argument
80 AllocatorInfo GetAllocatorInfo(const void *addr) const;
82 void *GetFirstByteOfPoolForAddr(const void *addr) const;
84 SpaceType GetSpaceType(const void *addr) const;
155 static size_t AddrToMapNum(const void *addr) in AddrToMapNum() argument
157 size_t map_num = ToUintPtr(addr) / POOL_MAP_GRANULARITY; in AddrToMapNum()
169 void *GetFirstByteInSegment(const void *addr) const;
/arkcompiler/runtime_core/libpandabase/
Dmacros.h235 #define TSAN_ANNOTATE_HAPPENS_BEFORE(addr) \ argument
236 AnnotateHappensBefore(__FILE__, __LINE__, reinterpret_cast<void *>(addr))
238 #define TSAN_ANNOTATE_HAPPENS_AFTER(addr) \ argument
239 AnnotateHappensAfter(__FILE__, __LINE__, reinterpret_cast<void *>(addr))
247 extern "C" void AnnotateHappensBefore(const char* f, int l, void* addr);
248 extern "C" void AnnotateHappensAfter(const char* f, int l, void* addr);
253 #define TSAN_ANNOTATE_HAPPENS_BEFORE(addr) argument
254 #define TSAN_ANNOTATE_HAPPENS_AFTER(addr) argument
262 #define TSAN_ANNOTATE_HAPPENS_BEFORE(addr) \ argument
263 AnnotateHappensBefore(__FILE__, __LINE__, reinterpret_cast<void *>(addr))
[all …]
/arkcompiler/runtime_core/static_core/runtime/include/
Dobject_accessor.h123 uintptr_t addr = ToUintPtr(obj) + offset; in GetDynValue() local
124 ASSERT(IsAddressInObjectsHeap(addr)); in GetDynValue()
126 return reinterpret_cast<const std::atomic<T> *>(addr)->load(std::memory_order_relaxed); in GetDynValue()
135 auto *addr = reinterpret_cast<T *>(reinterpret_cast<uintptr_t>(obj) + offset); in Get() local
136 ASSERT(IsAddressInObjectsHeap(addr)); in Get()
139 return reinterpret_cast<const std::atomic<T> *>(addr)->load(std::memory_order_seq_cst); in Get()
142 return reinterpret_cast<const std::atomic<T> *>(addr)->load(std::memory_order_relaxed); in Get()
148 auto *addr = reinterpret_cast<T *>(reinterpret_cast<uintptr_t>(obj) + offset); in Set() local
149 ASSERT(IsAddressInObjectsHeap(addr)); in Set()
152 … return reinterpret_cast<std::atomic<T> *>(addr)->store(value, std::memory_order_seq_cst); in Set()
[all …]
/arkcompiler/ets_runtime/ecmascript/mem/
Dremembered_set.h45 bool Insert(uintptr_t begin, uintptr_t addr) in Insert() argument
47 … return GCBitsetData()->SetBit<AccessType::NON_ATOMIC>((addr - begin) >> TAGGED_TYPE_SIZE_LOG); in Insert()
50 bool AtomicInsert(uintptr_t begin, uintptr_t addr) in AtomicInsert() argument
52 return GCBitsetData()->SetBit<AccessType::ATOMIC>((addr - begin) >> TAGGED_TYPE_SIZE_LOG); in AtomicInsert()
55 void ClearBit(uintptr_t begin, uintptr_t addr) in ClearBit() argument
57 GCBitsetData()->ClearBit((addr - begin) >> TAGGED_TYPE_SIZE_LOG); in ClearBit()
72 bool TestBit(uintptr_t begin, uintptr_t addr) const in TestBit() argument
74 return GCBitsetData()->TestBit((addr - begin) >> TAGGED_TYPE_SIZE_LOG); in TestBit()
Dregion-inl.h98 inline bool Region::Test(void *addr) const in Test() argument
100 auto addrPtr = reinterpret_cast<uintptr_t>(addr); in Test()
106 inline bool Region::TestOldToNew(uintptr_t addr) in TestOldToNew() argument
108 ASSERT(InRange(addr)); in TestOldToNew()
114 return set->TestBit(ToUintPtr(this), addr); in TestOldToNew()
131 inline void Region::InsertCrossRegionRSet(uintptr_t addr) in InsertCrossRegionRSet() argument
134 set->Insert(ToUintPtr(this), addr); in InsertCrossRegionRSet()
137 inline void Region::AtomicInsertCrossRegionRSet(uintptr_t addr) in AtomicInsertCrossRegionRSet() argument
140 set->AtomicInsert(ToUintPtr(this), addr); in AtomicInsertCrossRegionRSet()
180 inline void Region::InsertOldToNewRSet(uintptr_t addr) in InsertOldToNewRSet() argument
[all …]
/arkcompiler/runtime_core/static_core/libpandabase/mem/
Dmem_range.h31 bool IsAddressInRange(uintptr_t addr) const in IsAddressInRange() argument
33 return (addr >= startAddress_) && (addr <= endAddress_); in IsAddressInRange()
58 bool Contains(uintptr_t addr) const in Contains() argument
60 return startAddress_ <= addr && addr < endAddress_; in Contains()
Dpool_map.cpp45 AllocatorInfo PoolMap::GetAllocatorInfo(const void *addr) const in GetAllocatorInfo()
47 MapNumType mapNum = AddrToMapNum(addr); in GetAllocatorInfo()
56 SpaceType PoolMap::GetSpaceType(const void *addr) const in GetSpaceType()
58 if (ToUintPtr(addr) > (POOL_MAP_COVERAGE - 1U)) { in GetSpaceType()
61 MapNumType mapNum = AddrToMapNum(addr); in GetSpaceType()
68 void *PoolMap::GetFirstByteOfPoolForAddr(const void *addr) const in GetFirstByteOfPoolForAddr()
70 MapNumType segmentFirstMapNum = poolMap_[AddrToMapNum(addr)].GetSegmentFirstMapNum(); in GetFirstByteOfPoolForAddr()
/arkcompiler/runtime_core/compiler/docs/
Dinterface_inline_cache.md15 * `Slow path`: Call runtime RESOLVE_VIRTUAL_CALL_AOT to get method address and save method addr a…
27 Cache structure:(offset addr)/(class addr) 32bit/32bit
48 2. cache's high 32 save the `offset addr`,cache's low 32 save the `class addr`
54 `class addr`
55 1. `class addr` is just the point to a class, in ark runtime, class point is 32bit
59 `offset addr`
60 1. The purpose of `offset addr` is to obtain the `method addr` through calculation.
61 2. `offset addr` = ((`method addr`) - ([`class addr`].`methods_` addr)) / 2 ^ 3
62 3. why can not save `method addr` directly?
99 4. why `offset addr` divided by 2 ^ 3 at the end of the formula?
/arkcompiler/runtime_core/static_core/compiler/docs/
Dinterface_inline_cache.md15 * `Slow path`: Call runtime RESOLVE_VIRTUAL_CALL_AOT to get method address and save method addr a…
27 Cache structure:(offset addr)/(class addr) 32bit/32bit
48 2. cache's high 32 save the `offset addr`,cache's low 32 save the `class addr`
54 `class addr`
55 1. `class addr` is just the point to a class, in ark runtime, class point is 32bit
59 `offset addr`
60 1. The purpose of `offset addr` is to obtain the `method addr` through calculation.
61 2. `offset addr` = ((`method addr`) - ([`class addr`].`methods_` addr)) / 2 ^ 3
62 3. why can not save `method addr` directly?
99 4. why `offset addr` divided by 2 ^ 3 at the end of the formula?
/arkcompiler/toolchain/inspector/
Dlibrary_loader.cpp51 void* addr = reinterpret_cast<void*>(GetProcAddress(module, symbol.data())); in ResolveSymbol() local
52 if (addr != nullptr) { in ResolveSymbol()
53 return addr; in ResolveSymbol()
79 void* addr = dlsym(handle, symbol.data());
80 if (addr != nullptr) {
81 return addr;
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/aarch64/
Daarch64_alignment.cpp152 uint32 AArch64AlignAnalysis::GetAlignRange(uint32 alignedVal, uint32 addr) const in GetAlignRange()
154 if (addr == 0) { in GetAlignRange()
155 return addr; in GetAlignRange()
157 uint32 range = (alignedVal - (((addr - 1) * kInsnSize) & (alignedVal - 1))) / kInsnSize - 1; in GetAlignRange()
169 uint32 addr = 0; in MarkCondBranchAlign() local
174 uint32 alignNopNum = GetAlignRange(alignedVal, addr); in MarkCondBranchAlign()
175 addr += alignNopNum; in MarkCondBranchAlign()
182 addr += insn->GetAtomicNum(); in MarkCondBranchAlign()
185 ++addr; in MarkCondBranchAlign()
188 insn->SetAddress(addr); in MarkCondBranchAlign()
[all …]
/arkcompiler/runtime_core/static_core/runtime/
Dhandle_scope.cpp24 uintptr_t addr = thread_->GetHandleStorage<coretypes::TaggedType>()->NewHandle(value); in NewHandle() local
26 return addr; in NewHandle()
33 uintptr_t addr = thread_->GetHandleStorage<ObjectHeader *>()->NewHandle(value); in NewHandle() local
35 return addr; in NewHandle()

123456789