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

Function addPassiveSegmentWithExportedFuncs

deps/v8/test/mjsunit/wasm/table64-init.js:34–49  ·  view source on GitHub ↗
(builder)

Source from the content-addressed store, hash-verified

32}
33
34function addPassiveSegmentWithExportedFuncs(builder) {
35 let sig = builder.addType(kSig_i_v, kNoSuperType, false);
36 let f1 =
37 builder.addFunction('f1', sig).addBody([kExprI32Const, 11]).exportFunc();
38 let f2 =
39 builder.addFunction('f2', sig).addBody([kExprI32Const, 22]).exportFunc();
40 let f3 =
41 builder.addFunction('f3', sig).addBody([kExprI32Const, 33]).exportFunc();
42 let passive = builder.addPassiveElementSegment(
43 [
44 [kExprRefFunc, f1.index], [kExprRefFunc, f2.index],
45 [kExprRefFunc, f3.index]
46 ],
47 wasmRefType(0));
48 return passive;
49}
50
51(function TestTable64Init() {
52 print(arguments.callee.name);

Callers 1

table64-init.jsFile · 0.85

Calls 6

wasmRefTypeFunction · 0.70
addTypeMethod · 0.45
exportFuncMethod · 0.45
addBodyMethod · 0.45
addFunctionMethod · 0.45

Tested by

no test coverage detected