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 that having a dead, and redundant, use of array.length doesn't cause compiler crashes.
     25 
     26 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
     27 
     28 
     29 PASS foo([1, 2, 3]) is 3
     30 PASS foo([1, 2, 3]) is 3
     31 PASS foo([1, 2, 3]) is 3
     32 PASS foo([1, 2, 3]) is 3
     33 PASS foo([1, 2, 3]) is 3
     34 PASS foo([1, 2, 3]) is 3
     35 PASS foo([1, 2, 3]) is 3
     36 PASS foo([1, 2, 3]) is 3
     37 PASS foo([1, 2, 3]) is 3
     38 PASS foo([1, 2, 3]) is 3
     39 PASS foo([1, 2, 3]) is 3
     40 PASS foo([1, 2, 3]) is 3
     41 PASS foo([1, 2, 3]) is 3
     42 PASS foo([1, 2, 3]) is 3
     43 PASS foo([1, 2, 3]) is 3
     44 PASS foo([1, 2, 3]) is 3
     45 PASS foo([1, 2, 3]) is 3
     46 PASS foo([1, 2, 3]) is 3
     47 PASS foo([1, 2, 3]) is 3
     48 PASS foo([1, 2, 3]) is 3
     49 PASS foo([1, 2, 3]) is 3
     50 PASS foo([1, 2, 3]) is 3
     51 PASS foo([1, 2, 3]) is 3
     52 PASS foo([1, 2, 3]) is 3
     53 PASS foo([1, 2, 3]) is 3
     54 PASS foo([1, 2, 3]) is 3
     55 PASS foo([1, 2, 3]) is 3
     56 PASS foo([1, 2, 3]) is 3
     57 PASS foo([1, 2, 3]) is 3
     58 PASS foo([1, 2, 3]) is 3
     59 PASS foo([1, 2, 3]) is 3
     60 PASS foo([1, 2, 3]) is 3
     61 PASS foo([1, 2, 3]) is 3
     62 PASS foo([1, 2, 3]) is 3
     63 PASS foo([1, 2, 3]) is 3
     64 PASS foo([1, 2, 3]) is 3
     65 PASS foo([1, 2, 3]) is 3
     66 PASS foo([1, 2, 3]) is 3
     67 PASS foo([1, 2, 3]) is 3
     68 PASS foo([1, 2, 3]) is 3
     69 PASS foo([1, 2, 3]) is 3
     70 PASS foo([1, 2, 3]) is 3
     71 PASS foo([1, 2, 3]) is 3
     72 PASS foo([1, 2, 3]) is 3
     73 PASS foo([1, 2, 3]) is 3
     74 PASS foo([1, 2, 3]) is 3
     75 PASS foo([1, 2, 3]) is 3
     76 PASS foo([1, 2, 3]) is 3
     77 PASS foo([1, 2, 3]) is 3
     78 PASS foo([1, 2, 3]) is 3
     79 PASS foo([1, 2, 3]) is 3
     80 PASS foo([1, 2, 3]) is 3
     81 PASS foo([1, 2, 3]) is 3
     82 PASS foo([1, 2, 3]) is 3
     83 PASS foo([1, 2, 3]) is 3
     84 PASS foo([1, 2, 3]) is 3
     85 PASS foo([1, 2, 3]) is 3
     86 PASS foo([1, 2, 3]) is 3
     87 PASS foo([1, 2, 3]) is 3
     88 PASS foo([1, 2, 3]) is 3
     89 PASS foo([1, 2, 3]) is 3
     90 PASS foo([1, 2, 3]) is 3
     91 PASS foo([1, 2, 3]) is 3
     92 PASS foo([1, 2, 3]) is 3
     93 PASS foo([1, 2, 3]) is 3
     94 PASS foo([1, 2, 3]) is 3
     95 PASS foo([1, 2, 3]) is 3
     96 PASS foo([1, 2, 3]) is 3
     97 PASS foo([1, 2, 3]) is 3
     98 PASS foo([1, 2, 3]) is 3
     99 PASS foo([1, 2, 3]) is 3
    100 PASS foo([1, 2, 3]) is 3
    101 PASS foo([1, 2, 3]) is 3
    102 PASS foo([1, 2, 3]) is 3
    103 PASS foo([1, 2, 3]) is 3
    104 PASS foo([1, 2, 3]) is 3
    105 PASS foo([1, 2, 3]) is 3
    106 PASS foo([1, 2, 3]) is 3
    107 PASS foo([1, 2, 3]) is 3
    108 PASS foo([1, 2, 3]) is 3
    109 PASS foo([1, 2, 3]) is 3
    110 PASS foo([1, 2, 3]) is 3
    111 PASS foo([1, 2, 3]) is 3
    112 PASS foo([1, 2, 3]) is 3
    113 PASS foo([1, 2, 3]) is 3
    114 PASS foo([1, 2, 3]) is 3
    115 PASS foo([1, 2, 3]) is 3
    116 PASS foo([1, 2, 3]) is 3
    117 PASS foo([1, 2, 3]) is 3
    118 PASS foo([1, 2, 3]) is 3
    119 PASS foo([1, 2, 3]) is 3
    120 PASS foo([1, 2, 3]) is 3
    121 PASS foo([1, 2, 3]) is 3
    122 PASS foo([1, 2, 3]) is 3
    123 PASS foo([1, 2, 3]) is 3
    124 PASS foo([1, 2, 3]) is 3
    125 PASS foo([1, 2, 3]) is 3
    126 PASS foo([1, 2, 3]) is 3
    127 PASS foo([1, 2, 3]) is 3
    128 PASS foo([1, 2, 3]) is 3
    129 PASS foo([1, 2, 3]) is 3
    130 PASS foo([1, 2, 3]) is 3
    131 PASS foo([1, 2, 3]) is 3
    132 PASS foo([1, 2, 3]) is 3
    133 PASS foo([1, 2, 3]) is 3
    134 PASS foo([1, 2, 3]) is 3
    135 PASS foo([1, 2, 3]) is 3
    136 PASS foo([1, 2, 3]) is 3
    137 PASS foo([1, 2, 3]) is 3
    138 PASS foo([1, 2, 3]) is 3
    139 PASS foo([1, 2, 3]) is 3
    140 PASS foo([1, 2, 3]) is 3
    141 PASS foo([1, 2, 3]) is 3
    142 PASS foo([1, 2, 3]) is 3
    143 PASS foo([1, 2, 3]) is 3
    144 PASS foo([1, 2, 3]) is 3
    145 PASS foo([1, 2, 3]) is 3
    146 PASS foo([1, 2, 3]) is 3
    147 PASS foo([1, 2, 3]) is 3
    148 PASS foo([1, 2, 3]) is 3
    149 PASS foo([1, 2, 3]) is 3
    150 PASS foo([1, 2, 3]) is 3
    151 PASS foo([1, 2, 3]) is 3
    152 PASS foo([1, 2, 3]) is 3
    153 PASS foo([1, 2, 3]) is 3
    154 PASS foo([1, 2, 3]) is 3
    155 PASS foo([1, 2, 3]) is 3
    156 PASS foo([1, 2, 3]) is 3
    157 PASS successfullyParsed is true
    158 
    159 TEST COMPLETE
    160 
    161