H A D | js_native_api_v8.cc | 35 #define CHECK_TO_NUMBER(env, context, result, src) \ 36 CHECK_TO_TYPE((env), Number, (context), (result), (src), JSVM_NUMBER_EXPECTED) 42 #define CHECK_NEW_FROM_UTF8_LEN(env, result, str, len) \ 45 "Casting JSVM_AUTO_LENGTH to int must result in -1"); \ 54 (result) = str_maybe.ToLocalChecked(); \ 57 #define CHECK_NEW_FROM_UTF8(env, result, str) \ 58 CHECK_NEW_FROM_UTF8_LEN((env), (result), (str), JSVM_AUTO_LENGTH) 60 #define CHECK_NEW_STRING_ARGS(env, str, length, result) \ 64 CHECK_ARG((env), (result)); \ 264 JSVM_Value* result, in NewString() 261 NewString(JSVM_Env env, const CCharType* str, size_t length, JSVM_Value* result, StringMaker string_maker) NewString() argument 276 NewExternalString(JSVM_Env env, CharType* str, size_t length, JSVM_Finalize finalizeCallback, void* finalizeHint, JSVM_Value* result, bool* copied, CreateAPI create_api, StringMaker string_maker) NewExternalString() argument 384 V8NameFromPropertyDescriptor( JSVM_Env env, const JSVM_PropertyDescriptor* p, v8::Local<v8::Name>* result) V8NameFromPropertyDescriptor() argument 482 ConcludeDeferred(JSVM_Env env, JSVM_Deferred deferred, JSVM_Value result, bool is_resolved) ConcludeDeferred() argument 512 Unwrap(JSVM_Env env, JSVM_Value jsObject, void** result, UnwrapAction action) Unwrap() argument 621 JSVM_Value result = nullptr; InvokeCallback() local 648 NewFunction(JSVM_Env env, JSVM_Callback cb, v8::Local<v8::Function>* result) NewFunction() argument 662 NewTemplate( JSVM_Env env, JSVM_Callback cb, v8::Local<v8::FunctionTemplate>* result, v8::Local<v8::Signature> sig = v8::Local<v8::Signature>()) NewTemplate() argument 735 JSVM_Value result = nullptr; NameSetterInvokeCallback() local 767 JSVM_Value result = nullptr; NameGetterInvokeCallback() local 799 JSVM_Value result = nullptr; NameDeleterInvokeCallback() local 833 JSVM_Value result = nullptr; NameEnumeratorInvokeCallback() local 866 JSVM_Value result = nullptr; IndexSetterInvokeCallback() local 898 JSVM_Value result = nullptr; IndexGetterInvokeCallback() local 931 JSVM_Value result = nullptr; IndexDeleterInvokeCallback() local 965 JSVM_Value result = nullptr; IndexEnumeratorInvokeCallback() local 1056 Wrap(JSVM_Env env, JSVM_Value jsObject, void* nativeObject, JSVM_Finalize finalizeCb, void* finalizeHint, JSVM_Ref* result) Wrap() argument 1441 OH_JSVM_GetVM(JSVM_Env env, JSVM_VM* result) OH_JSVM_GetVM() argument 1448 OH_JSVM_CreateVM(const JSVM_CreateVMOptions* options, JSVM_VM* result) OH_JSVM_CreateVM() argument 1508 OH_JSVM_OpenVMScope(JSVM_VM vm, JSVM_VMScope* result) OH_JSVM_OpenVMScope() argument 1523 OH_JSVM_CreateEnv(JSVM_VM vm, size_t propertyCount, const JSVM_PropertyDescriptor* properties, JSVM_Env* result) OH_JSVM_CreateEnv() argument 1581 OH_JSVM_CreateEnvFromSnapshot(JSVM_VM vm, size_t index, JSVM_Env* result) OH_JSVM_CreateEnvFromSnapshot() argument 1608 OH_JSVM_OpenEnvScope(JSVM_Env env, JSVM_EnvScope* result) OH_JSVM_OpenEnvScope() argument 1622 OH_JSVM_CompileScript(JSVM_Env env, JSVM_Value script, const uint8_t *cachedData, size_t cachedDataLength, bool eagerCompile, bool* cacheRejected, JSVM_Script* result) OH_JSVM_CompileScript() argument 1688 auto result = script->Run(moduleContext).ToLocalChecked(); PrepareStackTraceCallback() local 1716 OH_JSVM_CompileScriptWithOrigin(JSVM_Env env, JSVM_Value script, const uint8_t* cachedData, size_t cachedDataLength, bool eagerCompile, bool* cacheRejected, JSVM_ScriptOrigin* origin, JSVM_Script* result) OH_JSVM_CompileScriptWithOrigin() argument 1842 OH_JSVM_CompileScriptWithOptions(JSVM_Env env, JSVM_Value script, size_t optionCount, JSVM_CompileOptions options[], JSVM_Script* result) OH_JSVM_CompileScriptWithOptions() argument 1898 OH_JSVM_RunScript(JSVM_Env env, JSVM_Script script, JSVM_Value* result) OH_JSVM_RunScript() argument 1913 OH_JSVM_JsonParse(JSVM_Env env, JSVM_Value json_string, JSVM_Value* result) OH_JSVM_JsonParse() argument 1928 OH_JSVM_JsonStringify(JSVM_Env env, JSVM_Value json_object, JSVM_Value* result) OH_JSVM_JsonStringify() argument 1976 OH_JSVM_GetVMInfo(JSVM_VMInfo* result) OH_JSVM_GetVMInfo() argument 1993 OH_JSVM_GetHeapStatistics(JSVM_VM vm, JSVM_HeapStatistics* result) OH_JSVM_GetHeapStatistics() argument 2014 OH_JSVM_StartCpuProfiler(JSVM_VM vm, JSVM_CpuProfiler* result) OH_JSVM_StartCpuProfiler() argument 2085 OH_JSVM_PumpMessageLoop(JSVM_VM vm, bool* result) OH_JSVM_PumpMessageLoop() argument 2125 OH_JSVM_GetLastErrorInfo( JSVM_Env env, const JSVM_ExtendedErrorInfo** result) OH_JSVM_GetLastErrorInfo() argument 2150 OH_JSVM_CreateFunction(JSVM_Env env, const char* utf8name, size_t length, JSVM_Callback cb, JSVM_Value* result) OH_JSVM_CreateFunction() argument 2177 OH_JSVM_CreateFunctionWithScript(JSVM_Env env, const char* funcName, size_t length, size_t argc, const JSVM_Value* argv, JSVM_Value script, JSVM_Value* result) OH_JSVM_CreateFunctionWithScript() argument 2224 OH_JSVM_DefineClass(JSVM_Env env, const char* utf8name, size_t length, JSVM_Callback constructor, size_t propertyCount, const JSVM_PropertyDescriptor* properties, JSVM_Value* result) OH_JSVM_DefineClass() argument 2326 OH_JSVM_GetPropertyNames(JSVM_Env env, JSVM_Value object, JSVM_Value* result) OH_JSVM_GetPropertyNames() argument 2339 OH_JSVM_GetAllPropertyNames(JSVM_Env env, JSVM_Value object, JSVM_KeyCollectionMode keyMode, JSVM_KeyFilter keyFilter, JSVM_KeyConversion keyConversion, JSVM_Value* result) OH_JSVM_GetAllPropertyNames() argument 2435 OH_JSVM_HasProperty(JSVM_Env env, JSVM_Value object, JSVM_Value key, bool* result) OH_JSVM_HasProperty() argument 2457 OH_JSVM_GetProperty(JSVM_Env env, JSVM_Value object, JSVM_Value key, JSVM_Value* result) OH_JSVM_GetProperty() argument 2480 OH_JSVM_DeleteProperty(JSVM_Env env, JSVM_Value object, JSVM_Value key, bool* result) OH_JSVM_DeleteProperty() argument 2500 OH_JSVM_HasOwnProperty(JSVM_Env env, JSVM_Value object, JSVM_Value key, bool* result) OH_JSVM_HasOwnProperty() argument 2544 OH_JSVM_HasNamedProperty(JSVM_Env env, JSVM_Value object, const char* utf8name, bool* result) OH_JSVM_HasNamedProperty() argument 2567 OH_JSVM_GetNamedProperty(JSVM_Env env, JSVM_Value object, const char* utf8name, JSVM_Value* result) OH_JSVM_GetNamedProperty() argument 2612 OH_JSVM_HasElement(JSVM_Env env, JSVM_Value object, uint32_t index, bool* result) OH_JSVM_HasElement() argument 2632 OH_JSVM_GetElement(JSVM_Env env, JSVM_Value object, uint32_t index, JSVM_Value* result) OH_JSVM_GetElement() argument 2652 OH_JSVM_DeleteElement(JSVM_Env env, JSVM_Value object, uint32_t index, bool* result) OH_JSVM_DeleteElement() argument 2794 OH_JSVM_IsArray(JSVM_Env env, JSVM_Value value, bool* result) OH_JSVM_IsArray() argument 2807 OH_JSVM_IsRegExp(JSVM_Env env, JSVM_Value value, bool* result) OH_JSVM_IsRegExp() argument 2820 OH_JSVM_GetArrayLength(JSVM_Env env, JSVM_Value value, uint32_t* result) OH_JSVM_GetArrayLength() argument 2836 OH_JSVM_StrictEquals(JSVM_Env env, JSVM_Value lhs, JSVM_Value rhs, bool* result) OH_JSVM_StrictEquals() argument 2852 OH_JSVM_Equals(JSVM_Env env, JSVM_Value lhs, JSVM_Value rhs, bool* result) OH_JSVM_Equals() argument 2869 OH_JSVM_GetPrototype(JSVM_Env env, JSVM_Value object, JSVM_Value* result) OH_JSVM_GetPrototype() argument 2885 OH_JSVM_CreateObject(JSVM_Env env, JSVM_Value* result) OH_JSVM_CreateObject() argument 2894 OH_JSVM_CreateArray(JSVM_Env env, JSVM_Value* result) OH_JSVM_CreateArray() argument 2903 OH_JSVM_CreateArrayWithLength(JSVM_Env env, size_t length, JSVM_Value* result) OH_JSVM_CreateArrayWithLength() argument 2915 OH_JSVM_CreateStringLatin1(JSVM_Env env, const char* str, size_t length, JSVM_Value* result) OH_JSVM_CreateStringLatin1() argument [all...] |