OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // Flags: --expose-wasm |
| 6 |
| 7 load("test/mjsunit/wasm/wasm-constants.js"); |
| 8 load("test/mjsunit/wasm/wasm-module-builder.js"); |
| 9 |
| 10 var builder = new WasmModuleBuilder(); |
| 11 builder.addFunction('main', kSig_i_v) |
| 12 .addBody([kExprI32Const, 2, kExprI32Const, 0, kExprI32DivU]) |
| 13 .exportFunc(); |
| 14 var module = builder.instantiate(); |
| 15 module.exports.main(); |
OLD | NEW |