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 DFG checks that the toString method didn't become bad even if the StringObject already had a CheckStructure. 25 26 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". 27 28 29 PASS foo.call(new String("foo")) is "foo" 30 PASS foo.call(new String("foo")) is "foo" 31 PASS foo.call(new String("foo")) is "foo" 32 PASS foo.call(new String("foo")) is "foo" 33 PASS foo.call(new String("foo")) is "foo" 34 PASS foo.call(new String("foo")) is "foo" 35 PASS foo.call(new String("foo")) is "foo" 36 PASS foo.call(new String("foo")) is "foo" 37 PASS foo.call(new String("foo")) is "foo" 38 PASS foo.call(new String("foo")) is "foo" 39 PASS foo.call(new String("foo")) is "foo" 40 PASS foo.call(new String("foo")) is "foo" 41 PASS foo.call(new String("foo")) is "foo" 42 PASS foo.call(new String("foo")) is "foo" 43 PASS foo.call(new String("foo")) is "foo" 44 PASS foo.call(new String("foo")) is "foo" 45 PASS foo.call(new String("foo")) is "foo" 46 PASS foo.call(new String("foo")) is "foo" 47 PASS foo.call(new String("foo")) is "foo" 48 PASS foo.call(new String("foo")) is "foo" 49 PASS foo.call(new String("foo")) is "foo" 50 PASS foo.call(new String("foo")) is "foo" 51 PASS foo.call(new String("foo")) is "foo" 52 PASS foo.call(new String("foo")) is "foo" 53 PASS foo.call(new String("foo")) is "foo" 54 PASS foo.call(new String("foo")) is "foo" 55 PASS foo.call(new String("foo")) is "foo" 56 PASS foo.call(new String("foo")) is "foo" 57 PASS foo.call(new String("foo")) is "foo" 58 PASS foo.call(new String("foo")) is "foo" 59 PASS foo.call(new String("foo")) is "foo" 60 PASS foo.call(new String("foo")) is "foo" 61 PASS foo.call(new String("foo")) is "foo" 62 PASS foo.call(new String("foo")) is "foo" 63 PASS foo.call(new String("foo")) is "foo" 64 PASS foo.call(new String("foo")) is "foo" 65 PASS foo.call(new String("foo")) is "foo" 66 PASS foo.call(new String("foo")) is "foo" 67 PASS foo.call(new String("foo")) is "foo" 68 PASS foo.call(new String("foo")) is "foo" 69 PASS foo.call(new String("foo")) is "foo" 70 PASS foo.call(new String("foo")) is "foo" 71 PASS foo.call(new String("foo")) is "foo" 72 PASS foo.call(new String("foo")) is "foo" 73 PASS foo.call(new String("foo")) is "foo" 74 PASS foo.call(new String("foo")) is "foo" 75 PASS foo.call(new String("foo")) is "foo" 76 PASS foo.call(new String("foo")) is "foo" 77 PASS foo.call(new String("foo")) is "foo" 78 PASS foo.call(new String("foo")) is "foo" 79 PASS foo.call(new String("foo")) is "foo" 80 PASS foo.call(new String("foo")) is "foo" 81 PASS foo.call(new String("foo")) is "foo" 82 PASS foo.call(new String("foo")) is "foo" 83 PASS foo.call(new String("foo")) is "foo" 84 PASS foo.call(new String("foo")) is "foo" 85 PASS foo.call(new String("foo")) is "foo" 86 PASS foo.call(new String("foo")) is "foo" 87 PASS foo.call(new String("foo")) is "foo" 88 PASS foo.call(new String("foo")) is "foo" 89 PASS foo.call(new String("foo")) is "foo" 90 PASS foo.call(new String("foo")) is "foo" 91 PASS foo.call(new String("foo")) is "foo" 92 PASS foo.call(new String("foo")) is "foo" 93 PASS foo.call(new String("foo")) is "foo" 94 PASS foo.call(new String("foo")) is "foo" 95 PASS foo.call(new String("foo")) is "foo" 96 PASS foo.call(new String("foo")) is "foo" 97 PASS foo.call(new String("foo")) is "foo" 98 PASS foo.call(new String("foo")) is "foo" 99 PASS foo.call(new String("foo")) is "foo" 100 PASS foo.call(new String("foo")) is "foo" 101 PASS foo.call(new String("foo")) is "foo" 102 PASS foo.call(new String("foo")) is "foo" 103 PASS foo.call(new String("foo")) is "foo" 104 PASS foo.call(new String("foo")) is "foo" 105 PASS foo.call(new String("foo")) is "foo" 106 PASS foo.call(new String("foo")) is "foo" 107 PASS foo.call(new String("foo")) is "foo" 108 PASS foo.call(new String("foo")) is "foo" 109 PASS foo.call(new String("foo")) is "foo" 110 PASS foo.call(new String("foo")) is "foo" 111 PASS foo.call(new String("foo")) is "foo" 112 PASS foo.call(new String("foo")) is "foo" 113 PASS foo.call(new String("foo")) is "foo" 114 PASS foo.call(new String("foo")) is "foo" 115 PASS foo.call(new String("foo")) is "foo" 116 PASS foo.call(new String("foo")) is "foo" 117 PASS foo.call(new String("foo")) is "foo" 118 PASS foo.call(new String("foo")) is "foo" 119 PASS foo.call(new String("foo")) is "foo" 120 PASS foo.call(new String("foo")) is "foo" 121 PASS foo.call(new String("foo")) is "foo" 122 PASS foo.call(new String("foo")) is "foo" 123 PASS foo.call(new String("foo")) is "foo" 124 PASS foo.call(new String("foo")) is "foo" 125 PASS foo.call(new String("foo")) is "foo" 126 PASS foo.call(new String("foo")) is "foo" 127 PASS foo.call(new String("foo")) is "foo" 128 PASS foo.call(new String("foo")) is "42" 129 PASS successfullyParsed is true 130 131 TEST COMPLETE 132 133