Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(240)

Side by Side Diff: test/mjsunit/fuzz-natives.js

Issue 519061: Improve performance of Array.prototype.join and String.prototype.substring... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« src/array.js ('K') | « src/string.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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();
OLDNEW
« src/array.js ('K') | « src/string.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698