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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 "InstallRecompiledCode": true, |
155 "NotifyDeoptimized": true, | 155 "NotifyDeoptimized": 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, |
164 "DeclareGlobals": true, | 165 "DeclareGlobals": true, |
165 "ArrayConstructor": true, | 166 "ArrayConstructor": true, |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 "_GeneratorThrow": true, | 209 "_GeneratorThrow": true, |
209 | 210 |
210 // Only applicable to DataViews. | 211 // Only applicable to DataViews. |
211 "DataViewGetBuffer": true, | 212 "DataViewGetBuffer": true, |
212 "DataViewGetByteLength": true, | 213 "DataViewGetByteLength": true, |
213 "DataViewGetByteOffset": true | 214 "DataViewGetByteOffset": true |
214 }; | 215 }; |
215 | 216 |
216 var currentlyUncallable = { | 217 var currentlyUncallable = { |
217 // We need to find a way to test this without breaking the system. | 218 // We need to find a way to test this without breaking the system. |
218 "SystemBreak": true | 219 "SystemBreak": true, |
| 220 // Inserts an int3/stop instruction when run with --always-opt. |
| 221 "_DebugBreakInOptimizedCode": true |
219 }; | 222 }; |
220 | 223 |
221 function testNatives() { | 224 function testNatives() { |
222 var allNatives = %ListNatives(); | 225 var allNatives = %ListNatives(); |
223 var start = allNatives.length >> 2; | 226 var start = allNatives.length >> 2; |
224 var stop = (allNatives.length >> 2)*2; | 227 var stop = (allNatives.length >> 2)*2; |
225 for (var i = start; i < stop; i++) { | 228 for (var i = start; i < stop; i++) { |
226 var nativeInfo = allNatives[i]; | 229 var nativeInfo = allNatives[i]; |
227 var name = nativeInfo[0]; | 230 var name = nativeInfo[0]; |
228 if (name in knownProblems || name in currentlyUncallable) | 231 if (name in knownProblems || name in currentlyUncallable) |
229 continue; | 232 continue; |
230 print(name); | 233 print(name); |
231 var argc = nativeInfo[1]; | 234 var argc = nativeInfo[1]; |
232 testArgumentCount(name, argc); | 235 testArgumentCount(name, argc); |
233 testArgumentTypes(name, argc); | 236 testArgumentTypes(name, argc); |
234 } | 237 } |
235 } | 238 } |
236 | 239 |
237 testNatives(); | 240 testNatives(); |
OLD | NEW |