Home
last modified time | relevance | path

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

12

/arkcompiler/ets_runtime/test/fuzztest/jsvaluerefisarray_fuzzer/
Djsvaluerefisarray_fuzzer.cpp33 Deleter deleter = nullptr; in IsInt8ArrayFuzztest() local
34 …fferRef> arrayBuffer = ArrayBufferRef::New(vm, (void *)data, (int32_t)size, deleter, (void *)data); in IsInt8ArrayFuzztest()
49 Deleter deleter = nullptr; in IsUint8ArrayFuzztest() local
50 …fferRef> arrayBuffer = ArrayBufferRef::New(vm, (void *)data, (int32_t)size, deleter, (void *)data); in IsUint8ArrayFuzztest()
65 Deleter deleter = nullptr; in IsUint8ClampedArrayFuzztest() local
66 …fferRef> arrayBuffer = ArrayBufferRef::New(vm, (void *)data, (int32_t)size, deleter, (void *)data); in IsUint8ClampedArrayFuzztest()
81 Deleter deleter = nullptr; in IsInt16ArrayFuzztest() local
82 …fferRef> arrayBuffer = ArrayBufferRef::New(vm, (void *)data, (int32_t)size, deleter, (void *)data); in IsInt16ArrayFuzztest()
98 Deleter deleter = nullptr; in IsUint16ArrayFuzztest() local
99 …fferRef> arrayBuffer = ArrayBufferRef::New(vm, (void *)data, (int32_t)size, deleter, (void *)data); in IsUint16ArrayFuzztest()
/arkcompiler/ets_runtime/test/fuzztest/arraybufferrefnew_fuzzer/
Darraybufferrefnew_fuzzer.cpp33 Deleter deleter = nullptr; in ArrayBufferRefNewFuzzTest() local
34 ArrayBufferRef::New(vm, (void *)data, (int32_t)size, deleter, (void *)data); in ArrayBufferRefNewFuzzTest()
46 Deleter deleter = nullptr; in ArrayBufferRef_New_IsDetach_Detach_ByteLength_GetBuffer_FuzzTest() local
47 …fferRef> arrayBuffer = ArrayBufferRef::New(vm, (void *)data, (int32_t)size, deleter, (void *)data); in ArrayBufferRef_New_IsDetach_Detach_ByteLength_GetBuffer_FuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/functionrefname_fuzzer/
Dfunctionrefname_fuzzer.cpp40 Deleter deleter = nullptr; in FunctionRefSetNameFuzzTest() local
41 Local<FunctionRef> func = FunctionRef::New(vm, nativeFunc, deleter, (void *)(data + size)); in FunctionRefSetNameFuzzTest()
57 Deleter deleter = nullptr; in FunctionRefGetNameFuzzTest() local
58 Local<FunctionRef> func = FunctionRef::New(vm, nativeFunc, deleter, (void *)(data + size)); in FunctionRefGetNameFuzzTest()
/arkcompiler/ets_runtime/ecmascript/
Djs_native_pointer.h71 DeleteEntryPoint deleter = GetDeleter(); in DECL_VISIT_NATIVE_FIELD() local
72 if (deleter != nullptr) { in DECL_VISIT_NATIVE_FIELD()
73 deleter(externalPointer, GetData()); in DECL_VISIT_NATIVE_FIELD()
Djs_serializer.cpp791 uintptr_t deleter = reinterpret_cast<uintptr_t>(nativePtr->GetDeleter()); in WriteJSNativePointer() local
792 if (!WriteRawData(&deleter, sizeof(uintptr_t))) { in WriteJSNativePointer()
1760 uintptr_t deleter; in ReadJSNativePointer() local
1761 if (!ReadNativePointer(&deleter)) { in ReadJSNativePointer()
1773 … reinterpret_cast<DeleteEntryPoint>(deleter), in ReadJSNativePointer()
Djs_function.h226 void SetFunctionExtraInfo(JSThread *thread, void *nativeFunc, const DeleteEntryPoint &deleter,
Djs_function.cpp852 … const DeleteEntryPoint &deleter, void *data, size_t nativeBindingsize) in SetFunctionExtraInfo() argument
858 …JSHandle<JSNativePointer> pointer = vm->GetFactory()->NewJSNativePointer(nativeFunc, deleter, data, in SetFunctionExtraInfo()
/arkcompiler/ets_runtime/test/fuzztest/functionrefnew_fuzzer/
Dfunctionrefnew_fuzzer.cpp39 Deleter deleter = nullptr; in FunctionRefNewFuzzTest() local
40 FunctionRef::New(vm, nativeFunc, deleter, (void *)(data + size)); in FunctionRefNewFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/functionrefnewclassfunction_fuzzer/
Dfunctionrefnewclassfunction_fuzzer.cpp39 Deleter deleter = nullptr; in FunctionRefNewClassFunctionFuzzTest() local
40 FunctionRef::NewClassFunction(vm, nativeFunc, deleter, (void *)(data + size)); in FunctionRefNewClassFunctionFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/escapelocalscope_fuzzer/
Descapelocalscope_fuzzer.cpp39 Deleter deleter = nullptr; in EscapeLocalScopeFuzzTest() local
40 FunctionRef::NewClassFunction(vm, nativeFunc, deleter, (void *)(data + size)); in EscapeLocalScopeFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/functionrefgetfunctionprototype_fuzzer/
Dfunctionrefgetfunctionprototype_fuzzer.cpp40 Deleter deleter = nullptr; in FunctionRefGetFunctionPrototypeFuzzTest() local
41 Local<FunctionRef> func = FunctionRef::New(vm, nativeFunc, deleter, (void *)(data + size)); in FunctionRefGetFunctionPrototypeFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/functionrefconstructor_fuzzer/
Dfunctionrefconstructor_fuzzer.cpp40 Deleter deleter = nullptr; in FunctionRefConstructorFuzzTest() local
41 Local<FunctionRef> func = FunctionRef::New(vm, nativeFunc, deleter, (void *)(data + size)); in FunctionRefConstructorFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/functionrefcall_fuzzer/
Dfunctionrefcall_fuzzer.cpp39 Deleter deleter = nullptr; in FunctionRefCallFuzzTest() local
40 Local<FunctionRef> func = FunctionRef::New(vm, nativeFunc, deleter, (void *)(data + size)); in FunctionRefCallFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/jsvaluerefispromisevalue_fuzzer/
Djsvaluerefispromisevalue_fuzzer.cpp43 Deleter deleter = nullptr; in JSValueRefIsPromiseValueFuzzTest() local
44 Local<FunctionRef> reject = FunctionRef::New(vm, nativeFunc, deleter, (void *)(data + size)); in JSValueRefIsPromiseValueFuzzTest()
/arkcompiler/runtime_core/libpandabase/os/
Dmem.h182 …MapPtr(T *ptr, size_t size, Deleter deleter) : ptr_(ptr), size_(size), page_offset_(0), deleter_(d… in MapPtr() argument
183 MapPtr(T *ptr, size_t size, size_t page_offset, Deleter deleter) in MapPtr() argument
184 : ptr_(ptr), size_(size), page_offset_(page_offset), deleter_(deleter) in MapPtr()
/arkcompiler/runtime_core/static_core/libpandabase/os/
Dmem.h184 …MapPtr(T *ptr, size_t size, Deleter deleter) : ptr_(ptr), size_(size), pageOffset_(0), deleter_(de… in MapPtr() argument
185 MapPtr(T *ptr, size_t size, size_t pageOffset, Deleter deleter) in MapPtr() argument
186 : ptr_(ptr), size_(size), pageOffset_(pageOffset), deleter_(deleter) in MapPtr()
/arkcompiler/ets_runtime/test/fuzztest/bufferrefnew_fuzzer/
Dbufferrefnew_fuzzer.cpp46 Deleter deleter = nullptr; in BufferRefMultiParamNewFuzzTest() local
47 BufferRef::New(vm, (void *)data, (int32_t)size, deleter, (void *)data); in BufferRefMultiParamNewFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/jsvaluereffoundationvalue_fuzzer/
Djsvaluereffoundationvalue_fuzzer.cpp115 Deleter deleter = nullptr; in JSValueRefIsFunctionValueFuzzTest() local
117 …Local<FunctionRef> obj(FunctionRef::NewClassFunction(vm, nativeFunc, deleter, (void *)(data + size… in JSValueRefIsFunctionValueFuzzTest()
/arkcompiler/ets_runtime/ecmascript/napi/include/
Djsnapi_expo.h681 … static Local<FunctionRef> New(EcmaVM *vm, FunctionCallback nativeFunc, Deleter deleter = nullptr,
683 static Local<FunctionRef> New(EcmaVM *vm, InternalFunctionCallback nativeFunc, Deleter deleter,
685 …tatic Local<FunctionRef> NewClassFunction(EcmaVM *vm, FunctionCallback nativeFunc, Deleter deleter,
687 …cal<FunctionRef> NewClassFunction(EcmaVM *vm, InternalFunctionCallback nativeFunc, Deleter deleter,
702 void SetData(const EcmaVM *vm, void *data, Deleter deleter = nullptr, bool callNapi = false);
856 …c Local<ArrayBufferRef> New(const EcmaVM *vm, void *buffer, int32_t length, const Deleter &deleter,
1074 …static Local<BufferRef> New(const EcmaVM *vm, void *buffer, int32_t length, const Deleter &deleter,
/arkcompiler/ets_runtime/ecmascript/napi/test/
Djsnapi_third_tests.cpp291 Deleter deleter = [](void *buffer, void *data) -> void { in HWTEST_F_L0() local
301 Local<BufferRef> bufferRef = BufferRef::New(vm_, buffer, length, deleter, data); in HWTEST_F_L0()
521 Deleter deleter = [](void *buffer, void *data) -> void { in HWTEST_F_L0() local
531 Local<ArrayBufferRef> arrayBuffer = ArrayBufferRef::New(vm_, buffer, length, deleter, data); in HWTEST_F_L0()
Djsnapi_first_tests.cpp717 Deleter deleter = [](void *buffer, void *data) -> void { in HWTEST_F_L0() local
727 Local<ArrayBufferRef> arrayBuffer = ArrayBufferRef::New(vm_, buffer, length, deleter, data); in HWTEST_F_L0()
1644 Deleter deleter = nullptr; in HWTEST_F_L0() local
1649 … FunctionRef::NewClassFunction(vm_, FunctionCallback, deleter, cb, callNative, nativeBindingsize); in HWTEST_F_L0()
Dffi_workload.cpp383 Deleter deleter = nullptr; in HWTEST_F_L0() local
387 …Local<FunctionRef> obj(FunctionRef::NewClassFunction(vm_, FunCallback, deleter, cb, callNative, na… in HWTEST_F_L0()
532 Deleter deleter = [](void *buffer, void *data) -> void { in HWTEST_F_L0() local
541 Local<ArrayBufferRef> arrayBuffer = ArrayBufferRef::New(vm_, buffer, length, deleter, data); in HWTEST_F_L0()
557 Deleter deleter = [](void *buffer, void *data) -> void { in HWTEST_F_L0() local
571 (void)BufferRef::New(vm_, buffer, length, deleter, data); in HWTEST_F_L0()
853 Deleter deleter = [](void *buffer, void *data) -> void { in HWTEST_F_L0() local
867 (void)ArrayBufferRef::New(vm_, buffer, length, deleter, data); in HWTEST_F_L0()
6388 Deleter deleter = nullptr; in HWTEST_F_L0() local
6393 FunctionRef::NewClassFunction(vm_, FunCallback, deleter, cb, callNative, nativeBindingsize); in HWTEST_F_L0()
Djsnapi_sample.cpp2151 Deleter deleter = [](void *buffer, void *data) -> void { in HWTEST_F_L0() local
2159 Local<ArrayBufferRef> arrayBuffer = ArrayBufferRef::New(vm_, buffer, length, deleter, data); in HWTEST_F_L0()
2186 Deleter deleter = [](void *buffer, void *data) -> void { in HWTEST_F_L0() local
2194 Local<BufferRef> bufferObj = BufferRef::New(vm_, buffer, length, deleter, data); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/napi/
DJSNapi接口说明.md9 …ufferRef::New(const EcmaVM *vm, void *buffer, int32_t length, const Deleter &deleter, void *data)��
20 | deleter | const Deleter & | �� | ɾ��ArrayBufferʱ�����IJ��� |
36 Deleter deleter = [](void *buffer, void *data) -> void {
41 Local<ArrayBufferRef> arrayBuffer2 = ArrayBufferRef::New(vm, buffer, 10, deleter, data);
68 Deleter deleter = [](void *buffer, void *data) -> void {
73 Local<ArrayBufferRef> arrayBuffer = ArrayBufferRef::New(vm, buffer, 10, deleter, data);
191 … BufferRef::New(const EcmaVM *vm, void *buffer, int32_t length, const Deleter &deleter, void *data)
202 | deleter | const Deleter & | �� | һ��ɾ�������������ڲ�����Ҫ������ʱ�ͷ����ڴ档 |
218 Deleter deleter = [](void *buffer, void *data) -> void {
223 Local<BufferRef> bufferRef2 = BufferRef::New(vm, buffer, 10, deleter, data);
[all …]
Djsnapi_expo.cpp1104 const EcmaVM *vm, void *buffer, int32_t length, const Deleter &deleter, void *data) in New() argument
1109 …y->NewJSArrayBuffer(buffer, length, reinterpret_cast<ecmascript::DeleteEntryPoint>(deleter), data); in New()
1956 const EcmaVM *vm, void *buffer, int32_t length, const Deleter &deleter, void *data) in New() argument
1961 …y->NewJSArrayBuffer(buffer, length, reinterpret_cast<ecmascript::DeleteEntryPoint>(deleter), data); in New()
2070 Deleter deleter, void *data, bool callNapi, size_t nativeBindingsize) in New() argument
2076 …current->SetFunctionExtraInfo(thread, reinterpret_cast<void *>(nativeFunc), deleter, data, nativeB… in New()
2082 Deleter deleter, void *data, bool callNapi, size_t nativeBindingsize) in New() argument
2088 current->SetFunctionExtraInfo(thread, nullptr, deleter, data, nativeBindingsize); in New()
2114 Deleter deleter, void *data, bool callNapi, size_t nativeBindingsize) in NewClassFunction() argument
2125 …current->SetFunctionExtraInfo(thread, reinterpret_cast<void *>(nativeFunc), deleter, data, nativeB… in NewClassFunction()
[all …]

12