727668298e
Increase the embedded vector size to 91 as that is the max size needed to print a s128 as a 32x4. - max value of uint32_t has 10 digits in decimal, 1 for a potential sign, 3 spaces in between 4 of them -> 3 + 4 * 11 = 47 - max value of uint32_t has 8 digits in hex, 3 spaces in between -> 3 + 4 * 8 = 35 - the prefix "v128:" -> 5 - " / " to separate the decimal and hex representation -> 3 - null byte 47 + 35 + 5 + 3 + 1 = 91 Bug: v8:9754 Change-Id: I153c30738fa8862b44fb5103cbe62ea0bcea9718 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1814885 Commit-Queue: Zhi An Ng <zhin@chromium.org> Reviewed-by: Deepti Gandluri <gdeepti@chromium.org> Reviewed-by: Andreas Haas <ahaas@chromium.org> Cr-Commit-Position: refs/heads/master@{#64256}
47 lines
1.4 KiB
JavaScript
47 lines
1.4 KiB
JavaScript
// Copyright 2017 the V8 project authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
load("test/mjsunit/wasm/wasm-module-builder.js");
|
|
|
|
(function() {
|
|
"use asm";
|
|
var builder = new WasmModuleBuilder();
|
|
builder.addFunction("regression_702460", kSig_i_v)
|
|
.addBody([
|
|
kExprI32Const, 0x52,
|
|
kExprI32Const, 0x41,
|
|
kExprI32Const, 0x3c,
|
|
kExprI32Const, 0xdc, 0x01,
|
|
kExprMemoryGrow, 0x00,
|
|
kExprMemoryGrow, 0x00,
|
|
kExprMemoryGrow, 0x00,
|
|
kExprLocalSet, 0x00,
|
|
kExprMemoryGrow, 0x00,
|
|
kExprMemoryGrow, 0x00,
|
|
kExprMemoryGrow, 0x00,
|
|
kExprMemoryGrow, 0x00,
|
|
kExprMemoryGrow, 0x00,
|
|
kExprMemoryGrow, 0x00,
|
|
kExprMemoryGrow, 0x00,
|
|
kExprMemoryGrow, 0x00,
|
|
kExprMemoryGrow, 0x00,
|
|
kExprMemoryGrow, 0x00,
|
|
kExprMemoryGrow, 0x00,
|
|
kExprMemoryGrow, 0x00,
|
|
kExprMemoryGrow, 0x00,
|
|
kExprMemoryGrow, 0x00,
|
|
kExprMemoryGrow, 0x00,
|
|
kExprMemoryGrow, 0x00,
|
|
kExprMemoryGrow, 0x00,
|
|
kExprMemoryGrow, 0x00,
|
|
kExprMemoryGrow, 0x00,
|
|
kExprMemoryGrow, 0x00,
|
|
kExprMemoryGrow, 0x00,
|
|
kExprS128LoadMem, 0x00, 0x40,
|
|
kExprUnreachable,
|
|
kExprMemoryGrow, 0x00
|
|
]).exportFunc();
|
|
assertThrows(() => builder.instantiate());
|
|
})();
|