blob: 7ad65d1e2e002b99e7fb2785d3fff74272fe4803 [file] [log] [blame]
//@ runDefault
if (platformSupportsSamplingProfiler() && $vm.isWasmSupported()) {
load("./sampling-profiler/samplingProfiler.js");
let buf = read("./sampling-profiler/loop.wasm", "binary");
let module = new WebAssembly.Module(buf);
let instance = new WebAssembly.Instance(module);
var wasmEntry = function() {
return instance.exports.loop(10000000);
};
runTest(wasmEntry, ["<?>.wasm-function[0]", "wasm-stub", "loop", "wasmEntry"]);
}