| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 "NewArgumentsFast": true, | 120 "NewArgumentsFast": true, |
| 121 "PushContext": true, | 121 "PushContext": true, |
| 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 | 131 |
| 131 "CollectStackTrace": true | 132 "CollectStackTrace": true |
| 132 }; | 133 }; |
| 133 | 134 |
| 134 var currentlyUncallable = { | 135 var currentlyUncallable = { |
| 135 // We need to find a way to test this without breaking the system. | 136 // We need to find a way to test this without breaking the system. |
| 136 "SystemBreak": true | 137 "SystemBreak": true |
| 137 }; | 138 }; |
| 138 | 139 |
| 139 function testNatives() { | 140 function testNatives() { |
| 140 var allNatives = %ListNatives(); | 141 var allNatives = %ListNatives(); |
| 141 for (var i = 0; i < allNatives.length; i++) { | 142 for (var i = 0; i < allNatives.length; i++) { |
| 142 var nativeInfo = allNatives[i]; | 143 var nativeInfo = allNatives[i]; |
| 143 var name = nativeInfo[0]; | 144 var name = nativeInfo[0]; |
| 144 if (name in knownProblems || name in currentlyUncallable) | 145 if (name in knownProblems || name in currentlyUncallable) |
| 145 continue; | 146 continue; |
| 146 print(name); | 147 print(name); |
| 147 var argc = nativeInfo[1]; | 148 var argc = nativeInfo[1]; |
| 148 testArgumentCount(name); | 149 testArgumentCount(name); |
| 149 testArgumentTypes(name, argc); | 150 testArgumentTypes(name, argc); |
| 150 } | 151 } |
| 151 } | 152 } |
| 152 | 153 |
| 153 testNatives(); | 154 testNatives(); |
| OLD | NEW |