Break some slow running tests into smaller bits so they don't time out.
authormark.lam@apple.com <mark.lam@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 29 Sep 2016 19:11:05 +0000 (19:11 +0000)
committermark.lam@apple.com <mark.lam@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 29 Sep 2016 19:11:05 +0000 (19:11 +0000)
commitfd0fcc07d9211a44cd88dbd25678aa9d87b16461
tree2227771d04ae44354237bf974c3489098ed3d641
parent99f8b119125861df5aabf9406563b4f81664116b
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):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@206600 268f45cc-cd09-0410-ab3c-d52691b4dbfc
29 files changed:
JSTests/ChangeLog
JSTests/stress/op_div-ConstVar.js [new file with mode: 0644]
JSTests/stress/op_div-VarConst.js [new file with mode: 0644]
JSTests/stress/op_div-VarVar.js [new file with mode: 0644]
JSTests/stress/op_div.js [deleted file]
JSTests/stress/op_lshift-ConstVar.js [new file with mode: 0644]
JSTests/stress/op_lshift-VarConst.js [new file with mode: 0644]
JSTests/stress/op_lshift-VarVar.js [new file with mode: 0644]
JSTests/stress/op_mod-ConstVar.js [new file with mode: 0644]
JSTests/stress/op_mod-VarConst.js [new file with mode: 0644]
JSTests/stress/op_mod-VarVar.js [new file with mode: 0644]
JSTests/stress/op_mod.js [deleted file]
JSTests/stress/op_mul-ConstVar.js [new file with mode: 0644]
JSTests/stress/op_mul-VarConst.js [new file with mode: 0644]
JSTests/stress/op_mul-VarVar.js [new file with mode: 0644]
JSTests/stress/op_mul.js [deleted file]
JSTests/stress/op_rshift-ConstVar.js [new file with mode: 0644]
JSTests/stress/op_rshift-VarConst.js [new file with mode: 0644]
JSTests/stress/op_rshift-VarVar.js [new file with mode: 0644]
JSTests/stress/op_rshift.js [deleted file]
JSTests/stress/op_sub-ConstVar.js [new file with mode: 0644]
JSTests/stress/op_sub-VarConst.js [new file with mode: 0644]
JSTests/stress/op_sub-VarVar.js [new file with mode: 0644]
JSTests/stress/op_sub.js [deleted file]
JSTests/stress/op_urshift-ConstVar.js [new file with mode: 0644]
JSTests/stress/op_urshift-VarConst.js [new file with mode: 0644]
JSTests/stress/op_urshift-VarVar.js [new file with mode: 0644]
JSTests/stress/op_urshift.js [deleted file]
JSTests/stress/resources/binary-op-values.js [moved from JSTests/stress/op_lshift.js with 60% similarity]