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, |
| 166 "ArrayConstructor": true, |
| 167 "InternalArrayConstructor": true, |
165 | 168 |
166 "PromoteScheduledException": true, | 169 "PromoteScheduledException": true, |
167 "DeleteHandleScopeExtensions": true, | 170 "DeleteHandleScopeExtensions": true, |
168 | 171 |
169 // Vararg with minimum number > 0. | 172 // Vararg with minimum number > 0. |
170 "Call": true, | 173 "Call": true, |
171 | 174 |
172 // Requires integer arguments to be non-negative. | 175 // Requires integer arguments to be non-negative. |
173 "Apply": true, | 176 "Apply": true, |
174 | 177 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 "_GeneratorThrow": true, | 209 "_GeneratorThrow": true, |
207 | 210 |
208 // Only applicable to DataViews. | 211 // Only applicable to DataViews. |
209 "DataViewGetBuffer": true, | 212 "DataViewGetBuffer": true, |
210 "DataViewGetByteLength": true, | 213 "DataViewGetByteLength": true, |
211 "DataViewGetByteOffset": true | 214 "DataViewGetByteOffset": true |
212 }; | 215 }; |
213 | 216 |
214 var currentlyUncallable = { | 217 var currentlyUncallable = { |
215 // 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. |
216 "SystemBreak": true | 219 "SystemBreak": true, |
| 220 // Inserts an int3/stop instruction when run with --always-opt. |
| 221 "_DebugBreakInOptimizedCode": true |
217 }; | 222 }; |
218 | 223 |
219 function testNatives() { | 224 function testNatives() { |
220 var allNatives = %ListNatives(); | 225 var allNatives = %ListNatives(); |
221 var start = (allNatives.length >> 2)*2; | 226 var start = (allNatives.length >> 2)*2; |
222 var stop = (allNatives.length >> 2)*3; | 227 var stop = (allNatives.length >> 2)*3; |
223 for (var i = start; i < stop; i++) { | 228 for (var i = start; i < stop; i++) { |
224 var nativeInfo = allNatives[i]; | 229 var nativeInfo = allNatives[i]; |
225 var name = nativeInfo[0]; | 230 var name = nativeInfo[0]; |
226 if (name in knownProblems || name in currentlyUncallable) | 231 if (name in knownProblems || name in currentlyUncallable) |
227 continue; | 232 continue; |
228 print(name); | 233 print(name); |
229 var argc = nativeInfo[1]; | 234 var argc = nativeInfo[1]; |
230 testArgumentCount(name, argc); | 235 testArgumentCount(name, argc); |
231 testArgumentTypes(name, argc); | 236 testArgumentTypes(name, argc); |
232 } | 237 } |
233 } | 238 } |
234 | 239 |
235 testNatives(); | 240 testNatives(); |
OLD | NEW |