Home | History | Annotate | Download | only in webkit
      1 # Copyright 2013 the V8 project authors. All rights reserved.
      2 # Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
      3 #
      4 # Redistribution and use in source and binary forms, with or without
      5 # modification, are permitted provided that the following conditions
      6 # are met:
      7 # 1.  Redistributions of source code must retain the above copyright
      8 #     notice, this list of conditions and the following disclaimer.
      9 # 2.  Redistributions in binary form must reproduce the above copyright
     10 #     notice, this list of conditions and the following disclaimer in the
     11 #     documentation and/or other materials provided with the distribution.
     12 #
     13 # THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND ANY
     14 # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
     15 # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
     16 # DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY
     17 # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
     18 # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
     19 # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
     20 # ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     21 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
     22 # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     23 
     24 Tests whether bytecode codegen properly handles temporaries.
     25 
     26 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
     27 
     28 
     29 PASS a is true
     30 PASS b is false
     31 PASS assign_test1() is 'PASS'
     32 PASS assign_test2() is 'PASS'
     33 PASS assign_test3() is 'PASS'
     34 PASS testObject4.test is 'PASS'
     35 PASS testObject5.test is 'PASS'
     36 PASS assign_test6() is 'PASS'
     37 PASS assign_test7() is 'PASS'
     38 PASS assign_test8() is 'PASS'
     39 PASS assign_test9() is 'PASS'
     40 PASS testObject10.test is 'PASS'
     41 PASS assign_test11() is 'PASS'
     42 PASS assign_test12() is 'PASS'
     43 PASS assign_test13() is 'PASS'
     44 PASS assign_test14() is 'PASS'
     45 PASS assign_test15() is 'PASS'
     46 PASS assign_test16() is 2
     47 PASS a17 is 3
     48 PASS assign_test18() is 3
     49 PASS a19.b is 3
     50 PASS assign_test20() is 3
     51 PASS a21['b'] is 3
     52 PASS assign_test22() is 3
     53 PASS assign_test23() is 3
     54 PASS assign_test24() is 3
     55 PASS assign_test25() is 3
     56 PASS assign_test26() is 3
     57 PASS assign_test27() is 3
     58 PASS assign_test28() is 3
     59 PASS assign_test29() is 3
     60 PASS assign_test30() is 'fooNaN'
     61 PASS assign_test31() is 'PASS'
     62 PASS bracket_test1() is -1
     63 PASS bracket_test2() is 1
     64 PASS bracket_test3() is 0
     65 PASS bracket_test4() is 0
     66 PASS bracket_test5() is 1
     67 PASS bracket_test6() is 1
     68 PASS mult_test1() is 2
     69 PASS mult_test2() is 2
     70 PASS mult_test3() is 2
     71 PASS div_test1() is 0.5
     72 PASS div_test2() is 0.5
     73 PASS div_test3() is 0.5
     74 PASS mod_test1() is 1
     75 PASS mod_test2() is 1
     76 PASS mod_test3() is 1
     77 PASS add_test1() is 3
     78 PASS add_test2() is 3
     79 PASS add_test3() is 3
     80 PASS sub_test1() is -1
     81 PASS sub_test2() is -1
     82 PASS sub_test3() is -1
     83 PASS lshift_test1() is 4
     84 PASS lshift_test2() is 4
     85 PASS lshift_test3() is 4
     86 PASS rshift_test1() is 1
     87 PASS rshift_test2() is 1
     88 PASS rshift_test3() is 1
     89 PASS urshift_test1() is 1
     90 PASS urshift_test2() is 1
     91 PASS urshift_test3() is 1
     92 PASS less_test1() is true
     93 PASS less_test2() is true
     94 PASS less_test3() is true
     95 PASS greater_test1() is true
     96 PASS greater_test2() is true
     97 PASS greater_test3() is true
     98 PASS lesseq_test1() is true
     99 PASS lesseq_test2() is true
    100 PASS lesseq_test3() is true
    101 PASS greatereq_test1() is true
    102 PASS greatereq_test2() is true
    103 PASS greatereq_test3() is true
    104 PASS instanceof_test1() is true
    105 PASS instanceof_test2() is true
    106 PASS instanceof_test3() is true
    107 PASS in_test1() is true
    108 PASS in_test2() is true
    109 PASS in_test3() is true
    110 PASS eq_test1() is false
    111 PASS eq_test2() is false
    112 PASS eq_test3() is false
    113 PASS neq_test1() is true
    114 PASS neq_test2() is true
    115 PASS neq_test3() is true
    116 PASS stricteq_test1() is false
    117 PASS stricteq_test2() is false
    118 PASS stricteq_test3() is false
    119 PASS nstricteq_test1() is true
    120 PASS nstricteq_test2() is true
    121 PASS nstricteq_test3() is true
    122 PASS bitand_test1() is 0
    123 PASS bitand_test2() is 0
    124 PASS bitand_test3() is 0
    125 PASS bitor_test1() is 3
    126 PASS bitor_test2() is 3
    127 PASS bitor_test3() is 3
    128 PASS bitxor_test1() is 3
    129 PASS bitxor_test2() is 3
    130 PASS bitxor_test3() is 3
    131 PASS switch_test1() is true
    132 PASS switch_test2() is true
    133 PASS switch_test3() is true
    134 PASS construct_test() is true
    135 PASS [(0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), ].length is 64
    136 PASS successfullyParsed is true
    137 
    138 TEST COMPLETE
    139 
    140