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 the CompareEq optimization for the case where one side is predicted final object and the other side is predicted either final object or other (i.e. null or undefined) doesn't assert when both sides are also proven final object.
     25 
     26 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
     27 
     28 
     29 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
     30 PASS foo(o, o) is [42, 42, true]
     31 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
     32 PASS foo(o, o) is [42, 42, true]
     33 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
     34 PASS foo(o, o) is [42, 42, true]
     35 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
     36 PASS foo(o, o) is [42, 42, true]
     37 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
     38 PASS foo(o, o) is [42, 42, true]
     39 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
     40 PASS foo(o, o) is [42, 42, true]
     41 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
     42 PASS foo(o, o) is [42, 42, true]
     43 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
     44 PASS foo(o, o) is [42, 42, true]
     45 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
     46 PASS foo(o, o) is [42, 42, true]
     47 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
     48 PASS foo(o, o) is [42, 42, true]
     49 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
     50 PASS foo(o, o) is [42, 42, true]
     51 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
     52 PASS foo(o, o) is [42, 42, true]
     53 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
     54 PASS foo(o, o) is [42, 42, true]
     55 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
     56 PASS foo(o, o) is [42, 42, true]
     57 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
     58 PASS foo(o, o) is [42, 42, true]
     59 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
     60 PASS foo(o, o) is [42, 42, true]
     61 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
     62 PASS foo(o, o) is [42, 42, true]
     63 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
     64 PASS foo(o, o) is [42, 42, true]
     65 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
     66 PASS foo(o, o) is [42, 42, true]
     67 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
     68 PASS foo(o, o) is [42, 42, true]
     69 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
     70 PASS foo(o, o) is [42, 42, true]
     71 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
     72 PASS foo(o, o) is [42, 42, true]
     73 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
     74 PASS foo(o, o) is [42, 42, true]
     75 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
     76 PASS foo(o, o) is [42, 42, true]
     77 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
     78 PASS foo(o, o) is [42, 42, true]
     79 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
     80 PASS foo(o, o) is [42, 42, true]
     81 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
     82 PASS foo(o, o) is [42, 42, true]
     83 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
     84 PASS foo(o, o) is [42, 42, true]
     85 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
     86 PASS foo(o, o) is [42, 42, true]
     87 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
     88 PASS foo(o, o) is [42, 42, true]
     89 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
     90 PASS foo(o, o) is [42, 42, true]
     91 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
     92 PASS foo(o, o) is [42, 42, true]
     93 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
     94 PASS foo(o, o) is [42, 42, true]
     95 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
     96 PASS foo(o, o) is [42, 42, true]
     97 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
     98 PASS foo(o, o) is [42, 42, true]
     99 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
    100 PASS foo(o, o) is [42, 42, true]
    101 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
    102 PASS foo(o, o) is [42, 42, true]
    103 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
    104 PASS foo(o, o) is [42, 42, true]
    105 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
    106 PASS foo(o, o) is [42, 42, true]
    107 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
    108 PASS foo(o, o) is [42, 42, true]
    109 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
    110 PASS foo(o, o) is [42, 42, true]
    111 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
    112 PASS foo(o, o) is [42, 42, true]
    113 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
    114 PASS foo(o, o) is [42, 42, true]
    115 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
    116 PASS foo(o, o) is [42, 42, true]
    117 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
    118 PASS foo(o, o) is [42, 42, true]
    119 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
    120 PASS foo(o, o) is [42, 42, true]
    121 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
    122 PASS foo(o, o) is [42, 42, true]
    123 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
    124 PASS foo(o, o) is [42, 42, true]
    125 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
    126 PASS foo(o, o) is [42, 42, true]
    127 PASS foo({f:42}, null) threw exception TypeError: Cannot read property 'f' of null.
    128 PASS foo(o, o) is [42, 42, true]
    129 PASS successfullyParsed is true
    130 
    131 TEST COMPLETE
    132 
    133