Home
last modified time | relevance | path

Searched refs:cacheData (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.cpp221 const uint8_t *cacheData = NULL; in WebAssemblyDemo() local
223 status = OH_JSVM_CreateWasmCache(jsvm_env, wasmModule, &cacheData, &cacheLength); in WebAssemblyDemo()
225 CHECK(cacheData != NULL); in WebAssemblyDemo()
230 WriteBinaryFile(wasmCachePath.c_str(), cacheData, cacheLength); in WebAssemblyDemo()
231 status = OH_JSVM_ReleaseCache(jsvm_env, cacheData, JSVM_CACHE_TYPE_WASM); in WebAssemblyDemo()
292 const uint8_t *cacheData = nullptr; local
294 JSVMTEST_CALL(OH_JSVM_CreateWasmCache(env, wasmModule, &cacheData, &cacheSize));
295 CHECK(cacheData != nullptr);
531 const uint8_t *&cacheData, size_t &cacheSize) argument
557 JSVMTEST_CALL(OH_JSVM_CreateWasmCache(env, wasmModule, &cacheData, &cacheSize));
[all …]
/test/xts/acts/commonlibrary/ark_runtime/ark_runtime_jsvm_test/entry/src/main/cpp/napi/
Dnapi_test.cpp9171 const uint8_t *cacheData = 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()
9185 const uint8_t *cacheData = nullptr; in test_CreateWarmCache_wasmmodule_is_not_wasmmodule() local
9189 JSVM_Status status = OH_JSVM_CreateWasmCache(env, wasmModule, &cacheData, &cacheLength); in test_CreateWarmCache_wasmmodule_is_not_wasmmodule()