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