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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 "TypedArrayInitialize": true, | 209 "TypedArrayInitialize": true, |
210 | 210 |
211 // Only applicable to generators. | 211 // Only applicable to generators. |
212 "_GeneratorNext": true, | 212 "_GeneratorNext": true, |
213 "_GeneratorThrow": true, | 213 "_GeneratorThrow": true, |
214 | 214 |
215 // Only applicable to DataViews. | 215 // Only applicable to DataViews. |
216 "DataViewInitialize":true, | 216 "DataViewInitialize":true, |
217 "DataViewGetBuffer": true, | 217 "DataViewGetBuffer": true, |
218 "DataViewGetByteLength": true, | 218 "DataViewGetByteLength": true, |
219 "DataViewGetByteOffset": true | 219 "DataViewGetByteOffset": true, |
| 220 |
| 221 // Only ever called internally. |
| 222 "RunMicrotasks": true |
220 }; | 223 }; |
221 | 224 |
222 var currentlyUncallable = { | 225 var currentlyUncallable = { |
223 // We need to find a way to test this without breaking the system. | 226 // We need to find a way to test this without breaking the system. |
224 "SystemBreak": true, | 227 "SystemBreak": true, |
225 // Inserts an int3/stop instruction when run with --always-opt. | 228 // Inserts an int3/stop instruction when run with --always-opt. |
226 "_DebugBreakInOptimizedCode": true | 229 "_DebugBreakInOptimizedCode": true |
227 }; | 230 }; |
228 | 231 |
229 function testNatives() { | 232 function testNatives() { |
230 var allNatives = %ListNatives(); | 233 var allNatives = %ListNatives(); |
231 var start = (allNatives.length >> 2)*2; | 234 var start = (allNatives.length >> 2)*2; |
232 var stop = (allNatives.length >> 2)*3; | 235 var stop = (allNatives.length >> 2)*3; |
233 for (var i = start; i < stop; i++) { | 236 for (var i = start; i < stop; i++) { |
234 var nativeInfo = allNatives[i]; | 237 var nativeInfo = allNatives[i]; |
235 var name = nativeInfo[0]; | 238 var name = nativeInfo[0]; |
236 if (name in knownProblems || name in currentlyUncallable) | 239 if (name in knownProblems || name in currentlyUncallable) |
237 continue; | 240 continue; |
238 print(name); | 241 print(name); |
239 var argc = nativeInfo[1]; | 242 var argc = nativeInfo[1]; |
240 testArgumentCount(name, argc); | 243 testArgumentCount(name, argc); |
241 testArgumentTypes(name, argc); | 244 testArgumentTypes(name, argc); |
242 } | 245 } |
243 } | 246 } |
244 | 247 |
245 testNatives(); | 248 testNatives(); |
OLD | NEW |