OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 // Performance critical functions which cannot afford type checks. | 177 // Performance critical functions which cannot afford type checks. |
178 "_IsNativeOrStrictMode": true, | 178 "_IsNativeOrStrictMode": true, |
179 "_CallFunction": true, | 179 "_CallFunction": true, |
180 | 180 |
181 // Tries to allocate based on argument, and (correctly) throws | 181 // Tries to allocate based on argument, and (correctly) throws |
182 // out-of-memory if the request is too large. In practice, the | 182 // out-of-memory if the request is too large. In practice, the |
183 // size will be the number of captures of a RegExp. | 183 // size will be the number of captures of a RegExp. |
184 "RegExpConstructResult": true, | 184 "RegExpConstructResult": true, |
185 "_RegExpConstructResult": true, | 185 "_RegExpConstructResult": true, |
186 | 186 |
187 // This function performs some checks compile time (it requires its first | 187 // This functions perform some checks compile time (they require one of their |
188 // argument to be a compile time smi). | 188 // arguments to be a compile time smi). |
| 189 "_DateField": true, |
| 190 "_SetDateField": true, |
189 "_GetFromCache": true, | 191 "_GetFromCache": true, |
190 | 192 |
191 // This function expects its first argument to be a non-smi. | 193 // This function expects its first argument to be a non-smi. |
192 "_IsStringWrapperSafeForDefaultValueOf" : true, | 194 "_IsStringWrapperSafeForDefaultValueOf" : true, |
193 | 195 |
194 // Only applicable to strings. | 196 // Only applicable to strings. |
195 "_HasCachedArrayIndex": true, | 197 "_HasCachedArrayIndex": true, |
196 "_GetCachedArrayIndex": true | 198 "_GetCachedArrayIndex": true |
197 }; | 199 }; |
198 | 200 |
(...skipping 10 matching lines...) Expand all Loading... |
209 if (name in knownProblems || name in currentlyUncallable) | 211 if (name in knownProblems || name in currentlyUncallable) |
210 continue; | 212 continue; |
211 print(name); | 213 print(name); |
212 var argc = nativeInfo[1]; | 214 var argc = nativeInfo[1]; |
213 testArgumentCount(name, argc); | 215 testArgumentCount(name, argc); |
214 testArgumentTypes(name, argc); | 216 testArgumentTypes(name, argc); |
215 } | 217 } |
216 } | 218 } |
217 | 219 |
218 testNatives(); | 220 testNatives(); |
OLD | NEW |