| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 "LazyCompile": true, | 122 "LazyCompile": true, |
| 123 "CreateObjectLiteralBoilerplate": true, | 123 "CreateObjectLiteralBoilerplate": true, |
| 124 "CloneLiteralBoilerplate": true, | 124 "CloneLiteralBoilerplate": true, |
| 125 "CloneShallowLiteralBoilerplate": true, | 125 "CloneShallowLiteralBoilerplate": true, |
| 126 "CreateArrayLiteralBoilerplate": true, | 126 "CreateArrayLiteralBoilerplate": true, |
| 127 "IS_VAR": true, | 127 "IS_VAR": true, |
| 128 "ResolvePossiblyDirectEval": true, | 128 "ResolvePossiblyDirectEval": true, |
| 129 "Log": true, | 129 "Log": true, |
| 130 "DeclareGlobals": true, | 130 "DeclareGlobals": true, |
| 131 | 131 |
| 132 "CollectStackTrace": true, | |
| 133 "PromoteScheduledException": true, | 132 "PromoteScheduledException": true, |
| 134 "DeleteHandleScopeExtensions": true | 133 "DeleteHandleScopeExtensions": true |
| 135 }; | 134 }; |
| 136 | 135 |
| 137 var currentlyUncallable = { | 136 var currentlyUncallable = { |
| 138 // We need to find a way to test this without breaking the system. | 137 // We need to find a way to test this without breaking the system. |
| 139 "SystemBreak": true | 138 "SystemBreak": true |
| 140 }; | 139 }; |
| 141 | 140 |
| 142 function testNatives() { | 141 function testNatives() { |
| 143 var allNatives = %ListNatives(); | 142 var allNatives = %ListNatives(); |
| 144 for (var i = 0; i < allNatives.length; i++) { | 143 for (var i = 0; i < allNatives.length; i++) { |
| 145 var nativeInfo = allNatives[i]; | 144 var nativeInfo = allNatives[i]; |
| 146 var name = nativeInfo[0]; | 145 var name = nativeInfo[0]; |
| 147 if (name in knownProblems || name in currentlyUncallable) | 146 if (name in knownProblems || name in currentlyUncallable) |
| 148 continue; | 147 continue; |
| 149 print(name); | 148 print(name); |
| 150 var argc = nativeInfo[1]; | 149 var argc = nativeInfo[1]; |
| 151 testArgumentCount(name); | 150 testArgumentCount(name); |
| 152 testArgumentTypes(name, argc); | 151 testArgumentTypes(name, argc); |
| 153 } | 152 } |
| 154 } | 153 } |
| 155 | 154 |
| 156 testNatives(); | 155 testNatives(); |
| OLD | NEW |