Home
last modified time | relevance | path

Searched refs:stackSize (Results 1 – 17 of 17) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/regexp/
Dregexp_executor.cpp40 uint32_t stackSize = sizeof(uintptr_t) * nStack_; in Execute() local
41 stateSize_ = sizeof(RegExpState) + captureResultSize + stackSize; in Execute()
51 if (stackSize != 0) { in Execute()
53 if (memset_s(stack_, stackSize, 0, stackSize) != EOK) { in Execute()
309 size_t stackSize = sizeof(uintptr_t) * nStack_; in PushRegExpState() local
310 if (memcpy_s(stackStart, stackSize, stack_, stackSize) != EOK) { in PushRegExpState()
335 size_t stackSize = sizeof(uintptr_t) * nStack_; in PopRegExpState() local
336 if (memcpy_s(stack_, stackSize, stackStart, stackSize) != EOK) { in PopRegExpState()
361 auto stackSize = stateStackSize_ * stateSize_; in ReAllocStack() local
362 if (memcpy_s(newStack, stackSize, stateStack_, stackSize) != EOK) { in ReAllocStack()
/arkcompiler/runtime_core/static_core/platforms/unix/libpandabase/
Dthread.cpp124 int ThreadGetStackInfo(NativeHandleType thread, void **stackAddr, size_t *stackSize, size_t *guardS… in ThreadGetStackInfo() argument
132 s += pthread_attr_getstack(&attr, stackAddr, stackSize); in ThreadGetStackInfo()
144 uintptr_t stackHiAddr = ToUintPtr(*stackAddr) + *stackSize; in ThreadGetStackInfo()
148 *stackSize = stackSizeLimit; in ThreadGetStackInfo()
156 s += pthread_attr_getstack(&attr, stackAddr, stackSize); in ThreadGetStackInfo()
/arkcompiler/runtime_core/static_core/libllvmbackend/transforms/passes/inline_ir/
Dpatch_return_handler_stack_adjustment.cpp80 auto stackSize = frameInfo.getStackSize(); in runOnMachineFunction() local
81 if (stackSize == 0) { in runOnMachineFunction()
99 auto newStackSize = oldStackSize + stackSize; in runOnMachineFunction()
102 << inlineAsm << "' because llvm used " << stackSize in runOnMachineFunction()
/arkcompiler/runtime_core/static_core/runtime/regexp/ecmascript/
Dregexp_executor.cpp37 uint32_t stackSize = sizeof(uintptr_t) * nStack_; in Execute() local
38 stateSize_ = sizeof(RegExpState) + captureResultSize + stackSize; in Execute()
52 if (stackSize != 0) { in Execute()
56 if (memset_s(stack_, stackSize, 0, stackSize) != EOK) { in Execute()
273 size_t stackSize = sizeof(uintptr_t) * nStack_; in PushRegExpState() local
274 if (memcpy_s(stackStart, stackSize, stack_, stackSize) != EOK) { in PushRegExpState()
299 size_t stackSize = sizeof(uintptr_t) * nStack_; in PopRegExpState() local
300 if (memcpy_s(stack_, stackSize, stackStart, stackSize) != EOK) { in PopRegExpState()
324 size_t stackSize = stateStackSize_ * stateSize_; in ReAllocStack() local
325 if (memcpy_s(newStack, stackSize, stateStack_, stackSize) != EOK) { in ReAllocStack()
/arkcompiler/runtime_core/static_core/runtime/tooling/sampler/
Dsample_reader-inl.h84 … size_t stackSize = ReadUintptrTBitMisaligned(&buffer_[bufferCounter + SAMPLE_STACK_SIZE_OFFSET]); in SampleReader() local
85 if (stackSize > SampleInfo::StackInfo::MAX_STACK_DEPTH) { in SampleReader()
90 …size_t nextSamplePtrOffset = SAMPLE_STACK_OFFSET + stackSize * sizeof(SampleInfo::ManagedStackFram… in SampleReader()
/arkcompiler/runtime_core/static_core/runtime/coroutines/
Dcoroutine.cpp122 bool Coroutine::RetrieveStackInfo(void *&stackAddr, size_t &stackSize, size_t &guardSize) in RetrieveStackInfo() argument
126 return context_->RetrieveStackInfo(stackAddr, stackSize, guardSize); in RetrieveStackInfo()
129 return ManagedThread::RetrieveStackInfo(stackAddr, stackSize, guardSize); in RetrieveStackInfo()
Dstackful_coroutine.cpp43 bool StackfulCoroutineContext::RetrieveStackInfo(void *&stackAddr, size_t &stackSize, size_t &guard… in RetrieveStackInfo() argument
46 stackSize = stackSizeBytes_; in RetrieveStackInfo()
Dcoroutine_context.h60 virtual bool RetrieveStackInfo(void *&stackAddr, size_t &stackSize, size_t &guardSize) = 0;
Dthreaded_coroutine.cpp83 bool ThreadedCoroutineContext::RetrieveStackInfo(void *&stackAddr, size_t &stackSize, size_t &guard… in RetrieveStackInfo() argument
85 …int error = os::thread::ThreadGetStackInfo(GetCoroutineNativeHandle(), &stackAddr, &stackSize, &gu… in RetrieveStackInfo()
Dthreaded_coroutine.h51 bool RetrieveStackInfo(void *&stackAddr, size_t &stackSize, size_t &guardSize) override;
Dstackful_coroutine.h58 bool RetrieveStackInfo(void *&stackAddr, size_t &stackSize, size_t &guardSize) override;
Dcoroutine.h134 bool RetrieveStackInfo(void *&stackAddr, size_t &stackSize, size_t &guardSize) override;
/arkcompiler/runtime_core/static_core/libpandabase/mem/
Darena_allocator.cpp140 size_t stackSize = buff_.GetOccupiedSize(); in Resize() local
141 ASSERT(stackSize >= bytesToDelete); in Resize()
142 buff_.Resize(stackSize - bytesToDelete); in Resize()
/arkcompiler/runtime_core/static_core/runtime/
Dthread.cpp301 bool ManagedThread::RetrieveStackInfo(void *&stackAddr, size_t &stackSize, size_t &guardSize) in RetrieveStackInfo() argument
303 … os::thread::ThreadGetStackInfo(os::thread::GetNativeHandle(), &stackAddr, &stackSize, &guardSize); in RetrieveStackInfo()
314 size_t stackSize; in InitForStackOverflowCheck() local
321 if (!RetrieveStackInfo(stackBase, stackSize, guardSize)) { in InitForStackOverflowCheck()
327 if (stackSize <= nativeStackReservedSize + nativeStackProtectedSize + guardSize) { in InitForStackOverflowCheck()
329 << ", stack_size = " << stackSize << ", guard_size = " << guardSize; in InitForStackOverflowCheck()
332 …NTIME) << "InitForStackOverflowCheck: stack_base = " << stackBase << ", stack_size = " << stackSize in InitForStackOverflowCheck()
339 nativeStackSize_ = stackSize; in InitForStackOverflowCheck()
342 auto iframeStackSize = stackSize * 4; in InitForStackOverflowCheck()
/arkcompiler/ets_runtime/ecmascript/stackmap/
Dllvm_stackmap_type.h128 uint64_t stackSize; member
133 LOG_COMPILER(DEBUG) << " stackSize:0x" << std::hex << stackSize; in Print()
/arkcompiler/runtime_core/static_core/libpandabase/os/
Dthread.h147 …NDA_PUBLIC_API int ThreadGetStackInfo(NativeHandleType thread, void **stackAddr, size_t *stackSize,
/arkcompiler/runtime_core/static_core/runtime/include/
Dmanaged_thread.h605 virtual bool RetrieveStackInfo(void *&stackAddr, size_t &stackSize, size_t &guardSize);