(builder)
| 32 | } |
| 33 | |
| 34 | function 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); |
no test coverage detected