| OLD | NEW |
| 1 // Copyright 2008 the V8 project authors. All rights reserved. | 1 // Copyright 2008 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 "CreateObjectLiteralBoilerplate": true, | 140 "CreateObjectLiteralBoilerplate": true, |
| 141 "CloneLiteralBoilerplate": true, | 141 "CloneLiteralBoilerplate": true, |
| 142 "CloneShallowLiteralBoilerplate": true, | 142 "CloneShallowLiteralBoilerplate": true, |
| 143 "CreateArrayLiteralBoilerplate": true, | 143 "CreateArrayLiteralBoilerplate": true, |
| 144 "IS_VAR": true, | 144 "IS_VAR": true, |
| 145 "ResolvePossiblyDirectEval": true, | 145 "ResolvePossiblyDirectEval": true, |
| 146 "Log": true, | 146 "Log": true, |
| 147 "DeclareGlobals": true, | 147 "DeclareGlobals": true, |
| 148 | 148 |
| 149 "PromoteScheduledException": true, | 149 "PromoteScheduledException": true, |
| 150 "DeleteHandleScopeExtensions": true | 150 "DeleteHandleScopeExtensions": true, |
| 151 |
| 152 // That can only be invoked on Array.prototype. |
| 153 "FinishArrayPrototypeSetup": true, |
| 154 |
| 155 // LiveEdit feature is under development currently and has fragile input. |
| 156 "LiveEditFindSharedFunctionInfosForScript": true, |
| 157 "LiveEditGatherCompileInfo": true, |
| 158 "LiveEditReplaceScript": true, |
| 159 "LiveEditReplaceFunctionCode": true, |
| 160 "LiveEditRelinkFunctionToScript": true, |
| 161 "LiveEditPatchFunctionPositions": true, |
| 162 "LiveEditCheckStackActivations": true |
| 151 }; | 163 }; |
| 152 | 164 |
| 153 var currentlyUncallable = { | 165 var currentlyUncallable = { |
| 154 // We need to find a way to test this without breaking the system. | 166 // We need to find a way to test this without breaking the system. |
| 155 "SystemBreak": true | 167 "SystemBreak": true |
| 156 }; | 168 }; |
| 157 | 169 |
| 158 function testNatives() { | 170 function testNatives() { |
| 159 var allNatives = %ListNatives(); | 171 var allNatives = %ListNatives(); |
| 160 for (var i = 0; i < allNatives.length; i++) { | 172 for (var i = 0; i < allNatives.length; i++) { |
| 161 var nativeInfo = allNatives[i]; | 173 var nativeInfo = allNatives[i]; |
| 162 var name = nativeInfo[0]; | 174 var name = nativeInfo[0]; |
| 163 if (name in knownProblems || name in currentlyUncallable) | 175 if (name in knownProblems || name in currentlyUncallable) |
| 164 continue; | 176 continue; |
| 165 print(name); | 177 print(name); |
| 166 var argc = nativeInfo[1]; | 178 var argc = nativeInfo[1]; |
| 167 testArgumentCount(name); | 179 testArgumentCount(name); |
| 168 testArgumentTypes(name, argc); | 180 testArgumentTypes(name, argc); |
| 169 } | 181 } |
| 170 } | 182 } |
| 171 | 183 |
| 172 testNatives(); | 184 testNatives(); |
| OLD | NEW |