MCPcopy Create free account
hub / github.com/nodejs/node / verifyTableFuncs

Function verifyTableFuncs

deps/v8/test/mjsunit/wasm/table-grow.js:220–229  ·  view source on GitHub ↗
(base)

Source from the content-addressed store, hash-verified

218 let module1 = new WebAssembly.Module(builder1.toBuffer());
219
220 function verifyTableFuncs(base) {
221 print(" base = " + base);
222 checkTableFunc(0, 5, 1, 4);
223 checkTableFunc(1, 9, 8);
224 checkTableFunc(2, 10, 0);
225
226 checkTableFunc(base+0, 20, 10, 2); // mul
227 checkTableFunc(base+1, 12, 10, 2); // add
228 checkTableFunc(base+2, 8, 10, 2); // sub
229 }
230
231 for (let i = 3; i < 10; i++) {
232 new WebAssembly.Instance(module1, {q: {base: i, table: table}});

Callers 1

table-grow.jsFile · 0.85

Calls 2

checkTableFuncFunction · 0.85
printFunction · 0.50

Tested by

no test coverage detected