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 GetByVal that accesses a value that was PutByVal'd, but where the PutByVal invoked a setter, works correctly. 25 26 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". 27 28 29 PASS foo(array, -1, i) is 42 30 PASS thingy is 0 31 PASS foo(array, -1, i) is 42 32 PASS thingy is 1 33 PASS foo(array, -1, i) is 42 34 PASS thingy is 2 35 PASS foo(array, -1, i) is 42 36 PASS thingy is 3 37 PASS foo(array, -1, i) is 42 38 PASS thingy is 4 39 PASS foo(array, -1, i) is 42 40 PASS thingy is 5 41 PASS foo(array, -1, i) is 42 42 PASS thingy is 6 43 PASS foo(array, -1, i) is 42 44 PASS thingy is 7 45 PASS foo(array, -1, i) is 42 46 PASS thingy is 8 47 PASS foo(array, -1, i) is 42 48 PASS thingy is 9 49 PASS foo(array, -1, i) is 42 50 PASS thingy is 10 51 PASS foo(array, -1, i) is 42 52 PASS thingy is 11 53 PASS foo(array, -1, i) is 42 54 PASS thingy is 12 55 PASS foo(array, -1, i) is 42 56 PASS thingy is 13 57 PASS foo(array, -1, i) is 42 58 PASS thingy is 14 59 PASS foo(array, -1, i) is 42 60 PASS thingy is 15 61 PASS foo(array, -1, i) is 42 62 PASS thingy is 16 63 PASS foo(array, -1, i) is 42 64 PASS thingy is 17 65 PASS foo(array, -1, i) is 42 66 PASS thingy is 18 67 PASS foo(array, -1, i) is 42 68 PASS thingy is 19 69 PASS foo(array, -1, i) is 42 70 PASS thingy is 20 71 PASS foo(array, -1, i) is 42 72 PASS thingy is 21 73 PASS foo(array, -1, i) is 42 74 PASS thingy is 22 75 PASS foo(array, -1, i) is 42 76 PASS thingy is 23 77 PASS foo(array, -1, i) is 42 78 PASS thingy is 24 79 PASS foo(array, -1, i) is 42 80 PASS thingy is 25 81 PASS foo(array, -1, i) is 42 82 PASS thingy is 26 83 PASS foo(array, -1, i) is 42 84 PASS thingy is 27 85 PASS foo(array, -1, i) is 42 86 PASS thingy is 28 87 PASS foo(array, -1, i) is 42 88 PASS thingy is 29 89 PASS foo(array, -1, i) is 42 90 PASS thingy is 30 91 PASS foo(array, -1, i) is 42 92 PASS thingy is 31 93 PASS foo(array, -1, i) is 42 94 PASS thingy is 32 95 PASS foo(array, -1, i) is 42 96 PASS thingy is 33 97 PASS foo(array, -1, i) is 42 98 PASS thingy is 34 99 PASS foo(array, -1, i) is 42 100 PASS thingy is 35 101 PASS foo(array, -1, i) is 42 102 PASS thingy is 36 103 PASS foo(array, -1, i) is 42 104 PASS thingy is 37 105 PASS foo(array, -1, i) is 42 106 PASS thingy is 38 107 PASS foo(array, -1, i) is 42 108 PASS thingy is 39 109 PASS foo(array, -1, i) is 42 110 PASS thingy is 40 111 PASS foo(array, -1, i) is 42 112 PASS thingy is 41 113 PASS foo(array, -1, i) is 42 114 PASS thingy is 42 115 PASS foo(array, -1, i) is 42 116 PASS thingy is 43 117 PASS foo(array, -1, i) is 42 118 PASS thingy is 44 119 PASS foo(array, -1, i) is 42 120 PASS thingy is 45 121 PASS foo(array, -1, i) is 42 122 PASS thingy is 46 123 PASS foo(array, -1, i) is 42 124 PASS thingy is 47 125 PASS foo(array, -1, i) is 42 126 PASS thingy is 48 127 PASS foo(array, -1, i) is 42 128 PASS thingy is 49 129 PASS foo(array, -1, i) is 42 130 PASS thingy is 50 131 PASS foo(array, -1, i) is 42 132 PASS thingy is 51 133 PASS foo(array, -1, i) is 42 134 PASS thingy is 52 135 PASS foo(array, -1, i) is 42 136 PASS thingy is 53 137 PASS foo(array, -1, i) is 42 138 PASS thingy is 54 139 PASS foo(array, -1, i) is 42 140 PASS thingy is 55 141 PASS foo(array, -1, i) is 42 142 PASS thingy is 56 143 PASS foo(array, -1, i) is 42 144 PASS thingy is 57 145 PASS foo(array, -1, i) is 42 146 PASS thingy is 58 147 PASS foo(array, -1, i) is 42 148 PASS thingy is 59 149 PASS foo(array, -1, i) is 42 150 PASS thingy is 60 151 PASS foo(array, -1, i) is 42 152 PASS thingy is 61 153 PASS foo(array, -1, i) is 42 154 PASS thingy is 62 155 PASS foo(array, -1, i) is 42 156 PASS thingy is 63 157 PASS foo(array, -1, i) is 42 158 PASS thingy is 64 159 PASS foo(array, -1, i) is 42 160 PASS thingy is 65 161 PASS foo(array, -1, i) is 42 162 PASS thingy is 66 163 PASS foo(array, -1, i) is 42 164 PASS thingy is 67 165 PASS foo(array, -1, i) is 42 166 PASS thingy is 68 167 PASS foo(array, -1, i) is 42 168 PASS thingy is 69 169 PASS foo(array, -1, i) is 42 170 PASS thingy is 70 171 PASS foo(array, -1, i) is 42 172 PASS thingy is 71 173 PASS foo(array, -1, i) is 42 174 PASS thingy is 72 175 PASS foo(array, -1, i) is 42 176 PASS thingy is 73 177 PASS foo(array, -1, i) is 42 178 PASS thingy is 74 179 PASS foo(array, -1, i) is 42 180 PASS thingy is 75 181 PASS foo(array, -1, i) is 42 182 PASS thingy is 76 183 PASS foo(array, -1, i) is 42 184 PASS thingy is 77 185 PASS foo(array, -1, i) is 42 186 PASS thingy is 78 187 PASS foo(array, -1, i) is 42 188 PASS thingy is 79 189 PASS foo(array, -1, i) is 42 190 PASS thingy is 80 191 PASS foo(array, -1, i) is 42 192 PASS thingy is 81 193 PASS foo(array, -1, i) is 42 194 PASS thingy is 82 195 PASS foo(array, -1, i) is 42 196 PASS thingy is 83 197 PASS foo(array, -1, i) is 42 198 PASS thingy is 84 199 PASS foo(array, -1, i) is 42 200 PASS thingy is 85 201 PASS foo(array, -1, i) is 42 202 PASS thingy is 86 203 PASS foo(array, -1, i) is 42 204 PASS thingy is 87 205 PASS foo(array, -1, i) is 42 206 PASS thingy is 88 207 PASS foo(array, -1, i) is 42 208 PASS thingy is 89 209 PASS foo(array, -1, i) is 42 210 PASS thingy is 90 211 PASS foo(array, -1, i) is 42 212 PASS thingy is 91 213 PASS foo(array, -1, i) is 42 214 PASS thingy is 92 215 PASS foo(array, -1, i) is 42 216 PASS thingy is 93 217 PASS foo(array, -1, i) is 42 218 PASS thingy is 94 219 PASS foo(array, -1, i) is 42 220 PASS thingy is 95 221 PASS foo(array, -1, i) is 42 222 PASS thingy is 96 223 PASS foo(array, -1, i) is 42 224 PASS thingy is 97 225 PASS foo(array, -1, i) is 42 226 PASS thingy is 98 227 PASS foo(array, -1, i) is 42 228 PASS thingy is 99 229 PASS foo(array, -1, i) is 42 230 PASS thingy is 100 231 PASS foo(array, -1, i) is 42 232 PASS thingy is 101 233 PASS foo(array, -1, i) is 42 234 PASS thingy is 102 235 PASS foo(array, -1, i) is 42 236 PASS thingy is 103 237 PASS foo(array, -1, i) is 42 238 PASS thingy is 104 239 PASS foo(array, -1, i) is 42 240 PASS thingy is 105 241 PASS foo(array, -1, i) is 42 242 PASS thingy is 106 243 PASS foo(array, -1, i) is 42 244 PASS thingy is 107 245 PASS foo(array, -1, i) is 42 246 PASS thingy is 108 247 PASS foo(array, -1, i) is 42 248 PASS thingy is 109 249 PASS foo(array, -1, i) is 42 250 PASS thingy is 110 251 PASS foo(array, -1, i) is 42 252 PASS thingy is 111 253 PASS foo(array, -1, i) is 42 254 PASS thingy is 112 255 PASS foo(array, -1, i) is 42 256 PASS thingy is 113 257 PASS foo(array, -1, i) is 42 258 PASS thingy is 114 259 PASS foo(array, -1, i) is 42 260 PASS thingy is 115 261 PASS foo(array, -1, i) is 42 262 PASS thingy is 116 263 PASS foo(array, -1, i) is 42 264 PASS thingy is 117 265 PASS foo(array, -1, i) is 42 266 PASS thingy is 118 267 PASS foo(array, -1, i) is 42 268 PASS thingy is 119 269 PASS foo(array, -1, i) is 42 270 PASS thingy is 120 271 PASS foo(array, -1, i) is 42 272 PASS thingy is 121 273 PASS foo(array, -1, i) is 42 274 PASS thingy is 122 275 PASS foo(array, -1, i) is 42 276 PASS thingy is 123 277 PASS foo(array, -1, i) is 42 278 PASS thingy is 124 279 PASS foo(array, -1, i) is 42 280 PASS thingy is 125 281 PASS foo(array, -1, i) is 42 282 PASS thingy is 126 283 PASS foo(array, -1, i) is 42 284 PASS thingy is 127 285 PASS foo(array, -1, i) is 42 286 PASS thingy is 128 287 PASS foo(array, -1, i) is 42 288 PASS thingy is 129 289 PASS foo(array, -1, i) is 42 290 PASS thingy is 130 291 PASS foo(array, -1, i) is 42 292 PASS thingy is 131 293 PASS foo(array, -1, i) is 42 294 PASS thingy is 132 295 PASS foo(array, -1, i) is 42 296 PASS thingy is 133 297 PASS foo(array, -1, i) is 42 298 PASS thingy is 134 299 PASS foo(array, -1, i) is 42 300 PASS thingy is 135 301 PASS foo(array, -1, i) is 42 302 PASS thingy is 136 303 PASS foo(array, -1, i) is 42 304 PASS thingy is 137 305 PASS foo(array, -1, i) is 42 306 PASS thingy is 138 307 PASS foo(array, -1, i) is 42 308 PASS thingy is 139 309 PASS foo(array, -1, i) is 42 310 PASS thingy is 140 311 PASS foo(array, -1, i) is 42 312 PASS thingy is 141 313 PASS foo(array, -1, i) is 42 314 PASS thingy is 142 315 PASS foo(array, -1, i) is 42 316 PASS thingy is 143 317 PASS foo(array, -1, i) is 42 318 PASS thingy is 144 319 PASS foo(array, -1, i) is 42 320 PASS thingy is 145 321 PASS foo(array, -1, i) is 42 322 PASS thingy is 146 323 PASS foo(array, -1, i) is 42 324 PASS thingy is 147 325 PASS foo(array, -1, i) is 42 326 PASS thingy is 148 327 PASS foo(array, -1, i) is 42 328 PASS thingy is 149 329 PASS foo(array, -1, i) is 42 330 PASS thingy is 150 331 PASS foo(array, -1, i) is 42 332 PASS thingy is 151 333 PASS foo(array, -1, i) is 42 334 PASS thingy is 152 335 PASS foo(array, -1, i) is 42 336 PASS thingy is 153 337 PASS foo(array, -1, i) is 42 338 PASS thingy is 154 339 PASS foo(array, -1, i) is 42 340 PASS thingy is 155 341 PASS foo(array, -1, i) is 42 342 PASS thingy is 156 343 PASS foo(array, -1, i) is 42 344 PASS thingy is 157 345 PASS foo(array, -1, i) is 42 346 PASS thingy is 158 347 PASS foo(array, -1, i) is 42 348 PASS thingy is 159 349 PASS foo(array, -1, i) is 42 350 PASS thingy is 160 351 PASS foo(array, -1, i) is 42 352 PASS thingy is 161 353 PASS foo(array, -1, i) is 42 354 PASS thingy is 162 355 PASS foo(array, -1, i) is 42 356 PASS thingy is 163 357 PASS foo(array, -1, i) is 42 358 PASS thingy is 164 359 PASS foo(array, -1, i) is 42 360 PASS thingy is 165 361 PASS foo(array, -1, i) is 42 362 PASS thingy is 166 363 PASS foo(array, -1, i) is 42 364 PASS thingy is 167 365 PASS foo(array, -1, i) is 42 366 PASS thingy is 168 367 PASS foo(array, -1, i) is 42 368 PASS thingy is 169 369 PASS foo(array, -1, i) is 42 370 PASS thingy is 170 371 PASS foo(array, -1, i) is 42 372 PASS thingy is 171 373 PASS foo(array, -1, i) is 42 374 PASS thingy is 172 375 PASS foo(array, -1, i) is 42 376 PASS thingy is 173 377 PASS foo(array, -1, i) is 42 378 PASS thingy is 174 379 PASS foo(array, -1, i) is 42 380 PASS thingy is 175 381 PASS foo(array, -1, i) is 42 382 PASS thingy is 176 383 PASS foo(array, -1, i) is 42 384 PASS thingy is 177 385 PASS foo(array, -1, i) is 42 386 PASS thingy is 178 387 PASS foo(array, -1, i) is 42 388 PASS thingy is 179 389 PASS foo(array, -1, i) is 42 390 PASS thingy is 180 391 PASS foo(array, -1, i) is 42 392 PASS thingy is 181 393 PASS foo(array, -1, i) is 42 394 PASS thingy is 182 395 PASS foo(array, -1, i) is 42 396 PASS thingy is 183 397 PASS foo(array, -1, i) is 42 398 PASS thingy is 184 399 PASS foo(array, -1, i) is 42 400 PASS thingy is 185 401 PASS foo(array, -1, i) is 42 402 PASS thingy is 186 403 PASS foo(array, -1, i) is 42 404 PASS thingy is 187 405 PASS foo(array, -1, i) is 42 406 PASS thingy is 188 407 PASS foo(array, -1, i) is 42 408 PASS thingy is 189 409 PASS foo(array, -1, i) is 42 410 PASS thingy is 190 411 PASS foo(array, -1, i) is 42 412 PASS thingy is 191 413 PASS foo(array, -1, i) is 42 414 PASS thingy is 192 415 PASS foo(array, -1, i) is 42 416 PASS thingy is 193 417 PASS foo(array, -1, i) is 42 418 PASS thingy is 194 419 PASS foo(array, -1, i) is 42 420 PASS thingy is 195 421 PASS foo(array, -1, i) is 42 422 PASS thingy is 196 423 PASS foo(array, -1, i) is 42 424 PASS thingy is 197 425 PASS foo(array, -1, i) is 42 426 PASS thingy is 198 427 PASS foo(array, -1, i) is 42 428 PASS thingy is 199 429 PASS successfullyParsed is true 430 431 TEST COMPLETE 432 433