Home
last modified time | relevance | path

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

/test/xts/acts/commonlibrary/ark_runtime/ark_runtime_jsvm_test/entry/src/main/cpp/jsvmtest/unittests/
Dtest_wasm.cpp142 JSVM_Value wasmModule; in CompileWasmModule() local
143 …ALL(OH_JSVM_CompileWasmModule(jsvm_env, buffer.data(), buffer.size(), NULL, 0, NULL, &wasmModule)); in CompileWasmModule()
144 CHECK(jsvm::IsWasmModuleObject(wasmModule)); in CompileWasmModule()
145 return wasmModule; in CompileWasmModule()
153 static JSVM_Value InstantiateWasmModule(JSVM_Value wasmModule, JSVM_Value importedObject) in InstantiateWasmModule() argument
161 JSVM_Value argv[] = {wasmModule, importedObject}; in InstantiateWasmModule()
169 static void BatchCompileWasmFunctions(JSVM_Value wasmModule, size_t begin, size_t end) in BatchCompileWasmFunctions() argument
171 CHECK(jsvm::IsWasmModuleObject(wasmModule)); in BatchCompileWasmFunctions()
174 JSVMTEST_CALL(OH_JSVM_CompileWasmFunction(jsvm_env, wasmModule, i, level)); in BatchCompileWasmFunctions()
201 JSVM_Value wasmModule; in WebAssemblyDemo() local
[all …]
/test/xts/acts/commonlibrary/ark_runtime/ark_runtime_jsvm_test/entry/src/main/cpp/napi/
Dnapi_test.cpp9135 JSVM_Value wasmModule; in test_CompileWasmModule() local
9136 … JSVM_Status status = OH_JSVM_CompileWasmModule(env, nullptr, 0, nullptr, 0, nullptr, &wasmModule); in test_CompileWasmModule()
9173 JSVM_Value wasmModule = nullptr; in test_CreateWarmCache_wasmmodule_is_null() local
9174 JSVM_Status status = OH_JSVM_CreateWasmCache(env, wasmModule, &cacheData, &cacheLength); in test_CreateWarmCache_wasmmodule_is_null()
9187 JSVM_Value wasmModule; in test_CreateWarmCache_wasmmodule_is_not_wasmmodule() local
9188 OH_JSVM_CreateSet(env, &wasmModule); in test_CreateWarmCache_wasmmodule_is_not_wasmmodule()
9189 JSVM_Status status = OH_JSVM_CreateWasmCache(env, wasmModule, &cacheData, &cacheLength); in test_CreateWarmCache_wasmmodule_is_not_wasmmodule()