| OLD | NEW |
| (Empty) |
| 1 // Copyright 2017 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 load("test/mjsunit/wasm/wasm-constants.js"); | |
| 6 load("test/mjsunit/wasm/wasm-module-builder.js"); | |
| 7 | |
| 8 (function() { | |
| 9 var builder = new WasmModuleBuilder(); | |
| 10 builder.addMemory(32, 32, false); | |
| 11 builder.addFunction("test", kSig_i_iii) | |
| 12 .addBodyWithEnd([ | |
| 13 // body: | |
| 14 kExprI64Const, 0xb4, 0x42, | |
| 15 kExprI64Const, 0x7a, | |
| 16 kExprI64Const, 0x42, | |
| 17 kExprI64Const, 0x7a, | |
| 18 kExprI64Ior, | |
| 19 kExprI64Ctz, | |
| 20 kExprI64Ctz, | |
| 21 kExprI64Shl, | |
| 22 kExprI64Mul, | |
| 23 kExprI64Const, 0x41, | |
| 24 kExprI64Ctz, | |
| 25 kExprI64Ctz, | |
| 26 kExprI64Shl, | |
| 27 kExprF32SConvertI64, | |
| 28 kExprI64Const, 0x42, | |
| 29 kExprI64Const, 0x02, | |
| 30 kExprI64Const, 0x7a, | |
| 31 kExprI64Mul, | |
| 32 kExprI64Const, 0x42, | |
| 33 kExprI64Ctz, | |
| 34 kExprI64Shl, | |
| 35 kExprI64Const, 0x7a, | |
| 36 kExprI64Ctz, | |
| 37 kExprI64Shl, | |
| 38 kExprI64Mul, | |
| 39 kExprI64Const, 0x41, | |
| 40 kExprI64Ctz, | |
| 41 kExprI64Ctz, | |
| 42 kExprI64Shl, | |
| 43 kExprF32SConvertI64, | |
| 44 kExprUnreachable, | |
| 45 kExprEnd, // @65 | |
| 46 ]) | |
| 47 .exportFunc(); | |
| 48 var module = new WebAssembly.Module(builder.toBuffer()); | |
| 49 })(); | |
| OLD | NEW |