OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 133 matching lines...) Loading... |
144 "NewFunctionContext": true, | 144 "NewFunctionContext": true, |
145 "NewArgumentsFast": true, | 145 "NewArgumentsFast": true, |
146 "NewStrictArgumentsFast": true, | 146 "NewStrictArgumentsFast": true, |
147 "PushWithContext": true, | 147 "PushWithContext": true, |
148 "PushCatchContext": true, | 148 "PushCatchContext": true, |
149 "PushBlockContext": true, | 149 "PushBlockContext": true, |
150 "PushModuleContext": true, | 150 "PushModuleContext": true, |
151 "LazyCompile": true, | 151 "LazyCompile": true, |
152 "LazyRecompile": true, | 152 "LazyRecompile": true, |
153 "ParallelRecompile": true, | 153 "ParallelRecompile": true, |
| 154 "InstallRecompiledCode": true, |
154 "NotifyDeoptimized": true, | 155 "NotifyDeoptimized": true, |
155 "NotifyStubFailure": true, | 156 "NotifyStubFailure": true, |
156 "NotifyOSR": true, | 157 "NotifyOSR": true, |
157 "CreateObjectLiteralBoilerplate": true, | 158 "CreateObjectLiteralBoilerplate": true, |
158 "CloneLiteralBoilerplate": true, | 159 "CloneLiteralBoilerplate": true, |
159 "CloneShallowLiteralBoilerplate": true, | 160 "CloneShallowLiteralBoilerplate": true, |
160 "CreateArrayLiteralBoilerplate": true, | 161 "CreateArrayLiteralBoilerplate": true, |
161 "IS_VAR": true, | 162 "IS_VAR": true, |
162 "ResolvePossiblyDirectEval": true, | 163 "ResolvePossiblyDirectEval": true, |
163 "Log": true, | 164 "Log": true, |
(...skipping 29 matching lines...) Loading... |
193 "_GetFromCache": true, | 194 "_GetFromCache": true, |
194 | 195 |
195 // This function expects its first argument to be a non-smi. | 196 // This function expects its first argument to be a non-smi. |
196 "_IsStringWrapperSafeForDefaultValueOf" : true, | 197 "_IsStringWrapperSafeForDefaultValueOf" : true, |
197 | 198 |
198 // Only applicable to strings. | 199 // Only applicable to strings. |
199 "_HasCachedArrayIndex": true, | 200 "_HasCachedArrayIndex": true, |
200 "_GetCachedArrayIndex": true, | 201 "_GetCachedArrayIndex": true, |
201 "_OneByteSeqStringSetChar": true, | 202 "_OneByteSeqStringSetChar": true, |
202 "_TwoByteSeqStringSetChar": true, | 203 "_TwoByteSeqStringSetChar": true, |
203 | |
204 // Only for debugging parallel recompilation. | |
205 "InstallRecompiledCode": true, | |
206 "ForceParallelRecompile": true | |
207 }; | 204 }; |
208 | 205 |
209 var currentlyUncallable = { | 206 var currentlyUncallable = { |
210 // We need to find a way to test this without breaking the system. | 207 // We need to find a way to test this without breaking the system. |
211 "SystemBreak": true | 208 "SystemBreak": true |
212 }; | 209 }; |
213 | 210 |
214 function testNatives() { | 211 function testNatives() { |
215 var allNatives = %ListNatives(); | 212 var allNatives = %ListNatives(); |
216 var start = 0; | 213 var start = 0; |
217 var stop = (allNatives.length >> 2); | 214 var stop = (allNatives.length >> 2); |
218 for (var i = start; i < stop; i++) { | 215 for (var i = start; i < stop; i++) { |
219 var nativeInfo = allNatives[i]; | 216 var nativeInfo = allNatives[i]; |
220 var name = nativeInfo[0]; | 217 var name = nativeInfo[0]; |
221 if (name in knownProblems || name in currentlyUncallable) | 218 if (name in knownProblems || name in currentlyUncallable) |
222 continue; | 219 continue; |
223 print(name); | 220 print(name); |
224 var argc = nativeInfo[1]; | 221 var argc = nativeInfo[1]; |
225 testArgumentCount(name, argc); | 222 testArgumentCount(name, argc); |
226 testArgumentTypes(name, argc); | 223 testArgumentTypes(name, argc); |
227 } | 224 } |
228 } | 225 } |
229 | 226 |
230 testNatives(); | 227 testNatives(); |
OLD | NEW |