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 a side-effecting ValueToInt32 only executes once when there is an OSR exit. 25 26 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". 27 28 29 PASS result.length is 2 30 PASS result[0] is 5 31 PASS result.length is 2 32 PASS result[0] is 5 33 PASS result.length is 2 34 PASS result[0] is 5 35 PASS result.length is 2 36 PASS result[0] is 5 37 PASS result.length is 2 38 PASS result[0] is 5 39 PASS result.length is 2 40 PASS result[0] is 5 41 PASS result.length is 2 42 PASS result[0] is 5 43 PASS result.length is 2 44 PASS result[0] is 5 45 PASS result.length is 2 46 PASS result[0] is 5 47 PASS result.length is 2 48 PASS result[0] is 5 49 PASS result.length is 2 50 PASS result[0] is 5 51 PASS result.length is 2 52 PASS result[0] is 5 53 PASS result.length is 2 54 PASS result[0] is 5 55 PASS result.length is 2 56 PASS result[0] is 5 57 PASS result.length is 2 58 PASS result[0] is 5 59 PASS result.length is 2 60 PASS result[0] is 5 61 PASS result.length is 2 62 PASS result[0] is 5 63 PASS result.length is 2 64 PASS result[0] is 5 65 PASS result.length is 2 66 PASS result[0] is 5 67 PASS result.length is 2 68 PASS result[0] is 5 69 PASS result.length is 2 70 PASS result[0] is 5 71 PASS result.length is 2 72 PASS result[0] is 5 73 PASS result.length is 2 74 PASS result[0] is 5 75 PASS result.length is 2 76 PASS result[0] is 5 77 PASS result.length is 2 78 PASS result[0] is 5 79 PASS result.length is 2 80 PASS result[0] is 5 81 PASS result.length is 2 82 PASS result[0] is 5 83 PASS result.length is 2 84 PASS result[0] is 5 85 PASS result.length is 2 86 PASS result[0] is 5 87 PASS result.length is 2 88 PASS result[0] is 5 89 PASS result.length is 2 90 PASS result[0] is 5 91 PASS result.length is 2 92 PASS result[0] is 5 93 PASS result.length is 2 94 PASS result[0] is 5 95 PASS result.length is 2 96 PASS result[0] is 5 97 PASS result.length is 2 98 PASS result[0] is 5 99 PASS result.length is 2 100 PASS result[0] is 5 101 PASS result.length is 2 102 PASS result[0] is 5 103 PASS result.length is 2 104 PASS result[0] is 5 105 PASS result.length is 2 106 PASS result[0] is 5 107 PASS result.length is 2 108 PASS result[0] is 5 109 PASS result.length is 2 110 PASS result[0] is 5 111 PASS result.length is 2 112 PASS result[0] is 5 113 PASS result.length is 2 114 PASS result[0] is 5 115 PASS result.length is 2 116 PASS result[0] is 5 117 PASS result.length is 2 118 PASS result[0] is 5 119 PASS result.length is 2 120 PASS result[0] is 5 121 PASS result.length is 2 122 PASS result[0] is 5 123 PASS result.length is 2 124 PASS result[0] is 5 125 PASS result.length is 2 126 PASS result[0] is 5 127 PASS result.length is 2 128 PASS result[0] is 5 129 PASS result.length is 2 130 PASS result[0] is 5 131 PASS result.length is 2 132 PASS result[0] is 5 133 PASS result.length is 2 134 PASS result[0] is 5 135 PASS result.length is 2 136 PASS result[0] is 5 137 PASS result.length is 2 138 PASS result[0] is 5 139 PASS result.length is 2 140 PASS result[0] is 5 141 PASS result.length is 2 142 PASS result[0] is 5 143 PASS result.length is 2 144 PASS result[0] is 5 145 PASS result.length is 2 146 PASS result[0] is 5 147 PASS result.length is 2 148 PASS result[0] is 5 149 PASS result.length is 2 150 PASS result[0] is 5 151 PASS result.length is 2 152 PASS result[0] is 5 153 PASS result.length is 2 154 PASS result[0] is 5 155 PASS result.length is 2 156 PASS result[0] is 5 157 PASS result.length is 2 158 PASS result[0] is 5 159 PASS result.length is 2 160 PASS result[0] is 5 161 PASS result.length is 2 162 PASS result[0] is 5 163 PASS result.length is 2 164 PASS result[0] is 5 165 PASS result.length is 2 166 PASS result[0] is 5 167 PASS result.length is 2 168 PASS result[0] is 5 169 PASS result.length is 2 170 PASS result[0] is 5 171 PASS result.length is 2 172 PASS result[0] is 5 173 PASS result.length is 2 174 PASS result[0] is 5 175 PASS result.length is 2 176 PASS result[0] is 5 177 PASS result.length is 2 178 PASS result[0] is 5 179 PASS result.length is 2 180 PASS result[0] is 5 181 PASS result.length is 2 182 PASS result[0] is 5 183 PASS result.length is 2 184 PASS result[0] is 5 185 PASS result.length is 2 186 PASS result[0] is 5 187 PASS result.length is 2 188 PASS result[0] is 5 189 PASS result.length is 2 190 PASS result[0] is 5 191 PASS result.length is 2 192 PASS result[0] is 5 193 PASS result.length is 2 194 PASS result[0] is 5 195 PASS result.length is 2 196 PASS result[0] is 5 197 PASS result.length is 2 198 PASS result[0] is 5 199 PASS result.length is 2 200 PASS result[0] is 5 201 PASS result.length is 2 202 PASS result[0] is 5 203 PASS result.length is 2 204 PASS result[0] is 5 205 PASS result.length is 2 206 PASS result[0] is 5 207 PASS result.length is 2 208 PASS result[0] is 5 209 PASS result.length is 2 210 PASS result[0] is 5 211 PASS result.length is 2 212 PASS result[0] is 5 213 PASS result.length is 2 214 PASS result[0] is 5 215 PASS result.length is 2 216 PASS result[0] is 5 217 PASS result.length is 2 218 PASS result[0] is 5 219 PASS result.length is 2 220 PASS result[0] is 5 221 PASS result.length is 2 222 PASS result[0] is 5 223 PASS result.length is 2 224 PASS result[0] is 5 225 PASS result.length is 2 226 PASS result[0] is 5 227 PASS result.length is 2 228 PASS result[0] is 5 229 PASS counter is 100 230 PASS successfullyParsed is true 231 232 TEST COMPLETE 233 234