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 |
151 }; | 154 }; |
152 | 155 |
153 var currentlyUncallable = { | 156 var currentlyUncallable = { |
154 // We need to find a way to test this without breaking the system. | 157 // We need to find a way to test this without breaking the system. |
155 "SystemBreak": true | 158 "SystemBreak": true |
156 }; | 159 }; |
157 | 160 |
158 function testNatives() { | 161 function testNatives() { |
159 var allNatives = %ListNatives(); | 162 var allNatives = %ListNatives(); |
160 for (var i = 0; i < allNatives.length; i++) { | 163 for (var i = 0; i < allNatives.length; i++) { |
161 var nativeInfo = allNatives[i]; | 164 var nativeInfo = allNatives[i]; |
162 var name = nativeInfo[0]; | 165 var name = nativeInfo[0]; |
163 if (name in knownProblems || name in currentlyUncallable) | 166 if (name in knownProblems || name in currentlyUncallable) |
164 continue; | 167 continue; |
165 print(name); | 168 print(name); |
166 var argc = nativeInfo[1]; | 169 var argc = nativeInfo[1]; |
167 testArgumentCount(name); | 170 testArgumentCount(name); |
168 testArgumentTypes(name, argc); | 171 testArgumentTypes(name, argc); |
169 } | 172 } |
170 } | 173 } |
171 | 174 |
172 testNatives(); | 175 testNatives(); |
OLD | NEW |