Diff
Modified: trunk/JSTests/ChangeLog (206599 => 206600)
--- trunk/JSTests/ChangeLog 2016-09-29 19:01:42 UTC (rev 206599)
+++ trunk/JSTests/ChangeLog 2016-09-29 19:11:05 UTC (rev 206600)
@@ -1,3 +1,66 @@
+2016-09-29 Mark Lam <mark....@apple.com>
+
+ Break some slow running tests into smaller bits so they don't time out.
+ https://bugs.webkit.org/show_bug.cgi?id=162743
+
+ Reviewed by Keith Miller.
+
+ The following tests have shown to be slow running:
+ op_div.js
+ op_lshift.js
+ op_mod.js
+ op_mul.js
+ op_rshift.js
+ op_sub.js
+ op_urshift
+
+ These tests auto-generate permutations of values to apply to binary operations.
+ They also test the operations with 3 permutations of value types:
+ 1. VarVar - both operands variables
+ 2. VarConst - variable operand 1, constant / literal operand 2
+ 3. ConstVar - constant / literal operand 1, variable operand 2
+
+ We can prevent these tests from timing out by breaking each up to only run 1 of
+ the 3 permutations of value types.
+
+ * stress/op_div-ConstVar.js: Added.
+ * stress/op_div-VarConst.js: Added.
+ * stress/op_div-VarVar.js: Copied from JSTests/stress/op_div.js.
+ (o1.valueOf): Deleted.
+ * stress/op_div.js: Removed.
+ * stress/op_lshift-ConstVar.js: Added.
+ * stress/op_lshift-VarConst.js: Added.
+ * stress/op_lshift-VarVar.js: Copied from JSTests/stress/op_lshift.js.
+ (o1.valueOf): Deleted.
+ * stress/op_lshift.js: Removed.
+ * stress/op_mod-ConstVar.js: Added.
+ * stress/op_mod-VarConst.js: Added.
+ * stress/op_mod-VarVar.js: Copied from JSTests/stress/op_mod.js.
+ (o1.valueOf): Deleted.
+ * stress/op_mod.js: Removed.
+ * stress/op_mul-ConstVar.js: Added.
+ * stress/op_mul-VarConst.js: Added.
+ * stress/op_mul-VarVar.js: Copied from JSTests/stress/op_mul.js.
+ (o1.valueOf): Deleted.
+ * stress/op_mul.js: Removed.
+ * stress/op_rshift-ConstVar.js: Added.
+ * stress/op_rshift-VarConst.js: Added.
+ * stress/op_rshift-VarVar.js: Copied from JSTests/stress/op_rshift.js.
+ (o1.valueOf): Deleted.
+ * stress/op_rshift.js: Removed.
+ * stress/op_sub-ConstVar.js: Added.
+ * stress/op_sub-VarConst.js: Added.
+ * stress/op_sub-VarVar.js: Copied from JSTests/stress/op_sub.js.
+ (o1.valueOf): Deleted.
+ * stress/op_sub.js: Removed.
+ * stress/op_urshift-ConstVar.js: Added.
+ * stress/op_urshift-VarConst.js: Added.
+ * stress/op_urshift-VarVar.js: Copied from JSTests/stress/op_urshift.js.
+ (o1.valueOf): Deleted.
+ * stress/op_urshift.js: Removed.
+ * stress/resources/binary-op-values.js: Added.
+ (o1.valueOf):
+
2016-09-29 Joseph Pecoraro <pecor...@apple.com>
test262: class and function names should be inferred in assignment
Added: trunk/JSTests/stress/op_div-ConstVar.js (0 => 206600)
--- trunk/JSTests/stress/op_div-ConstVar.js (rev 0)
+++ trunk/JSTests/stress/op_div-ConstVar.js 2016-09-29 19:11:05 UTC (rev 206600)
@@ -0,0 +1,19 @@
+//@ runFTLNoCJIT
+
+// If all goes well, this test module will terminate silently. If not, it will print
+// errors. See binary-op-test.js for debugging options if needed.
+
+load("./resources/binary-op-test.js");
+
+//============================================================================
+// Test configuration data:
+
+var opName = "div";
+var op = "/";
+
+load("./resources/binary-op-values.js");
+
+tests = [];
+generateBinaryTests(tests, opName, op, "ConstVar", values, values);
+
+run();
Added: trunk/JSTests/stress/op_div-VarConst.js (0 => 206600)
--- trunk/JSTests/stress/op_div-VarConst.js (rev 0)
+++ trunk/JSTests/stress/op_div-VarConst.js 2016-09-29 19:11:05 UTC (rev 206600)
@@ -0,0 +1,19 @@
+//@ runFTLNoCJIT
+
+// If all goes well, this test module will terminate silently. If not, it will print
+// errors. See binary-op-test.js for debugging options if needed.
+
+load("./resources/binary-op-test.js");
+
+//============================================================================
+// Test configuration data:
+
+var opName = "div";
+var op = "/";
+
+load("./resources/binary-op-values.js");
+
+tests = [];
+generateBinaryTests(tests, opName, op, "VarConst", values, values);
+
+run();
Copied: trunk/JSTests/stress/op_div-VarVar.js (from rev 206599, trunk/JSTests/stress/op_div.js) (0 => 206600)
--- trunk/JSTests/stress/op_div-VarVar.js (rev 0)
+++ trunk/JSTests/stress/op_div-VarVar.js 2016-09-29 19:11:05 UTC (rev 206600)
@@ -0,0 +1,19 @@
+//@ runFTLNoCJIT
+
+// If all goes well, this test module will terminate silently. If not, it will print
+// errors. See binary-op-test.js for debugging options if needed.
+
+load("./resources/binary-op-test.js");
+
+//============================================================================
+// Test configuration data:
+
+var opName = "div";
+var op = "/";
+
+load("./resources/binary-op-values.js");
+
+tests = [];
+generateBinaryTests(tests, opName, op, "VarVar", values, values);
+
+run();
Deleted: trunk/JSTests/stress/op_div.js (206599 => 206600)
--- trunk/JSTests/stress/op_div.js 2016-09-29 19:01:42 UTC (rev 206599)
+++ trunk/JSTests/stress/op_div.js 2016-09-29 19:11:05 UTC (rev 206600)
@@ -1,73 +0,0 @@
-//@ runFTLNoCJIT
-
-// If all goes well, this test module will terminate silently. If not, it will print
-// errors. See binary-op-test.js for debugging options if needed.
-
-load("./resources/binary-op-test.js");
-
-//============================================================================
-// Test configuration data:
-
-var opName = "div";
-var op = "/";
-
-var o1 = {
- valueOf: function() { return 10; }
-};
-
-var posInfinity = 1 / 0;
-var negInfinity = -1 / 0;
-
-var values = [
- 'o1',
- 'null',
- 'undefined',
- 'true',
- 'false',
-
- 'NaN',
- 'posInfinity',
- 'negInfinity',
- '100.2', // Some random small double value.
- '-100.2',
- '54294967296.2923', // Some random large double value.
- '-54294967296.2923',
-
- '0',
- '-0',
- '1',
- '-1',
- '0x3fff',
- '-0x3fff',
- '0x7fff',
- '-0x7fff',
- '0x10000',
- '-0x10000',
- '0x7fffffff',
- '-0x7fffffff',
- '0x100000000',
- '-0x100000000',
-
- '"abc"',
- '"0"',
- '"-0"',
- '"1"',
- '"-1"',
- '"0x3fff"',
- '"-0x3fff"',
- '"0x7fff"',
- '"-0x7fff"',
- '"0x10000"',
- '"-0x10000"',
- '"0x7fffffff"',
- '"-0x7fffffff"',
- '"0x100000000"',
- '"-0x100000000"',
-];
-
-tests = [];
-generateBinaryTests(tests, opName, op, "VarVar", values, values);
-generateBinaryTests(tests, opName, op, "VarConst", values, values);
-generateBinaryTests(tests, opName, op, "ConstVar", values, values);
-
-run();
Added: trunk/JSTests/stress/op_lshift-ConstVar.js (0 => 206600)
--- trunk/JSTests/stress/op_lshift-ConstVar.js (rev 0)
+++ trunk/JSTests/stress/op_lshift-ConstVar.js 2016-09-29 19:11:05 UTC (rev 206600)
@@ -0,0 +1,19 @@
+//@ runFTLNoCJIT
+
+// If all goes well, this test module will terminate silently. If not, it will print
+// errors. See binary-op-test.js for debugging options if needed.
+
+load("./resources/binary-op-test.js");
+
+//============================================================================
+// Test configuration data:
+
+var opName = "lshift";
+var op = "<<";
+
+load("./resources/binary-op-values.js");
+
+tests = [];
+generateBinaryTests(tests, opName, op, "ConstVar", values, values);
+
+run();
Added: trunk/JSTests/stress/op_lshift-VarConst.js (0 => 206600)
--- trunk/JSTests/stress/op_lshift-VarConst.js (rev 0)
+++ trunk/JSTests/stress/op_lshift-VarConst.js 2016-09-29 19:11:05 UTC (rev 206600)
@@ -0,0 +1,19 @@
+//@ runFTLNoCJIT
+
+// If all goes well, this test module will terminate silently. If not, it will print
+// errors. See binary-op-test.js for debugging options if needed.
+
+load("./resources/binary-op-test.js");
+
+//============================================================================
+// Test configuration data:
+
+var opName = "lshift";
+var op = "<<";
+
+load("./resources/binary-op-values.js");
+
+tests = [];
+generateBinaryTests(tests, opName, op, "VarConst", values, values);
+
+run();
Copied: trunk/JSTests/stress/op_lshift-VarVar.js (from rev 206599, trunk/JSTests/stress/op_lshift.js) (0 => 206600)
--- trunk/JSTests/stress/op_lshift-VarVar.js (rev 0)
+++ trunk/JSTests/stress/op_lshift-VarVar.js 2016-09-29 19:11:05 UTC (rev 206600)
@@ -0,0 +1,19 @@
+//@ runFTLNoCJIT
+
+// If all goes well, this test module will terminate silently. If not, it will print
+// errors. See binary-op-test.js for debugging options if needed.
+
+load("./resources/binary-op-test.js");
+
+//============================================================================
+// Test configuration data:
+
+var opName = "lshift";
+var op = "<<";
+
+load("./resources/binary-op-values.js");
+
+tests = [];
+generateBinaryTests(tests, opName, op, "VarVar", values, values);
+
+run();
Deleted: trunk/JSTests/stress/op_lshift.js (206599 => 206600)
--- trunk/JSTests/stress/op_lshift.js 2016-09-29 19:01:42 UTC (rev 206599)
+++ trunk/JSTests/stress/op_lshift.js 2016-09-29 19:11:05 UTC (rev 206600)
@@ -1,79 +0,0 @@
-//@ runFTLNoCJIT
-
-// If all goes well, this test module will terminate silently. If not, it will print
-// errors. See binary-op-test.js for debugging options if needed.
-
-load("./resources/binary-op-test.js");
-
-//============================================================================
-// Test configuration data:
-
-var opName = "lshift";
-var op = "<<";
-
-var o1 = {
- valueOf: function() { return 10; }
-};
-
-var posInfinity = 1 / 0;
-var negInfinity = -1 / 0;
-
-var values = [
- 'o1',
- 'null',
- 'undefined',
- 'true',
- 'false',
-
- 'NaN',
- 'posInfinity',
- 'negInfinity',
- '100.2', // Some random small double value.
- '-100.2',
- '2147483647.5', // Value that will get truncated down to 0x7fffffff.
- '-2147483647.5',
- '54294967296.2923', // Some random large double value.
- '-54294967296.2923',
-
- '0',
- '-0',
- '1',
- '-1',
- '5',
- '-5',
- '31',
- '-31',
- '32',
- '-32',
- '0x3fff',
- '-0x3fff',
- '0x7fff',
- '-0x7fff',
- '0x10000',
- '-0x10000',
- '0x7fffffff',
- '-0x7fffffff',
- '0x100000000',
- '-0x100000000',
-
- '"abc"',
- '"0"',
- '"-0"',
- '"1"',
- '"-1"',
- '"5"',
- '"-5"',
- '"31"',
- '"-31"',
- '"32"',
- '"-32"',
- '"0x3fff"',
- '"-0x3fff"',
-];
-
-tests = [];
-generateBinaryTests(tests, opName, op, "VarVar", values, values);
-generateBinaryTests(tests, opName, op, "VarConst", values, values);
-generateBinaryTests(tests, opName, op, "ConstVar", values, values);
-
-run();
Added: trunk/JSTests/stress/op_mod-ConstVar.js (0 => 206600)
--- trunk/JSTests/stress/op_mod-ConstVar.js (rev 0)
+++ trunk/JSTests/stress/op_mod-ConstVar.js 2016-09-29 19:11:05 UTC (rev 206600)
@@ -0,0 +1,19 @@
+//@ runFTLNoCJIT
+
+// If all goes well, this test module will terminate silently. If not, it will print
+// errors. See binary-op-test.js for debugging options if needed.
+
+load("./resources/binary-op-test.js");
+
+//============================================================================
+// Test configuration data:
+
+var opName = "mod";
+var op = "%";
+
+load("./resources/binary-op-values.js");
+
+tests = [];
+generateBinaryTests(tests, opName, op, "ConstVar", values, values);
+
+run();
Added: trunk/JSTests/stress/op_mod-VarConst.js (0 => 206600)
--- trunk/JSTests/stress/op_mod-VarConst.js (rev 0)
+++ trunk/JSTests/stress/op_mod-VarConst.js 2016-09-29 19:11:05 UTC (rev 206600)
@@ -0,0 +1,19 @@
+//@ runFTLNoCJIT
+
+// If all goes well, this test module will terminate silently. If not, it will print
+// errors. See binary-op-test.js for debugging options if needed.
+
+load("./resources/binary-op-test.js");
+
+//============================================================================
+// Test configuration data:
+
+var opName = "mod";
+var op = "%";
+
+load("./resources/binary-op-values.js");
+
+tests = [];
+generateBinaryTests(tests, opName, op, "VarConst", values, values);
+
+run();
Copied: trunk/JSTests/stress/op_mod-VarVar.js (from rev 206599, trunk/JSTests/stress/op_mod.js) (0 => 206600)
--- trunk/JSTests/stress/op_mod-VarVar.js (rev 0)
+++ trunk/JSTests/stress/op_mod-VarVar.js 2016-09-29 19:11:05 UTC (rev 206600)
@@ -0,0 +1,19 @@
+//@ runFTLNoCJIT
+
+// If all goes well, this test module will terminate silently. If not, it will print
+// errors. See binary-op-test.js for debugging options if needed.
+
+load("./resources/binary-op-test.js");
+
+//============================================================================
+// Test configuration data:
+
+var opName = "mod";
+var op = "%";
+
+load("./resources/binary-op-values.js");
+
+tests = [];
+generateBinaryTests(tests, opName, op, "VarVar", values, values);
+
+run();
Deleted: trunk/JSTests/stress/op_mod.js (206599 => 206600)
--- trunk/JSTests/stress/op_mod.js 2016-09-29 19:01:42 UTC (rev 206599)
+++ trunk/JSTests/stress/op_mod.js 2016-09-29 19:11:05 UTC (rev 206600)
@@ -1,73 +0,0 @@
-//@ runFTLNoCJIT
-
-// If all goes well, this test module will terminate silently. If not, it will print
-// errors. See binary-op-test.js for debugging options if needed.
-
-load("./resources/binary-op-test.js");
-
-//============================================================================
-// Test configuration data:
-
-var opName = "mod";
-var op = "%";
-
-var o1 = {
- valueOf: function() { return 10; }
-};
-
-var posInfinity = 1 / 0;
-var negInfinity = -1 / 0;
-
-var values = [
- 'o1',
- 'null',
- 'undefined',
- 'true',
- 'false',
-
- 'NaN',
- 'posInfinity',
- 'negInfinity',
- '100.2', // Some random small double value.
- '-100.2',
- '54294967296.2923', // Some random large double value.
- '-54294967296.2923',
-
- '0',
- '-0',
- '1',
- '-1',
- '0x3fff',
- '-0x3fff',
- '0x7fff',
- '-0x7fff',
- '0x10000',
- '-0x10000',
- '0x7ffffff',
- '-0x7ffffff',
- '0x100000000',
- '-0x100000000',
-
- '"abc"',
- '"0"',
- '"-0"',
- '"1"',
- '"-1"',
- '"0x3fff"',
- '"-0x3fff"',
- '"0x7fff"',
- '"-0x7fff"',
- '"0x10000"',
- '"-0x10000"',
- '"0x7ffffff"',
- '"-0x7ffffff"',
- '"0x100000000"',
- '"-0x100000000"',
-];
-
-tests = [];
-generateBinaryTests(tests, opName, op, "VarVar", values, values);
-generateBinaryTests(tests, opName, op, "VarConst", values, values);
-generateBinaryTests(tests, opName, op, "ConstVar", values, values);
-
-run();
Added: trunk/JSTests/stress/op_mul-ConstVar.js (0 => 206600)
--- trunk/JSTests/stress/op_mul-ConstVar.js (rev 0)
+++ trunk/JSTests/stress/op_mul-ConstVar.js 2016-09-29 19:11:05 UTC (rev 206600)
@@ -0,0 +1,19 @@
+//@ runFTLNoCJIT
+
+// If all goes well, this test module will terminate silently. If not, it will print
+// errors. See binary-op-test.js for debugging options if needed.
+
+load("./resources/binary-op-test.js");
+
+//============================================================================
+// Test configuration data:
+
+var opName = "mul";
+var op = "*";
+
+load("./resources/binary-op-values.js");
+
+tests = [];
+generateBinaryTests(tests, opName, op, "ConstVar", values, values);
+
+run();
Added: trunk/JSTests/stress/op_mul-VarConst.js (0 => 206600)
--- trunk/JSTests/stress/op_mul-VarConst.js (rev 0)
+++ trunk/JSTests/stress/op_mul-VarConst.js 2016-09-29 19:11:05 UTC (rev 206600)
@@ -0,0 +1,19 @@
+//@ runFTLNoCJIT
+
+// If all goes well, this test module will terminate silently. If not, it will print
+// errors. See binary-op-test.js for debugging options if needed.
+
+load("./resources/binary-op-test.js");
+
+//============================================================================
+// Test configuration data:
+
+var opName = "mul";
+var op = "*";
+
+load("./resources/binary-op-values.js");
+
+tests = [];
+generateBinaryTests(tests, opName, op, "VarConst", values, values);
+
+run();
Copied: trunk/JSTests/stress/op_mul-VarVar.js (from rev 206599, trunk/JSTests/stress/op_mul.js) (0 => 206600)
--- trunk/JSTests/stress/op_mul-VarVar.js (rev 0)
+++ trunk/JSTests/stress/op_mul-VarVar.js 2016-09-29 19:11:05 UTC (rev 206600)
@@ -0,0 +1,19 @@
+//@ runFTLNoCJIT
+
+// If all goes well, this test module will terminate silently. If not, it will print
+// errors. See binary-op-test.js for debugging options if needed.
+
+load("./resources/binary-op-test.js");
+
+//============================================================================
+// Test configuration data:
+
+var opName = "mul";
+var op = "*";
+
+load("./resources/binary-op-values.js");
+
+tests = [];
+generateBinaryTests(tests, opName, op, "VarVar", values, values);
+
+run();
Deleted: trunk/JSTests/stress/op_mul.js (206599 => 206600)
--- trunk/JSTests/stress/op_mul.js 2016-09-29 19:01:42 UTC (rev 206599)
+++ trunk/JSTests/stress/op_mul.js 2016-09-29 19:11:05 UTC (rev 206600)
@@ -1,73 +0,0 @@
-//@ runFTLNoCJIT
-
-// If all goes well, this test module will terminate silently. If not, it will print
-// errors. See binary-op-test.js for debugging options if needed.
-
-load("./resources/binary-op-test.js");
-
-//============================================================================
-// Test configuration data:
-
-var opName = "mul";
-var op = "*";
-
-var o1 = {
- valueOf: function() { return 10; }
-};
-
-var posInfinity = 1 / 0;
-var negInfinity = -1 / 0;
-
-var values = [
- 'o1',
- 'null',
- 'undefined',
- 'true',
- 'false',
-
- 'NaN',
- 'posInfinity',
- 'negInfinity',
- '100.2', // Some random small double value.
- '-100.2',
- '54294967296.2923', // Some random large double value.
- '-54294967296.2923',
-
- '0',
- '-0',
- '1',
- '-1',
- '0x3fff',
- '-0x3fff',
- '0x7fff',
- '-0x7fff',
- '0x10000',
- '-0x10000',
- '0x7fffffff',
- '-0x7fffffff',
- '0x100000000',
- '-0x100000000',
-
- '"abc"',
- '"0"',
- '"-0"',
- '"1"',
- '"-1"',
- '"0x3fff"',
- '"-0x3fff"',
- '"0x7fff"',
- '"-0x7fff"',
- '"0x10000"',
- '"-0x10000"',
- '"0x7fffffff"',
- '"-0x7fffffff"',
- '"0x100000000"',
- '"-0x100000000"',
-];
-
-tests = [];
-generateBinaryTests(tests, opName, op, "VarVar", values, values);
-generateBinaryTests(tests, opName, op, "VarConst", values, values);
-generateBinaryTests(tests, opName, op, "ConstVar", values, values);
-
-run();
Added: trunk/JSTests/stress/op_rshift-ConstVar.js (0 => 206600)
--- trunk/JSTests/stress/op_rshift-ConstVar.js (rev 0)
+++ trunk/JSTests/stress/op_rshift-ConstVar.js 2016-09-29 19:11:05 UTC (rev 206600)
@@ -0,0 +1,19 @@
+//@ runFTLNoCJIT
+
+// If all goes well, this test module will terminate silently. If not, it will print
+// errors. See binary-op-test.js for debugging options if needed.
+
+load("./resources/binary-op-test.js");
+
+//============================================================================
+// Test configuration data:
+
+var opName = "rshift";
+var op = ">>";
+
+load("./resources/binary-op-values.js");
+
+tests = [];
+generateBinaryTests(tests, opName, op, "ConstVar", values, values);
+
+run();
Added: trunk/JSTests/stress/op_rshift-VarConst.js (0 => 206600)
--- trunk/JSTests/stress/op_rshift-VarConst.js (rev 0)
+++ trunk/JSTests/stress/op_rshift-VarConst.js 2016-09-29 19:11:05 UTC (rev 206600)
@@ -0,0 +1,19 @@
+//@ runFTLNoCJIT
+
+// If all goes well, this test module will terminate silently. If not, it will print
+// errors. See binary-op-test.js for debugging options if needed.
+
+load("./resources/binary-op-test.js");
+
+//============================================================================
+// Test configuration data:
+
+var opName = "rshift";
+var op = ">>";
+
+load("./resources/binary-op-values.js");
+
+tests = [];
+generateBinaryTests(tests, opName, op, "VarConst", values, values);
+
+run();
Copied: trunk/JSTests/stress/op_rshift-VarVar.js (from rev 206599, trunk/JSTests/stress/op_rshift.js) (0 => 206600)
--- trunk/JSTests/stress/op_rshift-VarVar.js (rev 0)
+++ trunk/JSTests/stress/op_rshift-VarVar.js 2016-09-29 19:11:05 UTC (rev 206600)
@@ -0,0 +1,19 @@
+//@ runFTLNoCJIT
+
+// If all goes well, this test module will terminate silently. If not, it will print
+// errors. See binary-op-test.js for debugging options if needed.
+
+load("./resources/binary-op-test.js");
+
+//============================================================================
+// Test configuration data:
+
+var opName = "rshift";
+var op = ">>";
+
+load("./resources/binary-op-values.js");
+
+tests = [];
+generateBinaryTests(tests, opName, op, "VarVar", values, values);
+
+run();
Deleted: trunk/JSTests/stress/op_rshift.js (206599 => 206600)
--- trunk/JSTests/stress/op_rshift.js 2016-09-29 19:01:42 UTC (rev 206599)
+++ trunk/JSTests/stress/op_rshift.js 2016-09-29 19:11:05 UTC (rev 206600)
@@ -1,79 +0,0 @@
-//@ runFTLNoCJIT
-
-// If all goes well, this test module will terminate silently. If not, it will print
-// errors. See binary-op-test.js for debugging options if needed.
-
-load("./resources/binary-op-test.js");
-
-//============================================================================
-// Test configuration data:
-
-var opName = "rshift";
-var op = ">>";
-
-var o1 = {
- valueOf: function() { return 10; }
-};
-
-var posInfinity = 1 / 0;
-var negInfinity = -1 / 0;
-
-var values = [
- 'o1',
- 'null',
- 'undefined',
- 'true',
- 'false',
-
- 'NaN',
- 'posInfinity',
- 'negInfinity',
- '100.2', // Some random small double value.
- '-100.2',
- '2147483647.5', // Value that will get truncated down to 0x7fffffff.
- '-2147483647.5',
- '54294967296.2923', // Some random large double value.
- '-54294967296.2923',
-
- '0',
- '-0',
- '1',
- '-1',
- '5',
- '-5',
- '31',
- '-31',
- '32',
- '-32',
- '0x3fff',
- '-0x3fff',
- '0x7fff',
- '-0x7fff',
- '0x10000',
- '-0x10000',
- '0x7fffffff',
- '-0x7fffffff',
- '0x100000000',
- '-0x100000000',
-
- '"abc"',
- '"0"',
- '"-0"',
- '"1"',
- '"-1"',
- '"5"',
- '"-5"',
- '"31"',
- '"-31"',
- '"32"',
- '"-32"',
- '"0x3fff"',
- '"-0x3fff"',
-];
-
-tests = [];
-generateBinaryTests(tests, opName, op, "VarVar", values, values);
-generateBinaryTests(tests, opName, op, "VarConst", values, values);
-generateBinaryTests(tests, opName, op, "ConstVar", values, values);
-
-run();
Added: trunk/JSTests/stress/op_sub-ConstVar.js (0 => 206600)
--- trunk/JSTests/stress/op_sub-ConstVar.js (rev 0)
+++ trunk/JSTests/stress/op_sub-ConstVar.js 2016-09-29 19:11:05 UTC (rev 206600)
@@ -0,0 +1,19 @@
+//@ runFTLNoCJIT
+
+// If all goes well, this test module will terminate silently. If not, it will print
+// errors. See binary-op-test.js for debugging options if needed.
+
+load("./resources/binary-op-test.js");
+
+//============================================================================
+// Test configuration data:
+
+var opName = "sub";
+var op = "-";
+
+load("./resources/binary-op-values.js");
+
+tests = [];
+generateBinaryTests(tests, opName, op, "ConstVar", values, values);
+
+run();
Added: trunk/JSTests/stress/op_sub-VarConst.js (0 => 206600)
--- trunk/JSTests/stress/op_sub-VarConst.js (rev 0)
+++ trunk/JSTests/stress/op_sub-VarConst.js 2016-09-29 19:11:05 UTC (rev 206600)
@@ -0,0 +1,19 @@
+//@ runFTLNoCJIT
+
+// If all goes well, this test module will terminate silently. If not, it will print
+// errors. See binary-op-test.js for debugging options if needed.
+
+load("./resources/binary-op-test.js");
+
+//============================================================================
+// Test configuration data:
+
+var opName = "sub";
+var op = "-";
+
+load("./resources/binary-op-values.js");
+
+tests = [];
+generateBinaryTests(tests, opName, op, "VarConst", values, values);
+
+run();
Copied: trunk/JSTests/stress/op_sub-VarVar.js (from rev 206599, trunk/JSTests/stress/op_sub.js) (0 => 206600)
--- trunk/JSTests/stress/op_sub-VarVar.js (rev 0)
+++ trunk/JSTests/stress/op_sub-VarVar.js 2016-09-29 19:11:05 UTC (rev 206600)
@@ -0,0 +1,19 @@
+//@ runFTLNoCJIT
+
+// If all goes well, this test module will terminate silently. If not, it will print
+// errors. See binary-op-test.js for debugging options if needed.
+
+load("./resources/binary-op-test.js");
+
+//============================================================================
+// Test configuration data:
+
+var opName = "sub";
+var op = "-";
+
+load("./resources/binary-op-values.js");
+
+tests = [];
+generateBinaryTests(tests, opName, op, "VarVar", values, values);
+
+run();
Deleted: trunk/JSTests/stress/op_sub.js (206599 => 206600)
--- trunk/JSTests/stress/op_sub.js 2016-09-29 19:01:42 UTC (rev 206599)
+++ trunk/JSTests/stress/op_sub.js 2016-09-29 19:11:05 UTC (rev 206600)
@@ -1,73 +0,0 @@
-//@ runFTLNoCJIT
-
-// If all goes well, this test module will terminate silently. If not, it will print
-// errors. See binary-op-test.js for debugging options if needed.
-
-load("./resources/binary-op-test.js");
-
-//============================================================================
-// Test configuration data:
-
-var opName = "sub";
-var op = "-";
-
-var o1 = {
- valueOf: function() { return 10; }
-};
-
-var posInfinity = 1 / 0;
-var negInfinity = -1 / 0;
-
-var values = [
- 'o1',
- 'null',
- 'undefined',
- 'true',
- 'false',
-
- 'NaN',
- 'posInfinity',
- 'negInfinity',
- '100.2', // Some random small double value.
- '-100.2',
- '54294967296.2923', // Some random large double value.
- '-54294967296.2923',
-
- '0',
- '-0',
- '1',
- '-1',
- '0x3fff',
- '-0x3fff',
- '0x7fff',
- '-0x7fff',
- '0x10000',
- '-0x10000',
- '0x7ffffff',
- '-0x7ffffff',
- '0x100000000',
- '-0x100000000',
-
- '"abc"',
- '"0"',
- '"-0"',
- '"1"',
- '"-1"',
- '"0x3fff"',
- '"-0x3fff"',
- '"0x7fff"',
- '"-0x7fff"',
- '"0x10000"',
- '"-0x10000"',
- '"0x7ffffff"',
- '"-0x7ffffff"',
- '"0x100000000"',
- '"-0x100000000"',
-];
-
-tests = [];
-generateBinaryTests(tests, opName, op, "VarVar", values, values);
-generateBinaryTests(tests, opName, op, "VarConst", values, values);
-generateBinaryTests(tests, opName, op, "ConstVar", values, values);
-
-run();
Added: trunk/JSTests/stress/op_urshift-ConstVar.js (0 => 206600)
--- trunk/JSTests/stress/op_urshift-ConstVar.js (rev 0)
+++ trunk/JSTests/stress/op_urshift-ConstVar.js 2016-09-29 19:11:05 UTC (rev 206600)
@@ -0,0 +1,19 @@
+//@ runFTLNoCJIT
+
+// If all goes well, this test module will terminate silently. If not, it will print
+// errors. See binary-op-test.js for debugging options if needed.
+
+load("./resources/binary-op-test.js");
+
+//============================================================================
+// Test configuration data:
+
+var opName = "urshift";
+var op = ">>>";
+
+load("./resources/binary-op-values.js");
+
+tests = [];
+generateBinaryTests(tests, opName, op, "ConstVar", values, values);
+
+run();
Added: trunk/JSTests/stress/op_urshift-VarConst.js (0 => 206600)
--- trunk/JSTests/stress/op_urshift-VarConst.js (rev 0)
+++ trunk/JSTests/stress/op_urshift-VarConst.js 2016-09-29 19:11:05 UTC (rev 206600)
@@ -0,0 +1,19 @@
+//@ runFTLNoCJIT
+
+// If all goes well, this test module will terminate silently. If not, it will print
+// errors. See binary-op-test.js for debugging options if needed.
+
+load("./resources/binary-op-test.js");
+
+//============================================================================
+// Test configuration data:
+
+var opName = "urshift";
+var op = ">>>";
+
+load("./resources/binary-op-values.js");
+
+tests = [];
+generateBinaryTests(tests, opName, op, "VarConst", values, values);
+
+run();
Copied: trunk/JSTests/stress/op_urshift-VarVar.js (from rev 206599, trunk/JSTests/stress/op_urshift.js) (0 => 206600)
--- trunk/JSTests/stress/op_urshift-VarVar.js (rev 0)
+++ trunk/JSTests/stress/op_urshift-VarVar.js 2016-09-29 19:11:05 UTC (rev 206600)
@@ -0,0 +1,19 @@
+//@ runFTLNoCJIT
+
+// If all goes well, this test module will terminate silently. If not, it will print
+// errors. See binary-op-test.js for debugging options if needed.
+
+load("./resources/binary-op-test.js");
+
+//============================================================================
+// Test configuration data:
+
+var opName = "urshift";
+var op = ">>>";
+
+load("./resources/binary-op-values.js");
+
+tests = [];
+generateBinaryTests(tests, opName, op, "VarVar", values, values);
+
+run();
Deleted: trunk/JSTests/stress/op_urshift.js (206599 => 206600)
--- trunk/JSTests/stress/op_urshift.js 2016-09-29 19:01:42 UTC (rev 206599)
+++ trunk/JSTests/stress/op_urshift.js 2016-09-29 19:11:05 UTC (rev 206600)
@@ -1,79 +0,0 @@
-//@ runFTLNoCJIT
-
-// If all goes well, this test module will terminate silently. If not, it will print
-// errors. See binary-op-test.js for debugging options if needed.
-
-load("./resources/binary-op-test.js");
-
-//============================================================================
-// Test configuration data:
-
-var opName = "urshift";
-var op = ">>>";
-
-var o1 = {
- valueOf: function() { return 10; }
-};
-
-var posInfinity = 1 / 0;
-var negInfinity = -1 / 0;
-
-var values = [
- 'o1',
- 'null',
- 'undefined',
- 'true',
- 'false',
-
- 'NaN',
- 'posInfinity',
- 'negInfinity',
- '100.2', // Some random small double value.
- '-100.2',
- '2147483647.5', // Value that will get truncated down to 0x7fffffff.
- '-2147483647.5',
- '54294967296.2923', // Some random large double value.
- '-54294967296.2923',
-
- '0',
- '-0',
- '1',
- '-1',
- '5',
- '-5',
- '31',
- '-31',
- '32',
- '-32',
- '0x3fff',
- '-0x3fff',
- '0x7fff',
- '-0x7fff',
- '0x10000',
- '-0x10000',
- '0x7fffffff',
- '-0x7fffffff',
- '0x100000000',
- '-0x100000000',
-
- '"abc"',
- '"0"',
- '"-0"',
- '"1"',
- '"-1"',
- '"5"',
- '"-5"',
- '"31"',
- '"-31"',
- '"32"',
- '"-32"',
- '"0x3fff"',
- '"-0x3fff"',
-];
-
-tests = [];
-generateBinaryTests(tests, opName, op, "VarVar", values, values);
-generateBinaryTests(tests, opName, op, "VarConst", values, values);
-generateBinaryTests(tests, opName, op, "ConstVar", values, values);
-
-run();
Added: trunk/JSTests/stress/resources/binary-op-values.js (0 => 206600)
--- trunk/JSTests/stress/resources/binary-op-values.js (rev 0)
+++ trunk/JSTests/stress/resources/binary-op-values.js 2016-09-29 19:11:05 UTC (rev 206600)
@@ -0,0 +1,73 @@
+// This file provides values that may be interesting for testing binary operations.
+
+var o1 = {
+ valueOf: function() { return 10; }
+};
+
+var posInfinity = 1 / 0;
+var negInfinity = -1 / 0;
+
+var values = [
+ 'o1',
+ 'null',
+ 'undefined',
+ 'true',
+ 'false',
+
+ 'NaN',
+ 'posInfinity',
+ 'negInfinity',
+ '100.2', // Some random small double value.
+ '-100.2',
+ '2147483647.5', // Value that will get truncated down to 0x7fffffff (by shift ops).
+ '-2147483647.5',
+ '54294967296.2923', // Some random large double value.
+ '-54294967296.2923',
+
+ '0',
+ '-0',
+ '1',
+ '-1',
+ '5',
+ '-5',
+ '31',
+ '-31',
+ '32',
+ '-32',
+ '0x3fff',
+ '-0x3fff',
+ '0x7fff',
+ '-0x7fff',
+ '0x10000',
+ '-0x10000',
+ '0x7ffffff',
+ '-0x7ffffff',
+ '0x7fffffff',
+ '-0x7fffffff',
+ '0x100000000',
+ '-0x100000000',
+
+ '"abc"',
+ '"0"',
+ '"-0"',
+ '"1"',
+ '"-1"',
+ '"5"',
+ '"-5"',
+ '"31"',
+ '"-31"',
+ '"32"',
+ '"-32"',
+ '"0x3fff"',
+ '"-0x3fff"',
+ '"0x7fff"',
+ '"-0x7fff"',
+ '"0x10000"',
+ '"-0x10000"',
+ '"0x7ffffff"',
+ '"-0x7ffffff"',
+ '"0x7fffffff"',
+ '"-0x7fffffff"',
+ '"0x100000000"',
+ '"-0x100000000"',
+];