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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 func.apply(void 0, argList); | 109 func.apply(void 0, argList); |
110 } catch (e) { | 110 } catch (e) { |
111 // we don't care what happens as long as we don't crash | 111 // we don't care what happens as long as we don't crash |
112 } | 112 } |
113 type++; | 113 type++; |
114 } | 114 } |
115 } | 115 } |
116 | 116 |
117 var knownProblems = { | 117 var knownProblems = { |
118 "Abort": true, | 118 "Abort": true, |
119 "ThrowMessage": true, | |
120 | 119 |
121 // Avoid calling the concat operation, because weird lengths | 120 // Avoid calling the concat operation, because weird lengths |
122 // may lead to out-of-memory. Ditto for StringBuilderJoin. | 121 // may lead to out-of-memory. Ditto for StringBuilderJoin. |
123 "StringBuilderConcat": true, | 122 "StringBuilderConcat": true, |
124 "StringBuilderJoin": true, | 123 "StringBuilderJoin": true, |
125 | 124 |
126 // These functions use pseudo-stack-pointers and are not robust | 125 // These functions use pseudo-stack-pointers and are not robust |
127 // to unexpected integer values. | 126 // to unexpected integer values. |
128 "DebugEvaluate": true, | 127 "DebugEvaluate": true, |
129 | 128 |
130 // These functions do nontrivial error checking in recursive calls, | 129 // These functions do nontrivial error checking in recursive calls, |
131 // which means that we have to propagate errors back. | 130 // which means that we have to propagate errors back. |
132 "SetFunctionBreakPoint": true, | 131 "SetFunctionBreakPoint": true, |
133 "SetScriptBreakPoint": true, | 132 "SetScriptBreakPoint": true, |
134 "PrepareStep": true, | 133 "PrepareStep": true, |
135 | 134 |
136 // Too slow. | 135 // Too slow. |
137 "DebugReferencedBy": true, | 136 "DebugReferencedBy": true, |
138 | 137 |
139 // Calling disable/enable access checks may interfere with the | 138 // Calling disable/enable access checks may interfere with the |
140 // the rest of the tests. | 139 // the rest of the tests. |
141 "DisableAccessChecks": true, | 140 "DisableAccessChecks": true, |
142 "EnableAccessChecks": true, | 141 "EnableAccessChecks": true, |
143 | 142 |
144 // These functions should not be callable as runtime functions. | 143 // IS_VAR is special. |
145 "NewFunctionContext": true, | |
146 "NewArgumentsFast": true, | |
147 "NewStrictArgumentsFast": true, | |
148 "PushWithContext": true, | |
149 "PushCatchContext": true, | |
150 "PushBlockContext": true, | |
151 "PushModuleContext": true, | |
152 "CompileUnoptimized": true, | |
153 "CompileOptimized": true, | |
154 "CompileOptimizedConcurrent": true, | |
155 "NotifyDeoptimized": true, | |
156 "NotifyStubFailure": true, | |
157 "NotifyOSR": true, | |
158 "CreateObjectLiteralBoilerplate": true, | |
159 "CloneLiteralBoilerplate": true, | |
160 "CloneShallowLiteralBoilerplate": true, | |
161 "CreateArrayLiteralBoilerplate": true, | |
162 "IS_VAR": true, | 144 "IS_VAR": true, |
163 "ResolvePossiblyDirectEval": true, | |
164 "DeclareGlobals": true, | |
165 "ArrayConstructor": true, | |
166 "InternalArrayConstructor": true, | |
167 "SetAccessorProperty": true, | |
168 | |
169 "PromoteScheduledException": true, | |
170 "DeleteHandleScopeExtensions": true, | |
171 | 145 |
172 // Vararg with minimum number > 0. | 146 // Vararg with minimum number > 0. |
173 "Call": true, | 147 "Call": true, |
174 "SetAllocationTimeout": true, | 148 "SetAllocationTimeout": true, |
175 | 149 |
176 // Requires integer arguments to be non-negative. | 150 // Requires integer arguments to be non-negative. |
177 "Apply": true, | 151 "Apply": true, |
178 | 152 |
179 // That can only be invoked on Array.prototype. | 153 // That can only be invoked on Array.prototype. |
180 "FinishArrayPrototypeSetup": true, | 154 "FinishArrayPrototypeSetup": true, |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 if (name in knownProblems || name in currentlyUncallable) | 207 if (name in knownProblems || name in currentlyUncallable) |
234 continue; | 208 continue; |
235 print(name); | 209 print(name); |
236 var argc = nativeInfo[1]; | 210 var argc = nativeInfo[1]; |
237 testArgumentCount(name, argc); | 211 testArgumentCount(name, argc); |
238 testArgumentTypes(name, argc); | 212 testArgumentTypes(name, argc); |
239 } | 213 } |
240 } | 214 } |
241 | 215 |
242 testNatives(); | 216 testNatives(); |
OLD | NEW |