Home
last modified time | relevance | path

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

/ark/js_runtime/ecmascript/hprof/
Dheap_profiler_interface.cpp35 …auto *hprof = const_cast<NativeAreaAllocator *>(heap->GetNativeAreaAllocator())->New<HeapProfiler>… in DumpHeapSnapShot()
41 const_cast<NativeAreaAllocator *>(heap->GetNativeAreaAllocator())->Delete(hprof); in DumpHeapSnapShot()
47 …auto *hprof = const_cast<NativeAreaAllocator *>(heap->GetNativeAreaAllocator())->New<HeapProfiler>… in CreateHeapProfiler()
55 const_cast<NativeAreaAllocator *>(heap->GetNativeAreaAllocator())->Delete(heapProfiler); in Destroy()
Dstring_hashmap.cpp83 …auto *tempString = const_cast<NativeAreaAllocator *>(heap_->GetNativeAreaAllocator())->New<CString… in GetString()
86 const_cast<NativeAreaAllocator *>(heap_->GetNativeAreaAllocator())->Delete(tempString); in GetString()
96 const_cast<NativeAreaAllocator *>(heap_->GetNativeAreaAllocator())->Delete(it.second); in Clear()
Dheap_profiler.cpp33 const_cast<NativeAreaAllocator *>(heap_->GetNativeAreaAllocator())->Delete(jsonSerializer_); in ~HeapProfiler()
168 auto *snapShot = const_cast<NativeAreaAllocator *>(heap_->GetNativeAreaAllocator()) in MakeHeapSnapShot()
179 auto *snapShot = const_cast<NativeAreaAllocator *>(heap_->GetNativeAreaAllocator()) in MakeHeapSnapShot()
206 const_cast<NativeAreaAllocator *>(heap_->GetNativeAreaAllocator())->Delete(snapshot); in ClearSnapShot()
Dheap_snapshot.cpp46 auto node = const_cast<NativeAreaAllocator *>(heap->GetNativeAreaAllocator()) in NewNode()
57 …auto edge = const_cast<NativeAreaAllocator *>(heap->GetNativeAreaAllocator())->New<Edge>(id, type,… in NewEdge()
69 const_cast<NativeAreaAllocator *>(heap->GetNativeAreaAllocator())->Delete(node); in ~HeapSnapShot()
72 const_cast<NativeAreaAllocator *>(heap->GetNativeAreaAllocator())->Delete(edge); in ~HeapSnapShot()
439 const_cast<NativeAreaAllocator *>(heap_->GetNativeAreaAllocator())->Delete(node); in GenerateNode()
498 const_cast<NativeAreaAllocator *>(heap_->GetNativeAreaAllocator())->Delete(node); in GenerateStringNode()
Dheap_profiler.h36 …const_cast<NativeAreaAllocator *>(heap->GetNativeAreaAllocator())->New<HeapSnapShotJSONSerializer>… in HeapProfiler()
/ark/js_runtime/ecmascript/mem/
Dregion-inl.h35 …auto setAddr = const_cast<NativeAreaAllocator *>(heap_->GetNativeAreaAllocator())->Allocate(setSiz… in CreateRememberedSet()
98 heap_->GetNativeAreaAllocator())->Free(markBitmap_->GetBitMap().Data(), size); in DeleteMarkBitmap()
108 const_cast<NativeAreaAllocator *>(heap_->GetNativeAreaAllocator())->Free( in DeleteCrossRegionRememberedSet()
119 const_cast<NativeAreaAllocator *>(heap_->GetNativeAreaAllocator())->Free( in DeleteOldToNewRememberedSet()
Dparallel_work_helper.cpp36 …ToUintPtr(const_cast<NativeAreaAllocator *>(heap_->GetNativeAreaAllocator())->AllocateBuffer(SPACE… in WorkerHelper()
46 const_cast<NativeAreaAllocator *>(heap_->GetNativeAreaAllocator())->FreeBuffer( in ~WorkerHelper()
122 …const_cast<NativeAreaAllocator *>(heap_->GetNativeAreaAllocator())->FreeBuffer(reinterpret_cast<vo… in Finish()
171 heap_->GetNativeAreaAllocator())->AllocateBuffer(SPACE_SIZE)); in AllocalWorkNode()
Dheap_region_allocator.cpp53 space->GetHeap()->GetNativeAreaAllocator()); in AllocateAlignedRegion()
Dgc_stats.cpp120 …llocator *nativeAreaAllocator = const_cast<NativeAreaAllocator *>(heap_->GetNativeAreaAllocator()); in PrintHeapStatisticResult()
Dheap.h251 NativeAreaAllocator *GetNativeAreaAllocator() const in GetNativeAreaAllocator() function
Dheap.cpp40 nativeAreaAllocator_(ecmaVm->GetNativeAreaAllocator()), in Heap()
/ark/js_runtime/ecmascript/jspandafile/
Dscope_info_extractor.cpp32 auto buffer = ecmaVm->GetNativeAreaAllocator()->New<struct ScopeDebugInfo>(); in GenerateScopeInfo()
43 …fer, NativeAreaAllocator::FreeObjectFunc<struct ScopeDebugInfo>, ecmaVm->GetNativeAreaAllocator()); in GenerateScopeInfo()
/ark/js_runtime/ecmascript/
Djs_thread.cpp34 … EcmaVM::Cast(vm)->GetNativeAreaAllocator()->Allocate(sizeof(JSTaggedType) * MAX_STACK_SIZE)); in Create()
45 nativeAreaAllocator_ = EcmaVM::Cast(vm)->GetNativeAreaAllocator(); in JSThread()
64 GetNativeAreaAllocator()->Free(frameBase_, sizeof(JSTaggedType) * MAX_STACK_SIZE); in ~JSThread()
Djs_relative_time_format.h86 reinterpret_cast<EcmaVM *>(data)->GetNativeAreaAllocator()->FreeBuffer(pointer); in FreeIcuRTFFormatter()
Dobject_factory-inl.h79 S *icuPoint = vm_->GetNativeAreaAllocator()->New<S>(icu); in NewJSIntlIcuData()
Djs_plural_rules.cpp49 ecmaVm->GetNativeAreaAllocator()->New<icu::number::LocalizedNumberFormatter>(icuNF); in SetIcuNumberFormatter()
86 icu::PluralRules *icuPointer = ecmaVm->GetNativeAreaAllocator()->New<icu::PluralRules>(icuPR); in SetIcuPluralRules()
Djs_number_format.h108 reinterpret_cast<EcmaVM *>(data)->GetNativeAreaAllocator()->FreeBuffer(icuNumberformat); in FreeIcuNumberformat()
Djs_thread.h91 NativeAreaAllocator *GetNativeAreaAllocator() const in GetNativeAreaAllocator() function
Djs_date_time_format.cpp105 icu::Locale *icuPointer = ecmaVm->GetNativeAreaAllocator()->New<icu::Locale>(icuLocale); in SetIcuLocale()
127 reinterpret_cast<EcmaVM *>(data)->GetNativeAreaAllocator()->FreeBuffer(pointer); in FreeIcuLocale()
145 ecmaVm->GetNativeAreaAllocator()->New<icu::SimpleDateFormat>(icuSimpleDateTimeFormat); in SetIcuSimpleDateFormat()
167 reinterpret_cast<EcmaVM *>(data)->GetNativeAreaAllocator()->FreeBuffer(pointer); in FreeSimpleDateFormat()
Decma_vm.h328 NativeAreaAllocator *GetNativeAreaAllocator() const in GetNativeAreaAllocator() function
Dobject_factory.cpp152 auto newData = vm_->GetNativeAreaAllocator()->AllocateBuffer(length * sizeof(uint8_t)); in NewJSArrayBufferData()
161 auto newData = vm_->GetNativeAreaAllocator()->AllocateBuffer(length * sizeof(uint8_t)); in NewJSArrayBufferData()
167 vm_->GetNativeAreaAllocator()); in NewJSArrayBufferData()
181 auto newData = vm_->GetNativeAreaAllocator()->AllocateBuffer(length); in NewJSArrayBuffer()
187 vm_->GetNativeAreaAllocator()); in NewJSArrayBuffer()
239 auto newBuffer = vm_->GetNativeAreaAllocator()->AllocateBuffer(size); in NewJSRegExpByteCodeData()
251 vm_->GetNativeAreaAllocator()); in NewJSRegExpByteCodeData()
Djs_locale.h181 reinterpret_cast<EcmaVM *>(data)->GetNativeAreaAllocator()->FreeBuffer(pointer); in FreeIcuLocale()
/ark/js_runtime/ecmascript/napi/
Ddfx_jsnapi.cpp70 …const_cast<ecmascript::NativeAreaAllocator *>(heap->GetNativeAreaAllocator())->Delete(heapProfile); in StopHeapTracking()
/ark/js_runtime/ecmascript/snapshot/mem/
Dsnapshot_serialize.cpp640 …addressSlot_ = ToUintPtr(vm_->GetNativeAreaAllocator()->Allocate(sizeof(uintptr_t) * OBJECT_SIZE_E… in SnapShotSerialize()
642 …addressSlot_ = ToUintPtr(vm_->GetNativeAreaAllocator()->Allocate(sizeof(uintptr_t) * objectArraySi… in SnapShotSerialize()
649 …vm_->GetNativeAreaAllocator()->Free(ToVoidPtr(addressSlot_), sizeof(uintptr_t) * OBJECT_SIZE_EXTEN… in ~SnapShotSerialize()
651 …vm_->GetNativeAreaAllocator()->Free(ToVoidPtr(addressSlot_), sizeof(uintptr_t) * objectArraySize_); in ~SnapShotSerialize()
738 auto addr = vm_->GetNativeAreaAllocator()->Allocate(sizeof(uintptr_t) * objectArraySize_); in ExtendObjectArray()
745 …vm_->GetNativeAreaAllocator()->Free(ToVoidPtr(addressSlot_), sizeof(uintptr_t) * objectArraySize_); in ExtendObjectArray()
/ark/js_runtime/ecmascript/builtins/
Dbuiltins_regexp.cpp1150 Chunk chunk(thread->GetNativeAreaAllocator()); in Matcher()
1523 Chunk chunk(thread->GetNativeAreaAllocator()); in RegExpInitialize()