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 if you alias the arguments in a very small function, arguments simplification still works. 25 26 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". 27 28 29 PASS foo(i, i + 1) is 1 30 PASS foo(i, i + 1) is 3 31 PASS foo(i, i + 1) is 5 32 PASS foo(i, i + 1) is 7 33 PASS foo(i, i + 1) is 9 34 PASS foo(i, i + 1) is 11 35 PASS foo(i, i + 1) is 13 36 PASS foo(i, i + 1) is 15 37 PASS foo(i, i + 1) is 17 38 PASS foo(i, i + 1) is 19 39 PASS foo(i, i + 1) is 21 40 PASS foo(i, i + 1) is 23 41 PASS foo(i, i + 1) is 25 42 PASS foo(i, i + 1) is 27 43 PASS foo(i, i + 1) is 29 44 PASS foo(i, i + 1) is 31 45 PASS foo(i, i + 1) is 33 46 PASS foo(i, i + 1) is 35 47 PASS foo(i, i + 1) is 37 48 PASS foo(i, i + 1) is 39 49 PASS foo(i, i + 1) is 41 50 PASS foo(i, i + 1) is 43 51 PASS foo(i, i + 1) is 45 52 PASS foo(i, i + 1) is 47 53 PASS foo(i, i + 1) is 49 54 PASS foo(i, i + 1) is 51 55 PASS foo(i, i + 1) is 53 56 PASS foo(i, i + 1) is 55 57 PASS foo(i, i + 1) is 57 58 PASS foo(i, i + 1) is 59 59 PASS foo(i, i + 1) is 61 60 PASS foo(i, i + 1) is 63 61 PASS foo(i, i + 1) is 65 62 PASS foo(i, i + 1) is 67 63 PASS foo(i, i + 1) is 69 64 PASS foo(i, i + 1) is 71 65 PASS foo(i, i + 1) is 73 66 PASS foo(i, i + 1) is 75 67 PASS foo(i, i + 1) is 77 68 PASS foo(i, i + 1) is 79 69 PASS foo(i, i + 1) is 81 70 PASS foo(i, i + 1) is 83 71 PASS foo(i, i + 1) is 85 72 PASS foo(i, i + 1) is 87 73 PASS foo(i, i + 1) is 89 74 PASS foo(i, i + 1) is 91 75 PASS foo(i, i + 1) is 93 76 PASS foo(i, i + 1) is 95 77 PASS foo(i, i + 1) is 97 78 PASS foo(i, i + 1) is 99 79 PASS foo(i, i + 1) is 101 80 PASS foo(i, i + 1) is 103 81 PASS foo(i, i + 1) is 105 82 PASS foo(i, i + 1) is 107 83 PASS foo(i, i + 1) is 109 84 PASS foo(i, i + 1) is 111 85 PASS foo(i, i + 1) is 113 86 PASS foo(i, i + 1) is 115 87 PASS foo(i, i + 1) is 117 88 PASS foo(i, i + 1) is 119 89 PASS foo(i, i + 1) is 121 90 PASS foo(i, i + 1) is 123 91 PASS foo(i, i + 1) is 125 92 PASS foo(i, i + 1) is 127 93 PASS foo(i, i + 1) is 129 94 PASS foo(i, i + 1) is 131 95 PASS foo(i, i + 1) is 133 96 PASS foo(i, i + 1) is 135 97 PASS foo(i, i + 1) is 137 98 PASS foo(i, i + 1) is 139 99 PASS foo(i, i + 1) is 141 100 PASS foo(i, i + 1) is 143 101 PASS foo(i, i + 1) is 145 102 PASS foo(i, i + 1) is 147 103 PASS foo(i, i + 1) is 149 104 PASS foo(i, i + 1) is 151 105 PASS foo(i, i + 1) is 153 106 PASS foo(i, i + 1) is 155 107 PASS foo(i, i + 1) is 157 108 PASS foo(i, i + 1) is 159 109 PASS foo(i, i + 1) is 161 110 PASS foo(i, i + 1) is 163 111 PASS foo(i, i + 1) is 165 112 PASS foo(i, i + 1) is 167 113 PASS foo(i, i + 1) is 169 114 PASS foo(i, i + 1) is 171 115 PASS foo(i, i + 1) is 173 116 PASS foo(i, i + 1) is 175 117 PASS foo(i, i + 1) is 177 118 PASS foo(i, i + 1) is 179 119 PASS foo(i, i + 1) is 181 120 PASS foo(i, i + 1) is 183 121 PASS foo(i, i + 1) is 185 122 PASS foo(i, i + 1) is 187 123 PASS foo(i, i + 1) is 189 124 PASS foo(i, i + 1) is 191 125 PASS foo(i, i + 1) is 193 126 PASS foo(i, i + 1) is 195 127 PASS foo(i, i + 1) is 197 128 PASS foo(i, i + 1) is 199 129 PASS foo(i, i + 1) is 201 130 PASS foo(i, i + 1) is 203 131 PASS foo(i, i + 1) is 205 132 PASS foo(i, i + 1) is 207 133 PASS foo(i, i + 1) is 209 134 PASS foo(i, i + 1) is 211 135 PASS foo(i, i + 1) is 213 136 PASS foo(i, i + 1) is 215 137 PASS foo(i, i + 1) is 217 138 PASS foo(i, i + 1) is 219 139 PASS foo(i, i + 1) is 221 140 PASS foo(i, i + 1) is 223 141 PASS foo(i, i + 1) is 225 142 PASS foo(i, i + 1) is 227 143 PASS foo(i, i + 1) is 229 144 PASS foo(i, i + 1) is 231 145 PASS foo(i, i + 1) is 233 146 PASS foo(i, i + 1) is 235 147 PASS foo(i, i + 1) is 237 148 PASS foo(i, i + 1) is 239 149 PASS foo(i, i + 1) is 241 150 PASS foo(i, i + 1) is 243 151 PASS foo(i, i + 1) is 245 152 PASS foo(i, i + 1) is 247 153 PASS foo(i, i + 1) is 249 154 PASS foo(i, i + 1) is 251 155 PASS foo(i, i + 1) is 253 156 PASS foo(i, i + 1) is 255 157 PASS foo(i, i + 1) is 257 158 PASS foo(i, i + 1) is 259 159 PASS foo(i, i + 1) is 261 160 PASS foo(i, i + 1) is 263 161 PASS foo(i, i + 1) is 265 162 PASS foo(i, i + 1) is 267 163 PASS foo(i, i + 1) is 269 164 PASS foo(i, i + 1) is 271 165 PASS foo(i, i + 1) is 273 166 PASS foo(i, i + 1) is 275 167 PASS foo(i, i + 1) is 277 168 PASS foo(i, i + 1) is 279 169 PASS foo(i, i + 1) is 281 170 PASS foo(i, i + 1) is 283 171 PASS foo(i, i + 1) is 285 172 PASS foo(i, i + 1) is 287 173 PASS foo(i, i + 1) is 289 174 PASS foo(i, i + 1) is 291 175 PASS foo(i, i + 1) is 293 176 PASS foo(i, i + 1) is 295 177 PASS foo(i, i + 1) is 297 178 PASS foo(i, i + 1) is 299 179 PASS foo(i, i + 1) is 301 180 PASS foo(i, i + 1) is 303 181 PASS foo(i, i + 1) is 305 182 PASS foo(i, i + 1) is 307 183 PASS foo(i, i + 1) is 309 184 PASS foo(i, i + 1) is 311 185 PASS foo(i, i + 1) is 313 186 PASS foo(i, i + 1) is 315 187 PASS foo(i, i + 1) is 317 188 PASS foo(i, i + 1) is 319 189 PASS foo(i, i + 1) is 321 190 PASS foo(i, i + 1) is 323 191 PASS foo(i, i + 1) is 325 192 PASS foo(i, i + 1) is 327 193 PASS foo(i, i + 1) is 329 194 PASS foo(i, i + 1) is 331 195 PASS foo(i, i + 1) is 333 196 PASS foo(i, i + 1) is 335 197 PASS foo(i, i + 1) is 337 198 PASS foo(i, i + 1) is 339 199 PASS foo(i, i + 1) is 341 200 PASS foo(i, i + 1) is 343 201 PASS foo(i, i + 1) is 345 202 PASS foo(i, i + 1) is 347 203 PASS foo(i, i + 1) is 349 204 PASS foo(i, i + 1) is 351 205 PASS foo(i, i + 1) is 353 206 PASS foo(i, i + 1) is 355 207 PASS foo(i, i + 1) is 357 208 PASS foo(i, i + 1) is 359 209 PASS foo(i, i + 1) is 361 210 PASS foo(i, i + 1) is 363 211 PASS foo(i, i + 1) is 365 212 PASS foo(i, i + 1) is 367 213 PASS foo(i, i + 1) is 369 214 PASS foo(i, i + 1) is 371 215 PASS foo(i, i + 1) is 373 216 PASS foo(i, i + 1) is 375 217 PASS foo(i, i + 1) is 377 218 PASS foo(i, i + 1) is 379 219 PASS foo(i, i + 1) is 381 220 PASS foo(i, i + 1) is 383 221 PASS foo(i, i + 1) is 385 222 PASS foo(i, i + 1) is 387 223 PASS foo(i, i + 1) is 389 224 PASS foo(i, i + 1) is 391 225 PASS foo(i, i + 1) is 393 226 PASS foo(i, i + 1) is 395 227 PASS foo(i, i + 1) is 397 228 PASS foo(i, i + 1) is 399 229 PASS successfullyParsed is true 230 231 TEST COMPLETE 232 233