()
| 5 | d8.file.execute('test/mjsunit/wasm/wasm-module-builder.js'); |
| 6 | |
| 7 | function CreateDefaultBuilder() { |
| 8 | const builder = new WasmModuleBuilder(); |
| 9 | |
| 10 | const sig_index = kSig_i_dd; |
| 11 | builder.addImport('mod', 'fun', sig_index); |
| 12 | builder.addFunction('main', sig_index) |
| 13 | .addBody([ |
| 14 | kExprLocalGet, 0, // -- |
| 15 | kExprLocalGet, 1, // -- |
| 16 | kExprCallFunction, 0, // -- |
| 17 | ]) // -- |
| 18 | .exportFunc(); |
| 19 | return builder; |
| 20 | } |
| 21 | |
| 22 | function checkSuccessfulInstantiation(builder, ffi, handler) { |
| 23 | // Test synchronous instantiation. |
no test coverage detected