Changeset 194333 in webkit


Ignore:
Timestamp:
Dec 21, 2015 10:40:10 AM (8 years ago)
Author:
mark.lam@apple.com
Message:

Add unary operator tests to compare JIT and LLINT results.
https://bugs.webkit.org/show_bug.cgi?id=152453

Reviewed by Benjamin Poulain.

Also fixed a few things in the binary-op-test.js.

  • tests/stress/op_negate.js: Added.

(o1.valueOf):

  • tests/stress/op_postdec.js: Added.

(o1.valueOf):

  • tests/stress/op_postinc.js: Added.

(o1.valueOf):

  • tests/stress/op_predec.js: Added.

(o1.valueOf):

  • tests/stress/op_preinc.js: Added.

(o1.valueOf):

  • tests/stress/resources/binary-op-test.js:

(stringifyIfNeeded):
(isIdentical):
(run):

  • tests/stress/resources/unary-op-test.js: Added.

(stringifyIfNeeded):
(generateBinaryTests):
(isIdentical):
(runTest):
(run):

Location:
trunk/Source/JavaScriptCore
Files:
6 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r194332 r194333  
     12015-12-18  Mark Lam  <mark.lam@apple.com>
     2
     3        Add unary operator tests to compare JIT and LLINT results.
     4        https://bugs.webkit.org/show_bug.cgi?id=152453
     5
     6        Reviewed by Benjamin Poulain.
     7
     8        Also fixed a few things in the binary-op-test.js.
     9
     10        * tests/stress/op_negate.js: Added.
     11        (o1.valueOf):
     12        * tests/stress/op_postdec.js: Added.
     13        (o1.valueOf):
     14        * tests/stress/op_postinc.js: Added.
     15        (o1.valueOf):
     16        * tests/stress/op_predec.js: Added.
     17        (o1.valueOf):
     18        * tests/stress/op_preinc.js: Added.
     19        (o1.valueOf):
     20        * tests/stress/resources/binary-op-test.js:
     21        (stringifyIfNeeded):
     22        (isIdentical):
     23        (run):
     24        * tests/stress/resources/unary-op-test.js: Added.
     25        (stringifyIfNeeded):
     26        (generateBinaryTests):
     27        (isIdentical):
     28        (runTest):
     29        (run):
     30
    1312015-12-21  Ryan Haddad  <ryanhaddad@apple.com>
    232
  • trunk/Source/JavaScriptCore/tests/stress/resources/binary-op-test.js

    r193788 r194333  
    3131    if (typeof x == "string")
    3232        return '"' + x + '"';
     33    if (typeof x == "object")
     34        return 'objWithVal:' + x;
    3335    return x;
    3436}
     
    7779
    7880function isIdentical(x, y) {
     81    if (typeof x == "undefined" && typeof y == "undefined")
     82        return true;
    7983    if (typeof x != typeof y)
    8084        return false;
     
    123127    for (var test of tests)
    124128        runTest(test);
    125     // for (var i = 0; i < tests.length; i++)
    126     //     runTest(tests[i]);
    127129
    128130    if (errorReport !== "")
Note: See TracChangeset for help on using the changeset viewer.