Home
last modified time | relevance | path

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

1234

/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/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/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.cpp34 void JSPluralRules::FreeIcuNumberFormatter(void *pointer, void* hint) in FreeIcuNumberFormatter() argument
36 if (pointer == nullptr) { in FreeIcuNumberFormatter()
39 auto icuNumberFormatter = reinterpret_cast<icu::number::LocalizedNumberFormatter *>(pointer); in FreeIcuNumberFormatter()
42 reinterpret_cast<EcmaVM *>(hint)->GetNativeAreaAllocator()->FreeBuffer(pointer); in FreeIcuNumberFormatter()
61 JSHandle<JSNativePointer> pointer = factory->NewJSNativePointer(icuPointer, callback, ecmaVm); in SetIcuNumberFormatter() local
62 pluralRules->SetIcuNF(thread, pointer.GetTaggedValue()); in SetIcuNumberFormatter()
72 void JSPluralRules::FreeIcuPluralRules(void *pointer, void* hint) in FreeIcuPluralRules() argument
74 if (pointer == nullptr) { in FreeIcuPluralRules()
77 auto icuPluralRules = reinterpret_cast<icu::PluralRules *>(pointer); in FreeIcuPluralRules()
80 reinterpret_cast<EcmaVM *>(hint)->GetNativeAreaAllocator()->FreeBuffer(pointer); in FreeIcuPluralRules()
[all …]
Djs_collator.h71 static void FreeIcuCollator(void *pointer, [[maybe_unused]] void *hint = nullptr)
73 if (pointer == nullptr) {
76 auto icuCollator = reinterpret_cast<icu::Collator *>(pointer);
Djs_plural_rules.h60 static void FreeIcuNumberFormatter(void *pointer, [[maybe_unused]] void* hint = nullptr);
67 static void FreeIcuPluralRules(void *pointer, [[maybe_unused]] void* hint = nullptr);
Djs_number_format.h101 static void FreeIcuNumberformat(void *pointer, void *data) in FreeIcuNumberformat() argument
103 if (pointer == nullptr) { in FreeIcuNumberformat()
106 auto icuNumberformat = reinterpret_cast<icu::number::LocalizedNumberFormatter *>(pointer); in FreeIcuNumberformat()
Dobject_factory-inl.h116 JSHandle<JSNativePointer> pointer = NewJSNativePointer(icuPoint, callback, vm_); in NewJSIntlIcuData() local
117 obj->SetIcuField(thread_, pointer.GetTaggedValue()); in NewJSIntlIcuData()
Djs_displaynames.cpp55 void JSDisplayNames::FreeIcuLocaleDisplayNames(void *pointer, [[maybe_unused]] void* hint) in FreeIcuLocaleDisplayNames() argument
57 if (pointer == nullptr) { in FreeIcuLocaleDisplayNames()
60 auto icuLocaleDisplayNames = reinterpret_cast<icu::LocaleDisplayNames *>(pointer); in FreeIcuLocaleDisplayNames()
78 … JSHandle<JSNativePointer> pointer = factory->NewJSNativePointer(iculocaledisplaynames, callback); in SetIcuLocaleDisplayNames() local
79 displayNames->SetIcuLDN(thread, pointer.GetTaggedValue()); in SetIcuLocaleDisplayNames()
Djs_list_format.cpp46 void JSListFormat::FreeIcuListFormatter(void *pointer, [[maybe_unused]] void* hint) in FreeIcuListFormatter() argument
48 if (pointer == nullptr) { in FreeIcuListFormatter()
51 auto icuListFormat = reinterpret_cast<icu::ListFormatter *>(pointer); in FreeIcuListFormatter()
68 JSHandle<JSNativePointer> pointer = factory->NewJSNativePointer(icuListFormatter, callback); in SetIcuListFormatter() local
69 listFormat->SetIcuLF(thread, pointer.GetTaggedValue()); in SetIcuListFormatter()
/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/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()
Dobject_pointer.h132 ALWAYS_INLINE static Object *ToObjectPtr(const object_pointer_type pointer) noexcept in ToObjectPtr() argument
134 return ToNativePtr<Object>(static_cast<uintptr_t>(pointer)); in ToObjectPtr()
/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()
Dcaddress_allocator.h27 using pointer = T *; variable
72 pointer allocate(size_type n, [[maybe_unused]] const void *ptr = nullptr)
79 void deallocate(pointer p, [[maybe_unused]] size_type n) in deallocate()
/arkcompiler/runtime_core/compiler/docs/
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
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 …]
/arkcompiler/runtime_core/libpandabase/tests/
Dmmap_fixed_test.cpp28 auto pointer = static_cast<uint64_t *>(ToVoidPtr(addr)); in DeathWrite64() local
29 *pointer = MAGIC_VALUE; in DeathWrite64()
/arkcompiler/ets_runtime/ecmascript/jspandafile/
Dscope_info_extractor.cpp58 JSHandle<JSNativePointer> pointer = factory->NewJSNativePointer( in GenerateScopeInfo() local
60 return pointer.GetTaggedValue(); in GenerateScopeInfo()
/arkcompiler/ets_runtime/ecmascript/module/
Djs_module_deregister.cpp33 void ModuleDeregister::FreeModuleRecord(void *pointer, void *hint) in FreeModuleRecord() argument
35 if (pointer == nullptr) { in FreeModuleRecord()
43 thread->GetCurrentEcmaContext()->GetModuleManager()->HostGetImportedModule(pointer); in FreeModuleRecord()
52 allocator->FreeBuffer(pointer); in FreeModuleRecord()
Djs_module_deregister.h45 static void FreeModuleRecord(void *pointer, void *hint);
/arkcompiler/runtime_core/libpandabase/utils/
Dring_buffer.h34 using pointer = value_type *; variable
87 constexpr pointer operator->() const noexcept
89 return static_cast<pointer>(&buffer_->operator[](index_));
124 using pointer = value_type *; variable
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_arraybuffer.cpp321 void *pointer = GetDataPointFromBuffer(arrBuf); in GetValueFromBuffer() local
322 uint8_t *block = reinterpret_cast<uint8_t *>(pointer); in GetValueFromBuffer()
385 void *pointer = GetDataPointFromBuffer(arrBuf); in SetValueInBuffer() local
386 uint8_t *block = reinterpret_cast<uint8_t *>(pointer); in SetValueInBuffer()
642 void *pointer = GetDataPointFromBuffer(arrBuf.GetTaggedValue()); in SetValueInBufferForBigInt() local
643 uint8_t *block = reinterpret_cast<uint8_t *>(pointer); in SetValueInBufferForBigInt()
672 void *pointer = GetDataPointFromBuffer(arrBuf); in FastSetValueInBuffer() local
673 uint8_t *block = reinterpret_cast<uint8_t *>(pointer); in FastSetValueInBuffer()

1234