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

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

Issue 3109010: Remove runtime function from fuzzing... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 4 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
« no previous file with comments | « no previous file | 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 167
168 // Tries to allocate based on argument, and (correctly) throws 168 // Tries to allocate based on argument, and (correctly) throws
169 // out-of-memory if the request is too large. In practice, the 169 // out-of-memory if the request is too large. In practice, the
170 // size will be the number of captures of a RegExp. 170 // size will be the number of captures of a RegExp.
171 "RegExpConstructResult": true, 171 "RegExpConstructResult": true,
172 "_RegExpConstructResult": true, 172 "_RegExpConstructResult": true,
173 173
174 // This function performs some checks compile time (it requires its first 174 // This function performs some checks compile time (it requires its first
175 // argument to be a compile time smi). 175 // argument to be a compile time smi).
176 "_GetFromCache": true, 176 "_GetFromCache": true,
177
178 // This function expects its first argument to be a non-smi.
179 "_IsStringWrapperSafeForDefaultValueOf" : true
177 }; 180 };
178 181
179 var currentlyUncallable = { 182 var currentlyUncallable = {
180 // We need to find a way to test this without breaking the system. 183 // We need to find a way to test this without breaking the system.
181 "SystemBreak": true 184 "SystemBreak": true
182 }; 185 };
183 186
184 function testNatives() { 187 function testNatives() {
185 var allNatives = %ListNatives(); 188 var allNatives = %ListNatives();
186 for (var i = 0; i < allNatives.length; i++) { 189 for (var i = 0; i < allNatives.length; i++) {
187 var nativeInfo = allNatives[i]; 190 var nativeInfo = allNatives[i];
188 var name = nativeInfo[0]; 191 var name = nativeInfo[0];
189 if (name in knownProblems || name in currentlyUncallable) 192 if (name in knownProblems || name in currentlyUncallable)
190 continue; 193 continue;
191 print(name); 194 print(name);
192 var argc = nativeInfo[1]; 195 var argc = nativeInfo[1];
193 testArgumentCount(name, argc); 196 testArgumentCount(name, argc);
194 testArgumentTypes(name, argc); 197 testArgumentTypes(name, argc);
195 } 198 }
196 } 199 }
197 200
198 testNatives(); 201 testNatives();
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698