Chromium Code Reviews| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 88 func.apply(void 0, argList); | 88 func.apply(void 0, argList); |
| 89 } catch (e) { | 89 } catch (e) { |
| 90 // we don't care what happens as long as we don't crash | 90 // we don't care what happens as long as we don't crash |
| 91 } | 91 } |
| 92 type++; | 92 type++; |
| 93 } | 93 } |
| 94 } | 94 } |
| 95 | 95 |
| 96 var knownProblems = { | 96 var knownProblems = { |
| 97 "Abort": true, | 97 "Abort": true, |
| 98 | 98 |
| 99 // Avoid calling the concat operation, because weird lengths | |
| 100 // may lead to out-of-memory. | |
|
Erik Corry
2010/01/06 14:03:57
This is somehow unsatisfactory.
| |
| 101 "StringBuilderConcat": true, | |
| 102 | |
| 99 // These functions use pseudo-stack-pointers and are not robust | 103 // These functions use pseudo-stack-pointers and are not robust |
| 100 // to unexpected integer values. | 104 // to unexpected integer values. |
| 101 "DebugEvaluate": true, | 105 "DebugEvaluate": true, |
| 102 | 106 |
| 103 // These functions do nontrivial error checking in recursive calls, | 107 // These functions do nontrivial error checking in recursive calls, |
| 104 // which means that we have to propagate errors back. | 108 // which means that we have to propagate errors back. |
| 105 "SetFunctionBreakPoint": true, | 109 "SetFunctionBreakPoint": true, |
| 106 "SetScriptBreakPoint": true, | 110 "SetScriptBreakPoint": true, |
| 107 "ChangeBreakOnException": true, | 111 "ChangeBreakOnException": true, |
| 108 "PrepareStep": true, | 112 "PrepareStep": true, |
| 109 | 113 |
| 110 // Too slow. | 114 // Too slow. |
| 111 "DebugReferencedBy": true, | 115 "DebugReferencedBy": true, |
| 112 | 116 |
| 113 // Calling disable/enable access checks may interfere with the | 117 // Calling disable/enable access checks may interfere with the |
| 114 // the rest of the tests. | 118 // the rest of the tests. |
| 115 "DisableAccessChecks": true, | 119 "DisableAccessChecks": true, |
| 116 "EnableAccessChecks": true, | 120 "EnableAccessChecks": true, |
| 117 | 121 |
| 118 // These functions should not be callable as runtime functions. | 122 // These functions should not be callable as runtime functions. |
| 119 "NewContext": true, | 123 "NewContext": true, |
| 120 "NewArgumentsFast": true, | 124 "NewArgumentsFast": true, |
| 121 "PushContext": true, | 125 "PushContext": true, |
| 122 "LazyCompile": true, | 126 "LazyCompile": true, |
| 123 "CreateObjectLiteralBoilerplate": true, | 127 "CreateObjectLiteralBoilerplate": true, |
| 124 "CloneLiteralBoilerplate": true, | 128 "CloneLiteralBoilerplate": true, |
| 125 "CloneShallowLiteralBoilerplate": true, | 129 "CloneShallowLiteralBoilerplate": true, |
| 126 "CreateArrayLiteralBoilerplate": true, | 130 "CreateArrayLiteralBoilerplate": true, |
| 127 "IS_VAR": true, | 131 "IS_VAR": true, |
| (...skipping 18 matching lines...) Expand all Loading... | |
| 146 if (name in knownProblems || name in currentlyUncallable) | 150 if (name in knownProblems || name in currentlyUncallable) |
| 147 continue; | 151 continue; |
| 148 print(name); | 152 print(name); |
| 149 var argc = nativeInfo[1]; | 153 var argc = nativeInfo[1]; |
| 150 testArgumentCount(name); | 154 testArgumentCount(name); |
| 151 testArgumentTypes(name, argc); | 155 testArgumentTypes(name, argc); |
| 152 } | 156 } |
| 153 } | 157 } |
| 154 | 158 |
| 155 testNatives(); | 159 testNatives(); |
| OLD | NEW |