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 "use asm"; |
| 10 var builder = new WasmModuleBuilder(); |
| 11 builder.addMemory(0, 5, true); |
| 12 builder.addFunction("regression_710844", kSig_v_v) |
| 13 .addBody([ |
| 14 kExprI32Const, 0x03, |
| 15 kExprNop, |
| 16 kExprGrowMemory, 0x00, |
| 17 kExprI32Const, 0x13, |
| 18 kExprNop, |
| 19 kExprI32StoreMem8, 0x00, 0x10 |
| 20 ]).exportFunc(); |
| 21 let instance = builder.instantiate(); |
| 22 instance.exports.regression_710844(); |
| 23 })(); |
OLD | NEW |