Home
last modified time | relevance | path

Searched refs:newBuffer (Results 1 – 2 of 2) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/
Djs_serializer.cpp220 uint8_t *newBuffer = reinterpret_cast<uint8_t *>(malloc(newCapacity)); in ExpandBuffer() local
221 if (newBuffer == nullptr) { in ExpandBuffer()
224 if (memcpy_s(newBuffer, newCapacity, buffer_, bufferSize_) != EOK) { in ExpandBuffer()
226 free(newBuffer); in ExpandBuffer()
230 buffer_ = newBuffer; in ExpandBuffer()
Dobject_factory.cpp371 auto newBuffer = vm_->GetNativeAreaAllocator()->AllocateBuffer(size); in NewJSRegExpByteCodeData() local
372 if (memcpy_s(newBuffer, size, buffer, size) != EOK) { in NewJSRegExpByteCodeData()
379 native->ResetExternalPointer(newBuffer); in NewJSRegExpByteCodeData()
382 …JSHandle<JSNativePointer> pointer = NewJSNativePointer(newBuffer, NativeAreaAllocator::FreeBufferF… in NewJSRegExpByteCodeData()