diff options
author | Michaël Zasso <targos@protonmail.com> | 2017-12-05 16:41:55 +0100 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2017-12-06 12:52:07 +0100 |
commit | 1854ba04e9a68f062beb299dd6e1479279b26363 (patch) | |
tree | d5b2df9b8c1deb6388f7a728fca8e1c98c779abe /deps/v8/test/mjsunit/regress/wasm | |
parent | b52c23b75f96e1c9d2c7b3a7e5619170d0a0d8e1 (diff) | |
download | android-node-v8-1854ba04e9a68f062beb299dd6e1479279b26363.tar.gz android-node-v8-1854ba04e9a68f062beb299dd6e1479279b26363.tar.bz2 android-node-v8-1854ba04e9a68f062beb299dd6e1479279b26363.zip |
deps: update V8 to 6.3.292.46
PR-URL: https://github.com/nodejs/node/pull/16271
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Diffstat (limited to 'deps/v8/test/mjsunit/regress/wasm')
5 files changed, 50 insertions, 2 deletions
diff --git a/deps/v8/test/mjsunit/regress/wasm/regress-775710.js b/deps/v8/test/mjsunit/regress/wasm/regress-775710.js new file mode 100644 index 0000000000..5e6fb8c50b --- /dev/null +++ b/deps/v8/test/mjsunit/regress/wasm/regress-775710.js @@ -0,0 +1,20 @@ +// 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. + +// Flags: --validate-asm --allow-natives-syntax + +const kMaxLocals = 50000; +const fn_template = '"use asm";\nfunction f() { LOCALS }\nreturn f;'; +for (var num_locals = kMaxLocals; num_locals < kMaxLocals + 2; ++num_locals) { + const fn_code = fn_template.replace( + 'LOCALS', + Array(num_locals) + .fill() + .map((_, idx) => 'var l' + idx + ' = 0;') + .join('\n')); + const asm_fn = new Function(fn_code); + const f = asm_fn(); + f(); + assertEquals(num_locals <= kMaxLocals, %IsAsmWasmCode(asm_fn)); +} diff --git a/deps/v8/test/mjsunit/regress/wasm/regression-648079.js b/deps/v8/test/mjsunit/regress/wasm/regression-648079.js index 2fa6b4db7a..acc6146ef5 100644 --- a/deps/v8/test/mjsunit/regress/wasm/regression-648079.js +++ b/deps/v8/test/mjsunit/regress/wasm/regression-648079.js @@ -8,7 +8,6 @@ load("test/mjsunit/wasm/wasm-constants.js"); load("test/mjsunit/wasm/wasm-module-builder.js"); // Non-standard opcodes. -let kWasmS128 = 0x7b; let kSig_s_v = makeSig([], [kWasmS128]); let kExprS128LoadMem = 0xc0; diff --git a/deps/v8/test/mjsunit/regress/wasm/regression-702460.js b/deps/v8/test/mjsunit/regress/wasm/regression-702460.js index 2d63440255..73c01e13a0 100644 --- a/deps/v8/test/mjsunit/regress/wasm/regression-702460.js +++ b/deps/v8/test/mjsunit/regress/wasm/regression-702460.js @@ -6,7 +6,6 @@ load("test/mjsunit/wasm/wasm-constants.js"); load("test/mjsunit/wasm/wasm-module-builder.js"); // Non-standard opcodes. -let kWasmS128 = 0x7b; let kSig_s_v = makeSig([], [kWasmS128]); let kExprS128LoadMem = 0xc0; diff --git a/deps/v8/test/mjsunit/regress/wasm/regression-763697.js b/deps/v8/test/mjsunit/regress/wasm/regression-763697.js new file mode 100644 index 0000000000..faf74e1cff --- /dev/null +++ b/deps/v8/test/mjsunit/regress/wasm/regression-763697.js @@ -0,0 +1,15 @@ +// 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. + +// Flags: --expose-wasm --no-experimental-wasm-simd + +load('test/mjsunit/wasm/wasm-constants.js'); +load('test/mjsunit/wasm/wasm-module-builder.js'); + +let builder = new WasmModuleBuilder(); + builder.addFunction("main", kSig_i_i) + .addBody([kExprGetLocal, 0]) + .addLocals({s128_count: 1}); + + assertFalse(WebAssembly.validate(builder.toBuffer())); diff --git a/deps/v8/test/mjsunit/regress/wasm/regression-769846.js b/deps/v8/test/mjsunit/regress/wasm/regression-769846.js new file mode 100644 index 0000000000..297da84f5f --- /dev/null +++ b/deps/v8/test/mjsunit/regress/wasm/regression-769846.js @@ -0,0 +1,15 @@ +// 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. + +function Module() { + "use asm"; + function div_(__v_6) { + __v_6 = __v_6 | 0; + } + return { f: div_} +}; +var __f_0 = Module().f; +__v_8 = [0]; +__v_8.__defineGetter__(0, function() { return __f_0(__v_8); }); +__v_8[0]; |