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

Function addMain

deps/v8/test/mjsunit/wasm/table-grow.js:43–51  ·  view source on GitHub ↗
(builder)

Source from the content-addressed store, hash-verified

41}
42
43function addMain(builder) {
44 builder.addImportedTable("imp", "table", 0, kMaxTableSize);
45 builder.addFunction("main", kSig_i_i)
46 .addBody([
47 kExprI32Const, 0,
48 kExprLocalGet, 0,
49 kExprCallIndirect, 0, kTableZero])
50 .exportAs("main");
51}
52
53let id = (() => { // identity exported function
54 let builder = new WasmModuleBuilder();

Callers 1

table-grow.jsFile · 0.85

Calls 4

addImportedTableMethod · 0.45
exportAsMethod · 0.45
addBodyMethod · 0.45
addFunctionMethod · 0.45

Tested by

no test coverage detected