Reviewers: Dmitry Lomov (chromium),
Description:
[harmony] Move some regression tests to the right place
[email protected]
BUG=
Please review this at https://codereview.chromium.org/1027693003/
Base URL: https://chromium.googlesource.com/v8/v8.git@master
Affected files (+-3, -98 lines):
A + test/mjsunit/es6/regress/regress-347906.js
A + test/mjsunit/es6/regress/regress-411237.js
A + test/mjsunit/harmony/regress/regress-3501.js
A + test/mjsunit/harmony/regress/regress-crbug-448730.js
A + test/mjsunit/harmony/regress/regress-crbug-451770.js
A + test/mjsunit/harmony/regress/regress-crbug-465671.js
A + test/mjsunit/harmony/regress/regress-crbug-465671-null.js
D test/mjsunit/regress/regress-347906.js
D test/mjsunit/regress/regress-3501.js
D test/mjsunit/regress/regress-411237.js
D test/mjsunit/regress/regress-crbug-448730.js
D test/mjsunit/regress/regress-crbug-451770.js
D test/mjsunit/regress/regress-crbug-465671.js
D test/mjsunit/regress/regress-crbug-465671-null.js
Index: test/mjsunit/regress/regress-347906.js
diff --git a/test/mjsunit/regress/regress-347906.js
b/test/mjsunit/regress/regress-347906.js
deleted file mode 100644
index
c751618928c93015679087ee1b500637657aa341..0000000000000000000000000000000000000000
--- a/test/mjsunit/regress/regress-347906.js
+++ /dev/null
@@ -1,14 +0,0 @@
-// Copyright 2014 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 --harmony
-
-function foo() {
- return Math.clz32(12.34);
-}
-
-foo();
-foo();
-%OptimizeFunctionOnNextCall(foo);
-foo();
Index: test/mjsunit/regress/regress-3501.js
diff --git a/test/mjsunit/regress/regress-3501.js
b/test/mjsunit/regress/regress-3501.js
deleted file mode 100644
index
4b449e458f545b5758a8a3ca579be1913becc29a..0000000000000000000000000000000000000000
--- a/test/mjsunit/regress/regress-3501.js
+++ /dev/null
@@ -1,11 +0,0 @@
-// Copyright 2014 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: --harmony-arrow-functions
-
-// See: http://code.google.com/p/v8/issues/detail?id=3501
-
-"use strict";
-let lift = f => (x, k) => k (f (x));
-lift(isNaN);
Index: test/mjsunit/regress/regress-411237.js
diff --git a/test/mjsunit/regress/regress-411237.js
b/test/mjsunit/regress/regress-411237.js
deleted file mode 100644
index
8b75ba3015612ad9699f468862f79cde1fb77731..0000000000000000000000000000000000000000
--- a/test/mjsunit/regress/regress-411237.js
+++ /dev/null
@@ -1,15 +0,0 @@
-// Copyright 2014 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 --harmony
-
-try {
- %OptimizeFunctionOnNextCall(print);
-} catch(e) { }
-
-try {
- function* f() {
- }
- %OptimizeFunctionOnNextCall(f);
-} catch(e) { }
Index: test/mjsunit/regress/regress-crbug-448730.js
diff --git a/test/mjsunit/regress/regress-crbug-448730.js
b/test/mjsunit/regress/regress-crbug-448730.js
deleted file mode 100644
index
31d276aa839cdf649b2da1ad54138cc4f9418b81..0000000000000000000000000000000000000000
--- a/test/mjsunit/regress/regress-crbug-448730.js
+++ /dev/null
@@ -1,14 +0,0 @@
-// Copyright 2015 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 --harmony-proxies
-
-function bar() {}
-bar({ a: Proxy.create({}) });
-function foo(x) { x.a.b == ""; }
-var x = {a: {b: "" }};
-foo(x);
-foo(x);
-%OptimizeFunctionOnNextCall(foo);
-foo(x);
Index: test/mjsunit/regress/regress-crbug-451770.js
diff --git a/test/mjsunit/regress/regress-crbug-451770.js
b/test/mjsunit/regress/regress-crbug-451770.js
deleted file mode 100644
index
942814a3169c7b04faefed3a2170df72d3411860..0000000000000000000000000000000000000000
--- a/test/mjsunit/regress/regress-crbug-451770.js
+++ /dev/null
@@ -1,15 +0,0 @@
-// Copyright 2015 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: --harmony-computed-property-names --harmony-classes
--harmony-sloppy
-
-assertThrows(function f() {
- var t = { toString: function() { throw new Error(); } };
- var o = { [t]: 23 };
-}, Error);
-
-assertThrows(function f() {
- var t = { toString: function() { throw new Error(); } };
- class C { [t]() { return 23; } };
-}, Error);
Index: test/mjsunit/regress/regress-crbug-465671-null.js
diff --git a/test/mjsunit/regress/regress-crbug-465671-null.js
b/test/mjsunit/regress/regress-crbug-465671-null.js
deleted file mode 100644
index
d24599c38526aca26943669a1b5e153ee652bd9a..0000000000000000000000000000000000000000
--- a/test/mjsunit/regress/regress-crbug-465671-null.js
+++ /dev/null
@@ -1,16 +0,0 @@
-// Copyright 2015 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: --harmony-arrow-functions
-
-// This used to trigger a segfault because of NULL being accessed.
-function f() {
- var a = [10];
- try {
- f();
- } catch(e) {
- a.map((v) => v + 1);
- }
-}
-f();
Index: test/mjsunit/regress/regress-crbug-465671.js
diff --git a/test/mjsunit/regress/regress-crbug-465671.js
b/test/mjsunit/regress/regress-crbug-465671.js
deleted file mode 100644
index
24f4d054755bc241d87ad774787d595aad6c0657..0000000000000000000000000000000000000000
--- a/test/mjsunit/regress/regress-crbug-465671.js
+++ /dev/null
@@ -1,16 +0,0 @@
-// Copyright 2015 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: --harmony-arrow-functions
-
-// This used to trigger crash because of an unhandled stack overflow.
-function f() {
- var a = [10];
- try {
- f();
- } catch(e) {
- a.map(v => v + 1);
- }
-}
-f();
Index: test/mjsunit/es6/regress/regress-347906.js
diff --git a/test/mjsunit/regress/regress-347906.js
b/test/mjsunit/es6/regress/regress-347906.js
similarity index 86%
rename from test/mjsunit/regress/regress-347906.js
rename to test/mjsunit/es6/regress/regress-347906.js
index
c751618928c93015679087ee1b500637657aa341..daa62f5df7072d04975252eae14d7a98ba73b3e5
100644
--- a/test/mjsunit/regress/regress-347906.js
+++ b/test/mjsunit/es6/regress/regress-347906.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
+// Flags: --allow-natives-syntax
function foo() {
return Math.clz32(12.34);
Index: test/mjsunit/es6/regress/regress-411237.js
diff --git a/test/mjsunit/regress/regress-411237.js
b/test/mjsunit/es6/regress/regress-411237.js
similarity index 87%
rename from test/mjsunit/regress/regress-411237.js
rename to test/mjsunit/es6/regress/regress-411237.js
index
8b75ba3015612ad9699f468862f79cde1fb77731..ece6481737b9cc11696ef08e02d11e3642b365d8
100644
--- a/test/mjsunit/regress/regress-411237.js
+++ b/test/mjsunit/es6/regress/regress-411237.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
+// Flags: --allow-natives-syntax
try {
%OptimizeFunctionOnNextCall(print);
Index: test/mjsunit/harmony/regress/regress-3501.js
diff --git a/test/mjsunit/regress/regress-3501.js
b/test/mjsunit/harmony/regress/regress-3501.js
similarity index 100%
rename from test/mjsunit/regress/regress-3501.js
rename to test/mjsunit/harmony/regress/regress-3501.js
Index: test/mjsunit/harmony/regress/regress-crbug-448730.js
diff --git a/test/mjsunit/regress/regress-crbug-448730.js
b/test/mjsunit/harmony/regress/regress-crbug-448730.js
similarity index 100%
rename from test/mjsunit/regress/regress-crbug-448730.js
rename to test/mjsunit/harmony/regress/regress-crbug-448730.js
Index: test/mjsunit/harmony/regress/regress-crbug-451770.js
diff --git a/test/mjsunit/regress/regress-crbug-451770.js
b/test/mjsunit/harmony/regress/regress-crbug-451770.js
similarity index 100%
rename from test/mjsunit/regress/regress-crbug-451770.js
rename to test/mjsunit/harmony/regress/regress-crbug-451770.js
Index: test/mjsunit/harmony/regress/regress-crbug-465671-null.js
diff --git a/test/mjsunit/regress/regress-crbug-465671-null.js
b/test/mjsunit/harmony/regress/regress-crbug-465671-null.js
similarity index 100%
rename from test/mjsunit/regress/regress-crbug-465671-null.js
rename to test/mjsunit/harmony/regress/regress-crbug-465671-null.js
Index: test/mjsunit/harmony/regress/regress-crbug-465671.js
diff --git a/test/mjsunit/regress/regress-crbug-465671.js
b/test/mjsunit/harmony/regress/regress-crbug-465671.js
similarity index 100%
rename from test/mjsunit/regress/regress-crbug-465671.js
rename to test/mjsunit/harmony/regress/regress-crbug-465671.js
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.