diff --git a/implementation-contributed/v8/mjsunit/compiler/number-abs.js b/implementation-contributed/v8/mjsunit/compiler/number-abs.js new file mode 100644 index 0000000000000000000000000000000000000000..9eb8ab5bb50d56ddbbbdc7e8e6ea3b2e2cbb2275 --- /dev/null +++ b/implementation-contributed/v8/mjsunit/compiler/number-abs.js @@ -0,0 +1,76 @@ +// Copyright 2018 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: --allow-natives-syntax --opt + +// Test that NumberAbs correctly deals with PositiveInteger \/ MinusZero +// and turns the -0 into a 0. +(function() { + function foo(x) { + x = Math.floor(x); + x = Math.max(x, -0); + return 1 / Math.abs(x); + } + + assertEquals(Infinity, foo(-0)); + assertEquals(Infinity, foo(-0)); + %OptimizeFunctionOnNextCall(foo); + assertEquals(Infinity, foo(-0)); +})(); + +// Test that NumberAbs properly passes the kIdentifyZeros truncation +// for Signed32 \/ MinusZero inputs. +(function() { + function foo(x) { + return Math.abs(x * -2); + } + + assertEquals(2, foo(-1)); + assertEquals(4, foo(-2)); + %OptimizeFunctionOnNextCall(foo); + assertEquals(2, foo(-1)); + assertEquals(4, foo(-2)); + assertOptimized(foo); + // Now `foo` should stay optimized even if `x * -2` would produce `-0`. + assertEquals(0, foo(0)); + assertOptimized(foo); +})(); + +// Test that NumberAbs properly passes the kIdentifyZeros truncation +// for Unsigned32 \/ MinusZero inputs. +(function() { + function foo(x) { + x = x | 0; + return Math.abs(Math.max(x * -2, 0)); + } + + assertEquals(2, foo(-1)); + assertEquals(4, foo(-2)); + %OptimizeFunctionOnNextCall(foo); + assertEquals(2, foo(-1)); + assertEquals(4, foo(-2)); + assertOptimized(foo); + // Now `foo` should stay optimized even if `x * -2` would produce `-0`. + assertEquals(0, foo(0)); + assertOptimized(foo); +})(); + +// Test that NumberAbs properly passes the kIdentifyZeros truncation +// for OrderedNumber inputs. +(function() { + function foo(x) { + x = x | 0; + return Math.abs(Math.min(x * -2, 2 ** 32)); + } + + assertEquals(2, foo(-1)); + assertEquals(4, foo(-2)); + %OptimizeFunctionOnNextCall(foo); + assertEquals(2, foo(-1)); + assertEquals(4, foo(-2)); + assertOptimized(foo); + // Now `foo` should stay optimized even if `x * -2` would produce `-0`. + assertEquals(0, foo(0)); + assertOptimized(foo); +})(); diff --git a/implementation-contributed/v8/mjsunit/compiler/number-modulus.js b/implementation-contributed/v8/mjsunit/compiler/number-modulus.js index cccb93b8033436fb000f974359bd875c9dadff2f..77d6773f4a0a00a1cf1a8457f0b90e77d4ba4aea 100644 --- a/implementation-contributed/v8/mjsunit/compiler/number-modulus.js +++ b/implementation-contributed/v8/mjsunit/compiler/number-modulus.js @@ -123,3 +123,34 @@ assertEquals(1, foo(4)); assertOptimized(foo); })(); + +// Test that NumberModulus works in the case where TurboFan +// can infer that the output is Signed32 \/ MinusZero, and +// there's a truncation on the result that identifies zeros +// (via the SpeculativeNumberEqual). +(function() { + // We need a separately polluted % with NumberOrOddball feedback. + function bar(x) { return x % 2; } + bar(undefined); // The % feedback is now NumberOrOddball. + + // Now we just use the gadget above on an `x` that is known + // to be in Signed32 range and compare it to 0, which passes + // a truncation that identifies zeros. + function foo(x) { + if (bar(x | 0) == 0) return 0; + return 1; + } + + assertEquals(0, foo(2)); + assertEquals(1, foo(1)); + %OptimizeFunctionOnNextCall(foo); + assertEquals(0, foo(2)); + assertEquals(1, foo(1)); + assertOptimized(foo); + + // Now `foo` should stay optimized even if `x % 2` would + // produce -0, aka when we pass a negative value for `x`. + assertEquals(0, foo(-2)); + assertEquals(1, foo(-1)); + assertOptimized(foo); +})(); diff --git a/implementation-contributed/v8/mjsunit/compiler/regress-7121.js b/implementation-contributed/v8/mjsunit/compiler/regress-7121.js index 98c1a1ac19f9fb8e0713bceec21c60b1d90da443..bdf3133bb8d89e5cfaef41782556439500180466 100644 --- a/implementation-contributed/v8/mjsunit/compiler/regress-7121.js +++ b/implementation-contributed/v8/mjsunit/compiler/regress-7121.js @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -// Flags: --allow-natives-syntax --harmony-bigint +// Flags: --allow-natives-syntax function foo() { %_ToLength(42n) } assertThrows(foo, TypeError); diff --git a/implementation-contributed/v8/mjsunit/compiler/typed-array-constructor.js b/implementation-contributed/v8/mjsunit/compiler/typed-array-constructor.js index a785eadf37b62f698247c2ae71194eb5b28f0c14..07d6a7ca4e64682f598428ff089fa448d4f0b562 100644 --- a/implementation-contributed/v8/mjsunit/compiler/typed-array-constructor.js +++ b/implementation-contributed/v8/mjsunit/compiler/typed-array-constructor.js @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -// Flags: --allow-natives-syntax --harmony-bigint +// Flags: --allow-natives-syntax const limit = %MaxSmi() + 1; diff --git a/implementation-contributed/v8/mjsunit/es6/proxy-function-tostring.js b/implementation-contributed/v8/mjsunit/es6/proxy-function-tostring.js index d859822df01d0ff4c386f62948d328cad98935eb..e151bf65b1374a7bb572e1e10237f34d0a1dcc52 100644 --- a/implementation-contributed/v8/mjsunit/es6/proxy-function-tostring.js +++ b/implementation-contributed/v8/mjsunit/es6/proxy-function-tostring.js @@ -1,7 +1,6 @@ // Copyright 2018 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: --noharmony-function-tostring -assertThrows(() => new Proxy(function() {}, {}).toString(), TypeError); +assertEquals(new Proxy(function() {}, {}).toString(), + 'function () { [native code] }'); diff --git a/implementation-contributed/v8/mjsunit/harmony/bigint/add.js b/implementation-contributed/v8/mjsunit/harmony/bigint/add.js index 5e986b3726277364816b576620e2c5068f7743ef..791db6a3b984a329ee625c6de06db10ba986bccb 100644 --- a/implementation-contributed/v8/mjsunit/harmony/bigint/add.js +++ b/implementation-contributed/v8/mjsunit/harmony/bigint/add.js @@ -4,8 +4,6 @@ // Generated by tools/bigint-tester.py. -// Flags: --harmony-bigint - var data = [{ a: -0xc4043e2c4cc49e4d6870103ce7c2ff2d512bf4b1b67553ba410db514ee0af8888ad6cfn, b: 0x2aae86de73ff479133a657a40d26e8dcf192019c7421836615ec34978bad93n, diff --git a/implementation-contributed/v8/mjsunit/harmony/bigint/and.js b/implementation-contributed/v8/mjsunit/harmony/bigint/and.js index 7a68f8b3dc1e13a8e047fded2e2b7ea6c8b7b41b..a90ec22f5110a08ceecaa5d51042d5d132fa0811 100644 --- a/implementation-contributed/v8/mjsunit/harmony/bigint/and.js +++ b/implementation-contributed/v8/mjsunit/harmony/bigint/and.js @@ -4,8 +4,6 @@ // Generated by tools/bigint-tester.py. -// Flags: --harmony-bigint - var data = [{ a: 0x9252b94f220ded0c18706998886397699c5a25527575dn, b: -0x286817ba2e8fd8n, diff --git a/implementation-contributed/v8/mjsunit/harmony/bigint/as-int-n.js b/implementation-contributed/v8/mjsunit/harmony/bigint/as-int-n.js index 51b5073d2408c30d77be800b6a7efabed5b569be..154a0929e51d2eff8669eceb112184ddca47a89e 100644 --- a/implementation-contributed/v8/mjsunit/harmony/bigint/as-int-n.js +++ b/implementation-contributed/v8/mjsunit/harmony/bigint/as-int-n.js @@ -2,8 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -// Flags: --harmony-bigint - // BigInt.asIntN { assertEquals(2, BigInt.asIntN.length); diff --git a/implementation-contributed/v8/mjsunit/harmony/bigint/basics.js b/implementation-contributed/v8/mjsunit/harmony/bigint/basics.js index b6318d5324646ee3d8b805f8d0de7d98539faa26..0368c69b52109c5e126a3369aec5b0b7969687dc 100644 --- a/implementation-contributed/v8/mjsunit/harmony/bigint/basics.js +++ b/implementation-contributed/v8/mjsunit/harmony/bigint/basics.js @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -// Flags: --allow-natives-syntax --harmony-bigint +// Flags: --allow-natives-syntax 'use strict' diff --git a/implementation-contributed/v8/mjsunit/harmony/bigint/comparisons.js b/implementation-contributed/v8/mjsunit/harmony/bigint/comparisons.js index 513131555ac25b26e24b07200cca3e70106a7fa6..abc7a8082ae809096b184fb91055e6abb8062a6c 100644 --- a/implementation-contributed/v8/mjsunit/harmony/bigint/comparisons.js +++ b/implementation-contributed/v8/mjsunit/harmony/bigint/comparisons.js @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -// Flags: --allow-natives-syntax --harmony-bigint +// Flags: --allow-natives-syntax 'use strict' diff --git a/implementation-contributed/v8/mjsunit/harmony/bigint/dataview.js b/implementation-contributed/v8/mjsunit/harmony/bigint/dataview.js index 5ead64990971f195f83b2a24b7173d70a75600fa..bad56d2b699c7b4ed7ef857848726591c44ebc6a 100644 --- a/implementation-contributed/v8/mjsunit/harmony/bigint/dataview.js +++ b/implementation-contributed/v8/mjsunit/harmony/bigint/dataview.js @@ -2,8 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -// Flags: --harmony-bigint - var buffer = new ArrayBuffer(64); var dataview = new DataView(buffer, 8, 24); var bytes = new Uint8Array(buffer); diff --git a/implementation-contributed/v8/mjsunit/harmony/bigint/dec.js b/implementation-contributed/v8/mjsunit/harmony/bigint/dec.js index ddb0431cba74978ac6213ee2f03bc70ccfd10234..36ca2193dec0c6e5237615c3a87bce663ef8288a 100644 --- a/implementation-contributed/v8/mjsunit/harmony/bigint/dec.js +++ b/implementation-contributed/v8/mjsunit/harmony/bigint/dec.js @@ -4,8 +4,6 @@ // Generated by tools/bigint-tester.py. -// Flags: --harmony-bigint - var data = [{ a: 0x26ffcdbd233a53e7ca4612f2b02e1f2c1d885c3177e7n, r: 0x26ffcdbd233a53e7ca4612f2b02e1f2c1d885c3177e6n diff --git a/implementation-contributed/v8/mjsunit/harmony/bigint/div.js b/implementation-contributed/v8/mjsunit/harmony/bigint/div.js index 1eeea1184ff84c10b39b76042e663fdb0d0b380e..8b167140defe93c5b3dadabd57eb0d91558c89c1 100644 --- a/implementation-contributed/v8/mjsunit/harmony/bigint/div.js +++ b/implementation-contributed/v8/mjsunit/harmony/bigint/div.js @@ -4,8 +4,6 @@ // Generated by tools/bigint-tester.py. -// Flags: --harmony-bigint - var data = [{ a: -0x1e0f357314bac34227333c0c2086430dae88cb538f161174888591n, b: 0x390n, diff --git a/implementation-contributed/v8/mjsunit/harmony/bigint/exp.js b/implementation-contributed/v8/mjsunit/harmony/bigint/exp.js index 54d5849373f5006049672b7c9be62891a33805e6..7fbc2dc402fb84f73e4d6d1e7df9c8ca448c0db6 100644 --- a/implementation-contributed/v8/mjsunit/harmony/bigint/exp.js +++ b/implementation-contributed/v8/mjsunit/harmony/bigint/exp.js @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -// Flags: --allow-natives-syntax --harmony-bigint +// Flags: --allow-natives-syntax assertEquals(1n, (-1n) ** 0n); assertEquals(-1n, (-1n) ** 1n); diff --git a/implementation-contributed/v8/mjsunit/harmony/bigint/inc.js b/implementation-contributed/v8/mjsunit/harmony/bigint/inc.js index 4ead89e1bf4e9152cd00933bfcb4d3aeb4c82690..7842600393519db61de1a110866402623b3e475e 100644 --- a/implementation-contributed/v8/mjsunit/harmony/bigint/inc.js +++ b/implementation-contributed/v8/mjsunit/harmony/bigint/inc.js @@ -4,8 +4,6 @@ // Generated by tools/bigint-tester.py. -// Flags: --harmony-bigint - var data = [{ a: 0xb3df90n, r: 0xb3df91n diff --git a/implementation-contributed/v8/mjsunit/harmony/bigint/json.js b/implementation-contributed/v8/mjsunit/harmony/bigint/json.js index eb0eefc4bb7d2988fae734cecfa3cc3ae841a994..cf392234c5c960ce6382dc663b56baa890c151ad 100644 --- a/implementation-contributed/v8/mjsunit/harmony/bigint/json.js +++ b/implementation-contributed/v8/mjsunit/harmony/bigint/json.js @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -// Flags: --allow-natives-syntax --harmony-bigint +// Flags: --allow-natives-syntax 'use strict' diff --git a/implementation-contributed/v8/mjsunit/harmony/bigint/mod.js b/implementation-contributed/v8/mjsunit/harmony/bigint/mod.js index c8cc7fa4fd2a25effd1960fcd10eb0130e72802b..01f64ad4ca9c706b6406286db8737f0b350c6ef0 100644 --- a/implementation-contributed/v8/mjsunit/harmony/bigint/mod.js +++ b/implementation-contributed/v8/mjsunit/harmony/bigint/mod.js @@ -4,8 +4,6 @@ // Generated by tools/bigint-tester.py. -// Flags: --harmony-bigint - var data = [{ a: 0xaed3c714bb42a73d708bcf1dc9a9deebadc913ef42bac6a6178a60n, b: -0xf3d6bd1c059b79n, diff --git a/implementation-contributed/v8/mjsunit/harmony/bigint/mul.js b/implementation-contributed/v8/mjsunit/harmony/bigint/mul.js index c6a9ae6148918c05f08a25a7b96a80d619f1b160..77c3a1c9bbfcabee669abba1519abc4cbbfe4cf0 100644 --- a/implementation-contributed/v8/mjsunit/harmony/bigint/mul.js +++ b/implementation-contributed/v8/mjsunit/harmony/bigint/mul.js @@ -4,8 +4,6 @@ // Generated by tools/bigint-tester.py. -// Flags: --harmony-bigint - var data = [{ a: 0x2bf1f236c2df29f7c99be052dfe1b69ae158d777fea487af889f6259f472c0n, b: -0xae0090dfn, diff --git a/implementation-contributed/v8/mjsunit/harmony/bigint/neg.js b/implementation-contributed/v8/mjsunit/harmony/bigint/neg.js index 2fedf297a52483abe3fb00b61b8c457905403fea..15b2fb4ee0e379398d7b364e22b93d83092d0988 100644 --- a/implementation-contributed/v8/mjsunit/harmony/bigint/neg.js +++ b/implementation-contributed/v8/mjsunit/harmony/bigint/neg.js @@ -4,8 +4,6 @@ // Generated by tools/bigint-tester.py. -// Flags: --harmony-bigint - var data = [{ a: 0xcn, r: -0xcn diff --git a/implementation-contributed/v8/mjsunit/harmony/bigint/not.js b/implementation-contributed/v8/mjsunit/harmony/bigint/not.js index 6b4b2eb713d146d70f0aa4427637ec9f4c5e87c3..27b6a78ba6fd502029b0b3fe80a8ca7769dff4ed 100644 --- a/implementation-contributed/v8/mjsunit/harmony/bigint/not.js +++ b/implementation-contributed/v8/mjsunit/harmony/bigint/not.js @@ -4,8 +4,6 @@ // Generated by tools/bigint-tester.py. -// Flags: --harmony-bigint - var data = [{ a: 0x9f0305cd75e4n, r: -0x9f0305cd75e5n diff --git a/implementation-contributed/v8/mjsunit/harmony/bigint/or.js b/implementation-contributed/v8/mjsunit/harmony/bigint/or.js index c378e141cd4cd833c489f6e8311e7678fe125aeb..3203258c21bc0d3356d2233203dbe92b941493fe 100644 --- a/implementation-contributed/v8/mjsunit/harmony/bigint/or.js +++ b/implementation-contributed/v8/mjsunit/harmony/bigint/or.js @@ -4,8 +4,6 @@ // Generated by tools/bigint-tester.py. -// Flags: --harmony-bigint - var data = [{ a: 0x77a87n, b: 0xde08e7433fb9584911b8cb4bc7eed802299b4489fc635974d063847da4e8b461df5dn, diff --git a/implementation-contributed/v8/mjsunit/harmony/bigint/regress-tonumbercode.js b/implementation-contributed/v8/mjsunit/harmony/bigint/regress-tonumbercode.js index 4dedf4d27c76fdf694d98b18ac7c6679e9edd157..3bf0148c95f9ba71c929b74fa70eb7f658aac628 100644 --- a/implementation-contributed/v8/mjsunit/harmony/bigint/regress-tonumbercode.js +++ b/implementation-contributed/v8/mjsunit/harmony/bigint/regress-tonumbercode.js @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -// Flags: --allow-natives-syntax --harmony-bigint +// Flags: --allow-natives-syntax function f(x, b) { if (b) return Math.trunc(+(x)) diff --git a/implementation-contributed/v8/mjsunit/harmony/bigint/regressions.js b/implementation-contributed/v8/mjsunit/harmony/bigint/regressions.js index c1df45a1b1702f7f80d06bd49df750b7ce4e2d51..8e13622eab7c18d482ea6a1d06ec56fcbbf5126e 100644 --- a/implementation-contributed/v8/mjsunit/harmony/bigint/regressions.js +++ b/implementation-contributed/v8/mjsunit/harmony/bigint/regressions.js @@ -2,8 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -// Flags: --harmony-bigint - var a = 5n; var b = a / -1n; assertEquals(5n, a); diff --git a/implementation-contributed/v8/mjsunit/harmony/bigint/sar.js b/implementation-contributed/v8/mjsunit/harmony/bigint/sar.js index f66115dcb6c9a78b126d396a460a84f549d13f99..66d2f2d268157b710f5577091476eab38197c7c8 100644 --- a/implementation-contributed/v8/mjsunit/harmony/bigint/sar.js +++ b/implementation-contributed/v8/mjsunit/harmony/bigint/sar.js @@ -4,8 +4,6 @@ // Generated by tools/bigint-tester.py. -// Flags: --harmony-bigint - var data = [{ a: 0x211a34fn, b: 0xa6n, diff --git a/implementation-contributed/v8/mjsunit/harmony/bigint/shl.js b/implementation-contributed/v8/mjsunit/harmony/bigint/shl.js index bedd785b544630ab94101ed783851d090380ecf3..0e7b402bc17288d32ab0784ea9878de22b389ced 100644 --- a/implementation-contributed/v8/mjsunit/harmony/bigint/shl.js +++ b/implementation-contributed/v8/mjsunit/harmony/bigint/shl.js @@ -4,8 +4,6 @@ // Generated by tools/bigint-tester.py. -// Flags: --harmony-bigint - var data = [{ a: -0xe813d76adc0a177778c0c232c595e8572b783210f4a7009d7c1787n, b: 0x9en, diff --git a/implementation-contributed/v8/mjsunit/harmony/bigint/sub.js b/implementation-contributed/v8/mjsunit/harmony/bigint/sub.js index a1ff9b4bb334c5a4b23951c7c8b7501113bb42e2..21613f768a75124c85c77b7958c9d584e59d7c11 100644 --- a/implementation-contributed/v8/mjsunit/harmony/bigint/sub.js +++ b/implementation-contributed/v8/mjsunit/harmony/bigint/sub.js @@ -4,8 +4,6 @@ // Generated by tools/bigint-tester.py. -// Flags: --harmony-bigint - var data = [{ a: 0xc4fd438551d58edn, b: 0x91b42ee55a50d974an, diff --git a/implementation-contributed/v8/mjsunit/harmony/bigint/tonumber.js b/implementation-contributed/v8/mjsunit/harmony/bigint/tonumber.js index d59e8429b891c8c51ed01c4288359168e9c35334..a6f7d13b7eb08083572e980ae9a59fc1a022983c 100644 --- a/implementation-contributed/v8/mjsunit/harmony/bigint/tonumber.js +++ b/implementation-contributed/v8/mjsunit/harmony/bigint/tonumber.js @@ -2,8 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -// Flags: --harmony-bigint - function Check(bigint, number_string) { var number = Number(bigint); if (number_string.substring(0, 2) === "0x") { diff --git a/implementation-contributed/v8/mjsunit/harmony/bigint/turbo.js b/implementation-contributed/v8/mjsunit/harmony/bigint/turbo.js index 4ce4880f3de5a0cd658c1ebf5a230be14b80ff0d..d0f00050c896ef9dd9843ea2ea3834671bd03958 100644 --- a/implementation-contributed/v8/mjsunit/harmony/bigint/turbo.js +++ b/implementation-contributed/v8/mjsunit/harmony/bigint/turbo.js @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -// Flags: --allow-natives-syntax --harmony-bigint +// Flags: --allow-natives-syntax 'use strict' diff --git a/implementation-contributed/v8/mjsunit/harmony/bigint/typedarray.js b/implementation-contributed/v8/mjsunit/harmony/bigint/typedarray.js index 29713b8a204d2a1b5b67c31ef6a29b6f1456e4ba..e530441dd455cbb7424c42faa33e178324ee58f6 100644 --- a/implementation-contributed/v8/mjsunit/harmony/bigint/typedarray.js +++ b/implementation-contributed/v8/mjsunit/harmony/bigint/typedarray.js @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -// Flags: --harmony-bigint --allow-natives-syntax +// Flags: --allow-natives-syntax var intarray = new BigInt64Array(8); var uintarray = new BigUint64Array(8); diff --git a/implementation-contributed/v8/mjsunit/harmony/bigint/xor.js b/implementation-contributed/v8/mjsunit/harmony/bigint/xor.js index a934825bd979eb080c9abe3dcfd644ae0e800150..cf32b656033e3a570a0ee0d9e7dd2520473a3f61 100644 --- a/implementation-contributed/v8/mjsunit/harmony/bigint/xor.js +++ b/implementation-contributed/v8/mjsunit/harmony/bigint/xor.js @@ -4,8 +4,6 @@ // Generated by tools/bigint-tester.py. -// Flags: --harmony-bigint - var data = [{ a: -0x46505bec40d461c595b5e4be178b7d00n, b: -0x9170e5437d4e3ec7c0971e2c6d3bbbd2929ff108ea4ee64f7a91aa367fn, diff --git a/implementation-contributed/v8/mjsunit/harmony/bigintarray-keyedstore-tobigint.js b/implementation-contributed/v8/mjsunit/harmony/bigintarray-keyedstore-tobigint.js index 29b44472c9b0b0bbfbdcae24a6a2d4e649e66125..18ba0ff1718a64abaa658fee3ba42af157735594 100644 --- a/implementation-contributed/v8/mjsunit/harmony/bigintarray-keyedstore-tobigint.js +++ b/implementation-contributed/v8/mjsunit/harmony/bigintarray-keyedstore-tobigint.js @@ -2,8 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -// Flags: --harmony-bigint - let TypedArrayConstructors = [ BigUint64Array, BigInt64Array, diff --git a/implementation-contributed/v8/mjsunit/harmony/function-tostring.js b/implementation-contributed/v8/mjsunit/harmony/function-tostring.js index 4a7e93cd3bb7de6f108b2e65d1e6b7f56819f14a..2af14f16cf488c5a92c2a6070a32aa379e6371ba 100644 --- a/implementation-contributed/v8/mjsunit/harmony/function-tostring.js +++ b/implementation-contributed/v8/mjsunit/harmony/function-tostring.js @@ -2,8 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -// Flags: --harmony-function-tostring - var prefix = "/*before*/"; var suffix = "/*after*/"; diff --git a/implementation-contributed/v8/mjsunit/regress/regress-707066.js b/implementation-contributed/v8/mjsunit/regress/regress-707066.js index b33b585ebdbd05fd721e1be9878967736faab301..b5d70c2e6b1f7cda42734638a6c4e344a2c4a6a0 100644 --- a/implementation-contributed/v8/mjsunit/regress/regress-707066.js +++ b/implementation-contributed/v8/mjsunit/regress/regress-707066.js @@ -2,8 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // -// Flags: --harmony-function-tostring - // There was a bug in CreateDynamicFunction where a stack overflow // situation caused an assertion failure. diff --git a/implementation-contributed/v8/mjsunit/string-trim.js b/implementation-contributed/v8/mjsunit/string-trim.js index 201a34f1c9660704592807f5aff0b3c8f77358fc..587e7db5dbea9478726b829981e3ae8db4e93925 100644 --- a/implementation-contributed/v8/mjsunit/string-trim.js +++ b/implementation-contributed/v8/mjsunit/string-trim.js @@ -2,8 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -// Flags: --harmony-string-trimming - assertEquals('trim', String.prototype.trim.name); assertEquals('trimStart', String.prototype.trimStart.name); assertEquals('trimStart', String.prototype.trimLeft.name); diff --git a/implementation-contributed/v8/test262/testcfg.py b/implementation-contributed/v8/test262/testcfg.py index bb3114e64f9faf7879bdb92b2025e07fbdffac91..9c3f3404e124d7cc649970a4fed5482026223a3e 100644 --- a/implementation-contributed/v8/test262/testcfg.py +++ b/implementation-contributed/v8/test262/testcfg.py @@ -42,7 +42,6 @@ from testrunner.outproc import test262 # TODO(littledan): move the flag mapping into the status file FEATURE_FLAGS = { - 'BigInt': '--harmony-bigint', 'class-fields-public': '--harmony-public-fields', 'class-static-fields-public': '--harmony-class-fields', 'Array.prototype.flat': '--harmony-array-flat',