Home
last modified time | relevance | path

Searched refs:nativeObject (Results 1 – 9 of 9) sorted by relevance

/third_party/node/test/parallel/
Dtest-worker-message-port-transfer-native.js28 const nativeObject = new (internalBinding('js_stream').JSStream)();
31 port1.postMessage(nativeObject);
/third_party/node/test/js-native-api/8_passing_wrapped/
Dmyobject.cc14 napi_env env, void* nativeObject, void* /*finalize_hint*/) { in Destructor() argument
15 MyObject* obj = static_cast<MyObject*>(nativeObject); in Destructor()
Dmyobject.h9 static void Destructor(napi_env env, void* nativeObject, void* finalize_hint);
/third_party/node/test/js-native-api/7_factory_wrap/
Dmyobject.cc11 void* nativeObject, in Destructor() argument
14 MyObject* obj = static_cast<MyObject*>(nativeObject); in Destructor()
Dmyobject.h9 static void Destructor(napi_env env, void* nativeObject, void* finalize_hint);
/third_party/node/test/js-native-api/6_object_wrap/
D6_object_wrap.cc12 napi_env env, void* nativeObject, void* /*finalize_hint*/) { in Destructor() argument
13 MyObject* obj = static_cast<MyObject*>(nativeObject); in Destructor()
Dmyobject.h9 static void Destructor(napi_env env, void* nativeObject, void* finalize_hint);
/third_party/mindspore/patches/
D0027-js-buffer-leakage-bugfix.patch38 static void Finalize(napi_env env, void *nativeObject, void *finalize);
191 void MSTensorNapi::Finalize(napi_env env, void *nativeObject, void *finalize) {
D0008-add-js-api.patch642 + static void Finalize(napi_env env, void *nativeObject, void *finalize);
708 + static void Finalize(napi_env env, void *nativeObject, void *finalize);
1173 +void MSLiteModelNapi::Finalize(napi_env env, void *nativeObject, void *finalize) {
1176 + if (nativeObject != nullptr) {
1177 + // delete nativeObject
1178 + auto obj = static_cast<MSLiteModelNapi *>(nativeObject);
2234 +void MSTensorNapi::Finalize(napi_env env, void *nativeObject, void *finalize) {
2237 + if (nativeObject != nullptr) {
2238 + delete reinterpret_cast<MSTensorNapi *>(nativeObject);