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