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