| 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 "NotifyStubFailure": true, | 156 "NotifyStubFailure": true, |
| 157 "NotifyOSR": true, | 157 "NotifyOSR": true, |
| 158 "CreateObjectLiteralBoilerplate": true, | 158 "CreateObjectLiteralBoilerplate": true, |
| 159 "CloneLiteralBoilerplate": true, | 159 "CloneLiteralBoilerplate": true, |
| 160 "CloneShallowLiteralBoilerplate": true, | 160 "CloneShallowLiteralBoilerplate": true, |
| 161 "CreateArrayLiteralBoilerplate": true, | 161 "CreateArrayLiteralBoilerplate": true, |
| 162 "IS_VAR": true, | 162 "IS_VAR": true, |
| 163 "ResolvePossiblyDirectEval": true, | 163 "ResolvePossiblyDirectEval": true, |
| 164 "Log": true, | 164 "Log": true, |
| 165 "DeclareGlobals": true, | 165 "DeclareGlobals": true, |
| 166 "ArrayConstructor": true, |
| 167 "InternalArrayConstructor": true, |
| 166 | 168 |
| 167 "PromoteScheduledException": true, | 169 "PromoteScheduledException": true, |
| 168 "DeleteHandleScopeExtensions": true, | 170 "DeleteHandleScopeExtensions": true, |
| 169 | 171 |
| 170 // Vararg with minimum number > 0. | 172 // Vararg with minimum number > 0. |
| 171 "Call": true, | 173 "Call": true, |
| 172 | 174 |
| 173 // Requires integer arguments to be non-negative. | 175 // Requires integer arguments to be non-negative. |
| 174 "Apply": true, | 176 "Apply": true, |
| 175 | 177 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 "_GeneratorThrow": true, | 209 "_GeneratorThrow": true, |
| 208 | 210 |
| 209 // Only applicable to DataViews. | 211 // Only applicable to DataViews. |
| 210 "DataViewGetBuffer": true, | 212 "DataViewGetBuffer": true, |
| 211 "DataViewGetByteLength": true, | 213 "DataViewGetByteLength": true, |
| 212 "DataViewGetByteOffset": true | 214 "DataViewGetByteOffset": true |
| 213 }; | 215 }; |
| 214 | 216 |
| 215 var currentlyUncallable = { | 217 var currentlyUncallable = { |
| 216 // We need to find a way to test this without breaking the system. | 218 // We need to find a way to test this without breaking the system. |
| 217 "SystemBreak": true | 219 "SystemBreak": true, |
| 220 // Inserts an int3/stop instruction when run with --always-opt. |
| 221 "_DebugBreakInOptimizedCode": true |
| 218 }; | 222 }; |
| 219 | 223 |
| 220 function testNatives() { | 224 function testNatives() { |
| 221 var allNatives = %ListNatives(); | 225 var allNatives = %ListNatives(); |
| 222 var start = 0; | 226 var start = 0; |
| 223 var stop = (allNatives.length >> 2); | 227 var stop = (allNatives.length >> 2); |
| 224 for (var i = start; i < stop; i++) { | 228 for (var i = start; i < stop; i++) { |
| 225 var nativeInfo = allNatives[i]; | 229 var nativeInfo = allNatives[i]; |
| 226 var name = nativeInfo[0]; | 230 var name = nativeInfo[0]; |
| 227 if (name in knownProblems || name in currentlyUncallable) | 231 if (name in knownProblems || name in currentlyUncallable) |
| 228 continue; | 232 continue; |
| 229 print(name); | 233 print(name); |
| 230 var argc = nativeInfo[1]; | 234 var argc = nativeInfo[1]; |
| 231 testArgumentCount(name, argc); | 235 testArgumentCount(name, argc); |
| 232 testArgumentTypes(name, argc); | 236 testArgumentTypes(name, argc); |
| 233 } | 237 } |
| 234 } | 238 } |
| 235 | 239 |
| 236 testNatives(); | 240 testNatives(); |
| OLD | NEW |