Home
last modified time | relevance | path

Searched full:nativefunc (Results 1 – 25 of 28) sorted by relevance

12

/arkcompiler/ets_runtime/test/fuzztest/functionrefname_fuzzer/
Dfunctionrefname_fuzzer.cpp39 FunctionCallback nativeFunc = FuncRefConCallbackForTest; in FunctionRefSetNameFuzzTest() local
41 Local<FunctionRef> func = FunctionRef::New(vm, nativeFunc, deleter, (void *)(data + size)); in FunctionRefSetNameFuzzTest()
56 FunctionCallback nativeFunc = FuncRefConCallbackForTest; in FunctionRefGetNameFuzzTest() local
58 Local<FunctionRef> func = FunctionRef::New(vm, nativeFunc, deleter, (void *)(data + size)); in FunctionRefGetNameFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/objectref_fuzzer/
Dobjectref_fuzzer.cpp41 FunctionForRef nativeFunc = FuncRefNewCallbackForTest; in SetAccessorPropertyFuzzTest() local
42 Local<FunctionRef> getter = FunctionRef::New(vm, nativeFunc); in SetAccessorPropertyFuzzTest()
43 Local<FunctionRef> setter = FunctionRef::New(vm, nativeFunc); in SetAccessorPropertyFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/escapelocalscope_fuzzer/
Descapelocalscope_fuzzer.cpp38 FunctionCallback nativeFunc = FuncRefNewCFCallbackForTest; in EscapeLocalScopeFuzzTest() local
40 FunctionRef::NewClassFunction(vm, nativeFunc, deleter, (void *)(data + size)); in EscapeLocalScopeFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/functionrefisnative_fuzzer/
Dfunctionrefisnative_fuzzer.cpp38 FunctionCallback nativeFunc = FuncRefConCallbackForTest; in FunctionRefIsNativeFuzzTest() local
39 Local<FunctionRef> func = FunctionRef::New(vm, nativeFunc); in FunctionRefIsNativeFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/functionrefnewclassfunction_fuzzer/
Dfunctionrefnewclassfunction_fuzzer.cpp38 FunctionCallback nativeFunc = FuncRefNewCFCallbackForTest; in FunctionRefNewClassFunctionFuzzTest() local
40 FunctionRef::NewClassFunction(vm, nativeFunc, deleter, (void *)(data + size)); in FunctionRefNewClassFunctionFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/functionrefnew_fuzzer/
Dfunctionrefnew_fuzzer.cpp38 FunctionCallback nativeFunc = FuncRefNewCallbackForTest; in FunctionRefNewFuzzTest() local
40 FunctionRef::New(vm, nativeFunc, deleter, (void *)(data + size)); in FunctionRefNewFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/functionrefconstructor_fuzzer/
Dfunctionrefconstructor_fuzzer.cpp39 FunctionCallback nativeFunc = FuncRefConCallbackForTest; in FunctionRefConstructorFuzzTest() local
41 Local<FunctionRef> func = FunctionRef::New(vm, nativeFunc, deleter, (void *)(data + size)); in FunctionRefConstructorFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/functionrefgetfunctionprototype_fuzzer/
Dfunctionrefgetfunctionprototype_fuzzer.cpp39 FunctionCallback nativeFunc = FuncRefConCallbackForTest; in FunctionRefGetFunctionPrototypeFuzzTest() local
41 Local<FunctionRef> func = FunctionRef::New(vm, nativeFunc, deleter, (void *)(data + size)); in FunctionRefGetFunctionPrototypeFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/functionrefcall_fuzzer/
Dfunctionrefcall_fuzzer.cpp38 FunctionCallback nativeFunc = FuncRefCallCallbackForTest; 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.cpp42 FunctionCallback nativeFunc = RejectCallback; in JSValueRefIsPromiseValueFuzzTest() local
44 Local<FunctionRef> reject = FunctionRef::New(vm, nativeFunc, deleter, (void *)(data + size)); in JSValueRefIsPromiseValueFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/jsvaluereffoundationvalue_fuzzer/
Djsvaluereffoundationvalue_fuzzer.cpp116 FunctionCallback nativeFunc = FunCallback; 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.h849 …static Local<FunctionRef> New(EcmaVM *vm, FunctionCallback nativeFunc, NativePointerCallback delet…
852 FunctionCallback nativeFunc,
857 …static Local<FunctionRef> New(EcmaVM *vm, InternalFunctionCallback nativeFunc, NativePointerCallba…
860 InternalFunctionCallback nativeFunc,
866 InternalFunctionCallback nativeFunc,
871 …static Local<FunctionRef> NewClassFunction(EcmaVM *vm, FunctionCallback nativeFunc, NativePointerC…
874 InternalFunctionCallback nativeFunc,
880 InternalFunctionCallback nativeFunc,
886 InternalFunctionCallback nativeFunc,
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/src/
Dmpl2mpl_options.cpp235 maplecl::Option<std::string> nativeFuncPropertyFile({"--nativefunc-property-list"},
236 " --nativefunc-property-list"
238 … " \t--nativefunc-property-list=file\n",
/arkcompiler/ets_runtime/ecmascript/
Djs_function.h312 …void SetFunctionExtraInfo(JSThread *thread, void *nativeFunc, const NativePointerCallback &deleter,
314 …void SetSFunctionExtraInfo(JSThread *thread, void *nativeFunc, const NativePointerCallback &delete…
Dobject_factory.h237 …JSHandle<JSFunction> NewJSFunction(const JSHandle<GlobalEnv> &env, const void *nativeFunc = nullpt…
242 const void *nativeFunc = nullptr,
255 …nction> NewJSNativeErrorFunction(const JSHandle<GlobalEnv> &env, const void *nativeFunc = nullptr);
258 const void *nativeFunc = nullptr,
Djs_function.cpp958 void JSFunction::SetFunctionExtraInfo(JSThread *thread, void *nativeFunc, const NativePointerCallba… in SetFunctionExtraInfo() argument
965 …JSHandle<JSNativePointer> pointer = vm->GetFactory()->NewJSNativePointer(nativeFunc, deleter, data, in SetFunctionExtraInfo()
1001 …JSThread *thread, void *nativeFunc, const NativePointerCallback &deleter, void *data, size_t nativ… in SetSFunctionExtraInfo() argument
1008 vm->GetFactory()->NewSJSNativePointer(nativeFunc, deleter, data, false, nativeBindingsize); in SetSFunctionExtraInfo()
Dobject_factory.cpp1031 JSHandle<JSFunction> nativeFunc = JSHandle<JSFunction>::Cast(nativeConstructor); in NewJSError() local
1032 JSHandle<JSTaggedValue> nativePrototype(thread_, nativeFunc->GetFunctionPrototype()); in NewJSError()
1755 …le<JSFunction> ObjectFactory::NewJSFunction(const JSHandle<GlobalEnv> &env, const void *nativeFunc, in NewJSFunction() argument
1759 …JSHandle<Method> target = NewMethodForNativeFunction(nativeFunc, kind, builtinId, methodSpaceType); in NewJSFunction()
1782 const void *nativeFunc, in NewSFunction() argument
1787 JSHandle<Method> method = NewSMethodForNativeFunction(nativeFunc, kind, builtinId, spaceType); in NewSFunction()
2064 …on> ObjectFactory::NewJSNativeErrorFunction(const JSHandle<GlobalEnv> &env, const void *nativeFunc) in NewJSNativeErrorFunction() argument
2066 …JSHandle<Method> target = NewMethodForNativeFunction(nativeFunc, FunctionKind::BUILTIN_CONSTRUCTOR… in NewJSNativeErrorFunction()
2072 const void *nativeFunc, in NewSpecificTypedArrayFunction() argument
2075 …JSHandle<Method> target = NewMethodForNativeFunction(nativeFunc, FunctionKind::BUILTIN_CONSTRUCTOR… in NewSpecificTypedArrayFunction()
/arkcompiler/ets_runtime/ecmascript/napi/
Djsnapi.cpp450 … FunctionCallback nativeFunc = reinterpret_cast<FunctionCallback>(extraInfo->GetExternalPointer()); in RegisterCallback() local
462 result = nativeFunc(jsiRuntimeCallInfo); in RegisterCallback()
Djsnapi_expo.cpp3230 Local<FunctionRef> FunctionRef::New(EcmaVM *vm, FunctionCallback nativeFunc, in New() argument
3238 …current->SetFunctionExtraInfo(thread, reinterpret_cast<void *>(nativeFunc), deleter, data, nativeB… in New()
3243 Local<FunctionRef> FunctionRef::NewConcurrent(EcmaVM *vm, FunctionCallback nativeFunc, in NewConcurrent() argument
3251 current->SetFunctionExtraInfo(thread, reinterpret_cast<void *>(nativeFunc), deleter, in NewConcurrent()
3257 Local<FunctionRef> FunctionRef::New(EcmaVM *vm, InternalFunctionCallback nativeFunc, in New() argument
3264 JSHandle<JSFunction> current(factory->NewJSFunction(env, reinterpret_cast<void *>(nativeFunc))); in New()
3271 InternalFunctionCallback nativeFunc, in NewSendable() argument
3281 JSHandle<JSFunction> current(factory->NewSFunction(env, reinterpret_cast<void *>(nativeFunc))); in NewSendable()
3287 Local<FunctionRef> FunctionRef::NewConcurrent(EcmaVM *vm, InternalFunctionCallback nativeFunc, in NewConcurrent() argument
3294 JSHandle<JSFunction> current(factory->NewJSFunction(env, reinterpret_cast<void *>(nativeFunc))); in NewConcurrent()
[all …]
/arkcompiler/runtime_core/tests/cts-generator/cts-template/
Dinitobj.range.yaml605 - .function void R.nativeFunc(R a0) <native>
609 initobj.range R.nativeFunc, v1
612 - .function void R.nativeFunc(R a0, R a1) <native>
616 initobj.range R.nativeFunc, v1
870 - .function void R.nativeFunc(R a0) <native>
874 initobj.range R.nativeFunc, v1
877 - .function void R.nativeFunc(R a0, R a1) <native>
881 initobj.range R.nativeFunc, v1
Dinitobj.short.yaml520 - .function void R.nativeFunc(R a0) <native>
521 - initobj.short R.nativeFunc
694 - .function void R.nativeFunc(R a0) <native>
695 - initobj.short R.nativeFunc
Dinitobj.yaml587 - .function void R.nativeFunc(R a0) <native>
588 - initobj R.nativeFunc
761 - .function void R.nativeFunc(R a0) <native>
762 - initobj R.nativeFunc
/arkcompiler/runtime_core/static_core/tests/cts-generator/cts-template/
Dinitobj.range.yaml515 - .function void R.nativeFunc(R a0) <native>
519 initobj.range R.nativeFunc, v1
522 - .function void R.nativeFunc(R a0, R a1) <native>
526 initobj.range R.nativeFunc, v1
/arkcompiler/ets_runtime/ecmascript/napi/test/
Djsnapi_third_tests.cpp426 FunctionForRef nativeFunc = FuncRefNewCallbackForTest; in HWTEST_F_L0() local
427 Local<FunctionRef> getter = FunctionRef::New(vm_, nativeFunc); in HWTEST_F_L0()
428 Local<FunctionRef> setter = FunctionRef::New(vm_, nativeFunc); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/module/tests/
Decma_module_test.cpp1164 Local<JSValueRef> nativeFunc = SourceTextModule::GetRequireNativeModuleFunc(thread->GetEcmaVM(), in HWTEST_F_L0() local
1166 bool isFunc = nativeFunc->IsFunction(thread->GetEcmaVM()); in HWTEST_F_L0()
1176 Local<JSValueRef> nativeFunc = SourceTextModule::GetRequireNativeModuleFunc(thread->GetEcmaVM(), in HWTEST_F_L0() local
1178 bool isFunc = nativeFunc->IsFunction(thread->GetEcmaVM()); in HWTEST_F_L0()

12