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.addFunction("regression_702460", kSig_i_v) |
| 12 .addBody([ |
| 13 kExprI32Const, 0x52, |
| 14 kExprI32Const, 0x41, |
| 15 kExprI32Const, 0x3c, |
| 16 kExprI32Const, 0xdc, 0x01, |
| 17 kExprGrowMemory, 0x00, |
| 18 kExprGrowMemory, 0x00, |
| 19 kExprGrowMemory, 0x00, |
| 20 kExprSetLocal, 0x00, |
| 21 kExprGrowMemory, 0x00, |
| 22 kExprGrowMemory, 0x00, |
| 23 kExprGrowMemory, 0x00, |
| 24 kExprGrowMemory, 0x00, |
| 25 kExprGrowMemory, 0x00, |
| 26 kExprGrowMemory, 0x00, |
| 27 kExprGrowMemory, 0x00, |
| 28 kExprGrowMemory, 0x00, |
| 29 kExprGrowMemory, 0x00, |
| 30 kExprGrowMemory, 0x00, |
| 31 kExprGrowMemory, 0x00, |
| 32 kExprGrowMemory, 0x00, |
| 33 kExprGrowMemory, 0x00, |
| 34 kExprGrowMemory, 0x00, |
| 35 kExprGrowMemory, 0x00, |
| 36 kExprGrowMemory, 0x00, |
| 37 kExprGrowMemory, 0x00, |
| 38 kExprGrowMemory, 0x00, |
| 39 kExprGrowMemory, 0x00, |
| 40 kExprGrowMemory, 0x00, |
| 41 kExprGrowMemory, 0x00, |
| 42 kExprS128LoadMem, 0x00, 0x40, |
| 43 kExprUnreachable, |
| 44 kExprGrowMemory, 0x00 |
| 45 ]).exportFunc(); |
| 46 assertThrows(() => builder.instantiate()); |
| 47 })(); |
OLD | NEW |