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(31, 31, false); |
| 11 builder.addFunction('test', kSig_i_iii) |
| 12 .addBodyWithEnd([ |
| 13 // body: |
| 14 kExprI64Const, 0x41, kExprI64Const, 0x41, kExprI64LtS, kExprI32Const, |
| 15 0x01, kExprI32StoreMem, 0x00, 0x41, kExprUnreachable, |
| 16 kExprEnd, // @60 |
| 17 ]) |
| 18 .exportFunc(); |
| 19 var module = builder.instantiate(); |
| 20 })(); |
OLD | NEW |