Home
last modified time | relevance | path

Searched refs:pointer (Results 1 – 25 of 175) sorted by relevance

1234567

/arkcompiler/ets_runtime/ecmascript/shared_mm/
Dshared_mm.cpp26 const void *pointer = ToVoidPtr(iter->first); in ~JSSharedMemoryManager() local
27 FreeBuffer(const_cast<void *>(pointer)); in ~JSSharedMemoryManager()
32 bool JSSharedMemoryManager::CreateOrLoad(void **pointer, size_t size) in CreateOrLoad() argument
34 if (*pointer != nullptr) { in CreateOrLoad()
35 if (loadedJSSharedMemory_.find((uint64_t)*pointer) != loadedJSSharedMemory_.end()) { in CreateOrLoad()
36 IncreaseRefSharedMemory(*pointer); in CreateOrLoad()
40 *pointer = AllocateBuffer(size); in CreateOrLoad()
41 InsertSharedMemory(*pointer); in CreateOrLoad()
45 void JSSharedMemoryManager::InsertSharedMemory(const void *pointer) in InsertSharedMemory() argument
48 if (loadedJSSharedMemory_.find((uint64_t)pointer) == loadedJSSharedMemory_.end()) { in InsertSharedMemory()
[all …]
Dshared_mm.h34 bool CreateOrLoad(void **pointer, size_t size);
35 static void RemoveSharedMemory(void *pointer, void *data);
39 void InsertSharedMemory(const void *pointer);
40 void IncreaseRefSharedMemory(const void *pointer);
41 void DecreaseRefSharedMemory(const void *pointer);
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_util/include/
Dptr.h36 constexpr Ptr() noexcept : pointer(nullptr) in Ptr()
41 constexpr explicit Ptr(std::nullptr_t) noexcept : pointer(nullptr) in Ptr()
46 explicit Ptr(Pointer ptr) : pointer(ptr) in Ptr()
51 Ptr(Pointer ref, PtrCheckerType<T> checker) : pointer(ref) in Ptr()
53 checker(pointer); in Ptr()
56 explicit Ptr(T &ref) : pointer(&ref) in Ptr()
58 Check(pointer); in Ptr()
61 Ptr(T &ref, PtrCheckerType<T> checker) : pointer(&ref) in Ptr()
63 checker(pointer); in Ptr()
69 explicit Ptr(U *ptr) : pointer(ptr) in Ptr()
[all …]
Dptr_list_ref.h60 using pointer = typename std::iterator_traits<T>::pointer; variable
93 pointer operator->() const
144 using pointer = T *; variable
151 explicit PtrListRefIterator(pointer ptr) : ptr(ptr) {} in PtrListRefIterator()
160 pointer d() const in d()
170 pointer operator->() const
212 pointer ptr = nullptr;
221 using pointer = T *; variable
232 explicit PtrListRef(pointer value) : first(value), last(value) {} in PtrListRef()
234 PtrListRef(pointer first, pointer last) : first(first), last(last == nullptr ? first : last) {} in PtrListRef()
[all …]
Dsafe_ptr.h34 using pointer = typename Base::Pointer;
41 SafePtr(pointer ptr) : base(ptr) {} in SafePtr()
76 SafePtr &operator=(pointer ptr) noexcept
110 pointer release() noexcept = delete;
114 void reset(pointer ptr) noexcept in reset()
231 return hash<typename maple::utils::SafePtr<T>::pointer>()(safePtr.get());
/arkcompiler/ets_runtime/ecmascript/intl/
Dglobal_intl_helper.h138 static void FreeCollatorFormat(void *pointer, void *data) in FreeCollatorFormat() argument
140 if (pointer == nullptr) { in FreeCollatorFormat()
143 auto globalCollator = reinterpret_cast<GlobalCollator*>(pointer); in FreeCollatorFormat()
146 reinterpret_cast<EcmaVM *>(data)->GetNativeAreaAllocator()->FreeBuffer(pointer); in FreeCollatorFormat()
149 static void FreeNumberFormat(void *pointer, void *data) in FreeNumberFormat() argument
151 if (pointer == nullptr) { in FreeNumberFormat()
154 auto globalNumberFormat = reinterpret_cast<GlobalNumberFormat*>(pointer); in FreeNumberFormat()
157 reinterpret_cast<EcmaVM *>(data)->GetNativeAreaAllocator()->FreeBuffer(pointer); in FreeNumberFormat()
160 static void FreeDateTimeFormat(void *pointer, void *data) in FreeDateTimeFormat() argument
162 if (pointer == nullptr) { in FreeDateTimeFormat()
[all …]
/arkcompiler/runtime_core/docs/
Druntime-compiled_code-interaction.md29 Compiled code of a managed function must accept one extra argumnent: the pointer to `panda::Method`…
36 - a pointer to `panda::Method` in the register R0.
48 | pending_exception_ | panda::ObjectHeader* | A pointer to a thrown exception or 0 if there is n…
53 There is an allocated register for each target architecture to store a pointer to `panda::ManagedTh…
54 must contains a valid pointer to `panda::ManagedThread` on entry to each compiled function.
76 Entrypoint is a pointer to native code which can execute the function. This code must conform to th…
77 one extra argument: a pointer to `panda::Method` ( See [Calling convention](#calling_convention)).
87 …nda::Frame` class. The class has fields to store virtual registers and a pointer to the previous s…
88 …organized into a linked list. The field `panda::Frame::prev_` contains a pointer to the previous i…
94 When compiled code is executing the `stack pointer` register must point to a valid stack frame (new…
[all …]
/arkcompiler/runtime_core/static_core/docs/
Druntime-compiled_code-interaction.md29 Compiled code of a managed function must accept one extra argument: the pointer to `panda::Method` …
36 - a pointer to `panda::Method` in the register R0.
54 | pending_exception_ | panda::ObjectHeader* | A pointer to a thrown exception or 0 if there is n…
59 There is an allocated register for each target architecture to store a pointer to `panda::ManagedTh…
60 must contains a valid pointer to `panda::ManagedThread` on entry to each compiled function.
82 Entrypoint is a pointer to native code which can execute the function. This code must conform to th…
83 one extra argument: a pointer to `panda::Method` ( See [Calling convention](#calling_convention)).
93 …nda::Frame` class. The class has fields to store virtual registers and a pointer to the previous s…
94 …organized into a linked list. The field `panda::Frame::prev_` contains a pointer to the previous i…
100 When compiled code is executing the `stack pointer` register must point to a valid stack frame (new…
[all …]
Ddeoptimization.md23 1. fill the `Frame`(saves pointer to current CFrame) and `is_compiled_frame_`(saves true) fields in…
68 * pointer to the current thread
70 * pointer to first restoring interpreter Frame
71 * pointer to CFrame origin
72 * pointer to last restoring interpreter Frame
91 * pointer to current thread
93 * pointer to first restoring interpreter Frame
94 * pointer to last restoring interpreter Frame
96 `InvokeInterpreter` change `Frame`(saves pointer to interpreter Frame) and `is_compiled_frame_`(sav…
/arkcompiler/ets_runtime/ecmascript/
Dbyte_array.cpp24 void *pointer = GetData(); in Set() local
25 auto *block = reinterpret_cast<uint8_t *>(pointer) + offset; in Set()
32 void *pointer = GetData(); in Get() local
33 auto *block = reinterpret_cast<uint8_t *>(pointer) + offset; in Get()
Djs_relative_time_format.h77 static void FreeIcuRTFFormatter(void *pointer, void *data) in FreeIcuRTFFormatter() argument
79 if (pointer == nullptr) { in FreeIcuRTFFormatter()
82 auto icuFormatter = reinterpret_cast<icu::RelativeDateTimeFormatter *>(pointer); in FreeIcuRTFFormatter()
85 reinterpret_cast<EcmaVM *>(data)->GetNativeAreaAllocator()->FreeBuffer(pointer); in FreeIcuRTFFormatter()
Djs_plural_rules.cpp35 void JSPluralRules::FreeIcuNumberFormatter(void *pointer, void* hint) in FreeIcuNumberFormatter() argument
37 if (pointer == nullptr) { in FreeIcuNumberFormatter()
40 auto icuNumberFormatter = reinterpret_cast<icu::number::LocalizedNumberFormatter *>(pointer); in FreeIcuNumberFormatter()
43 reinterpret_cast<EcmaVM *>(hint)->GetNativeAreaAllocator()->FreeBuffer(pointer); in FreeIcuNumberFormatter()
62 JSHandle<JSNativePointer> pointer = factory->NewJSNativePointer(icuPointer, callback, ecmaVm); in SetIcuNumberFormatter() local
63 pluralRules->SetIcuNF(thread, pointer.GetTaggedValue()); in SetIcuNumberFormatter()
73 void JSPluralRules::FreeIcuPluralRules(void *pointer, void* hint) in FreeIcuPluralRules() argument
75 if (pointer == nullptr) { in FreeIcuPluralRules()
78 auto icuPluralRules = reinterpret_cast<icu::PluralRules *>(pointer); in FreeIcuPluralRules()
81 reinterpret_cast<EcmaVM *>(hint)->GetNativeAreaAllocator()->FreeBuffer(pointer); in FreeIcuPluralRules()
[all …]
/arkcompiler/runtime_core/static_core/libllvmbackend/transforms/passes/
Dexpand_atomics.cpp68 auto pointer = atomicInstruction->getOperand(pointerIndex); in InsertAddrSpaceCast() local
69 ASSERT(pointer->getType()->isPointerTy()); in InsertAddrSpaceCast()
70 if (pointer->getType()->getPointerAddressSpace() != LLVMArkInterface::GC_ADDR_SPACE) { in InsertAddrSpaceCast()
78 auto cast = llvm::CastInst::Create(llvm::CastInst::AddrSpaceCast, pointer, in InsertAddrSpaceCast()
/arkcompiler/runtime_core/static_core/libpandabase/tests/
Dmmap_test.cpp34 auto *pointer = static_cast<uint64_t *>(start); in FillMemory() local
37 pointer[i] = MAGIC_VALUE; in FillMemory()
44 auto *pointer = static_cast<uint64_t *>(start); in IsZeroMemory() local
47 if (pointer[i] != 0U) { in IsZeroMemory()
118 auto pointer = static_cast<uint64_t *>(ToVoidPtr(addr)); in DeathWrite64() local
119 *pointer = MAGIC_VALUE; in DeathWrite64()
/arkcompiler/runtime_core/libpandabase/mem/
Darena_allocator_stl_adapter.h31 using pointer = void *; variable
65 using pointer = T *; variable
108 pointer address(reference x) const in address()
119 pointer allocate(size_type n,
120 … [[maybe_unused]] typename ArenaAllocatorAdapter<void, use_oom_handler>::pointer ptr = nullptr)
127 void deallocate([[maybe_unused]] pointer p, [[maybe_unused]] size_type n) {} in deallocate()
/arkcompiler/runtime_core/static_core/libpandabase/mem/
Darena_allocator_stl_adapter.h32 using pointer = void *; // NOLINT(readability-identifier-naming) variable
68 using pointer = T *; // NOLINT(readability-identifier-naming) variable
112 pointer address(reference x) const in address()
123 pointer allocate(size_type n,
124 … [[maybe_unused]] typename ArenaAllocatorAdapter<void, USE_OOM_HANDLER>::pointer ptr = nullptr)
131 void deallocate([[maybe_unused]] pointer p, [[maybe_unused]] size_type n) {} in deallocate()
/arkcompiler/runtime_core/static_core/runtime/mem/
Drunslots_allocator_stl_adapter.h32 using pointer = void *; variable
72 using pointer = T *; variable
124 pointer address(reference x) const in address()
135 pointer allocate(size_type n,
137 … typename RunSlotsAllocatorAdapter<void, AllocConfigT, LockConfigT>::pointer ptr = nullptr)
144 void deallocate([[maybe_unused]] pointer p, [[maybe_unused]] size_type n) in deallocate()
Dallocator_adapter.h30 using pointer = void *; // NOLINT(readability-identifier-naming) variable
74 using pointer = T *; // NOLINT(readability-identifier-naming) variable
110 pointer allocate(size_type size, [[maybe_unused]] const void *hint = nullptr)
122 void deallocate(pointer ptr, [[maybe_unused]] size_type size) in deallocate()
/arkcompiler/ets_runtime/ecmascript/mem/
Dchunk_allocator.h27 using pointer = T *; variable
73 pointer address(reference x) const in address()
84 pointer allocate(size_type n, [[maybe_unused]] const void *ptr = nullptr)
91 void deallocate([[maybe_unused]] pointer p, [[maybe_unused]] size_type n) {} in deallocate()
/arkcompiler/runtime_core/compiler/docs/
Dplt.md16 `SlowPath` also can be used, as we can cache gathered Method or Class pointer into a slot in GOT ta…
25 `ThirdSlot` would actually store `Method pointer` after resolving, but during AOT file loading it i…
28 During calls, first parameter is always a callee `Method pointer`, so the trick from previous parag…
57 Caller `Method pointer` could be extracted (into `x0`) directly from Caller's CFrame, so,
58 having this two values in `x0` and `x1` it just call `GetCalleeMethod` to gather `Method pointer`.
60 When we have `Method pointer`, it is stored into `ThirdSlot`, allow to load proper executable addre…
91 XX+24: ldr w16, [x5, #4] ; Get Class pointer into x16
109 takes caller `Method pointer` from previous frame and calls `GetCalleeMethod` entrypoint.
110 Having `Method pointer` it is easy to load `VTable index` value.
118 …dSlot` are filled with zeroes and after resolving they both store `Class pointer`, but have differ…
[all …]
Daot_resolve_string.md5 loads a value from a slot associated with a string and checks if that value is valid pointer. If it…
6 application have to perform `ResolveStringAot` runtime call that will return a pointer. That runtim…
7 returned string pointer into the slot and subsequent executions of the same code will bypass runtim…
20 emits load from that slot, followed by the check that the loaded value is a valid pointer and the s…
27 …-roots-limit` controls how many time the same string should be resolved before its pointer will be
35 …on attempt will increment value inside the slot until it either get replaced with a string pointer,
37 - if PLT-slot's value is already a pointer then the resolved string gets returned;
42 …lue is above `--aot-string-gc-roots-limit` then slot's value is replaced by string pointer, slot is
/arkcompiler/runtime_core/static_core/compiler/docs/
Dplt.md16 `SlowPath` also can be used, as we can cache gathered Method or Class pointer into a slot in GOT ta…
25 `ThirdSlot` would actually store `Method pointer` after resolving, but during AOT file loading it i…
28 During calls, first parameter is always a callee `Method pointer`, so the trick from previous parag…
57 Caller `Method pointer` could be extracted (into `x0`) directly from Caller's CFrame, so,
58 having this two values in `x0` and `x1` it just call `GetCalleeMethod` to gather `Method pointer`.
60 When we have `Method pointer`, it is stored into `ThirdSlot`, allow to load proper executable addre…
91 XX+24: ldr w16, [x5, #4] ; Get Class pointer into x16
109 takes caller `Method pointer` from previous frame and calls `GetCalleeMethod` entrypoint.
110 Having `Method pointer` it is easy to load `VTable index` value.
118 …dSlot` are filled with zeroes and after resolving they both store `Class pointer`, but have differ…
[all …]
Daot_resolve_string.md5 loads a value from a slot associated with a string and checks if that value is valid pointer. If it…
6 application have to perform `ResolveStringAot` runtime call that will return a pointer. That runtim…
7 returned string pointer into the slot and subsequent executions of the same code will bypass runtim…
20 emits load from that slot, followed by the check that the loaded value is a valid pointer and the s…
27 …-roots-limit` controls how many time the same string should be resolved before its pointer will be
35 …on attempt will increment value inside the slot until it either get replaced with a string pointer,
37 - if PLT-slot's value is already a pointer then the resolved string gets returned;
42 …lue is above `--aot-string-gc-roots-limit` then slot's value is replaced by string pointer, slot is
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/mempool/include/
Dmempool_allocator.h210 using pointer = void *; variable
238 using pointer = T *; variable
264 pointer address(reference x) const in address()
274 pointer allocate(size_type n) in allocate()
279 void deallocate(pointer, size_type) {} in deallocate() argument
281 void construct(const pointer p, const_reference val) in construct()
286 void destroy(const pointer p) in destroy()
/arkcompiler/runtime_core/static_core/patches/zydis/
D0001-Simplify-Zydis-build.patch738 * @param info A pointer to the `ZydisInstructionParts` struct.
750 * @param definition A pointer to the variable that receives a pointer to the instruction-
1484 + * @param critical_section A pointer to the `ZyanCriticalSection` struct.
1491 + * @param critical_section A pointer to the `ZyanCriticalSection` struct.
1498 + * @param critical_section A pointer to the `ZyanCriticalSection` struct.
1508 + * @param critical_section A pointer to the `ZyanCriticalSection` struct.
1515 + * @param critical_section A pointer to the `ZyanCriticalSection` struct.
1877 + * @param destructor A pointer to a destructor callback which is invoked to finalize the data
2003 + * @param allocator A pointer to the `ZyanAllocator` instance.
2004 + * @param p Receives a pointer to the first memory block sufficient to hold an
[all …]

1234567