Create correctness tests for binary snippet operators.
authormark.lam@apple.com <mark.lam@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 19 Nov 2015 23:32:09 +0000 (23:32 +0000)
committermark.lam@apple.com <mark.lam@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 19 Nov 2015 23:32:09 +0000 (23:32 +0000)
commitca3ce81a181546f516ad9c868b92104f48dd8172
tree4d2a4a9031d51be28ce2191f9a0517fa7e1c20bf
parentd330f3739d5f80e86fb9e5366d8e8ac86d5f7ed1
Create correctness tests for binary snippet operators.
https://bugs.webkit.org/show_bug.cgi?id=151465

Reviewed by Geoffrey Garen.

Implement a common infrastructure for generating and running tests on binary
operators.  Also re-implemented the op_add, op_sub, and op_mul tests to be based
on this new infrastructure.

* tests/stress/op_add.js:
* tests/stress/op_mul.js:
* tests/stress/op_sub.js:
- These were reimplemented using binary-op-test.js.

* tests/stress/op_div.js: Added.
* tests/stress/op_mod.js: Added.

* tests/stress/op_bitand.js: Added.
* tests/stress/op_bitor.js: Added.
* tests/stress/op_bitxor.js: Added.

* tests/stress/op_lshift.js: Added.
* tests/stress/op_rshift.js: Added.
* tests/stress/op_urshift.js: Added.

* tests/stress/resources/binary-op-test.js: Added.
- Common code for generating and running tests.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@192664 268f45cc-cd09-0410-ab3c-d52691b4dbfc
13 files changed:
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/tests/stress/op_add.js
Source/JavaScriptCore/tests/stress/op_bitand.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/op_bitor.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/op_bitxor.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/op_div.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/op_lshift.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/op_mod.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/op_mul.js
Source/JavaScriptCore/tests/stress/op_rshift.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/op_sub.js
Source/JavaScriptCore/tests/stress/op_urshift.js [new file with mode: 0644]
Source/JavaScriptCore/tests/stress/resources/binary-op-test.js [new file with mode: 0644]