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