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

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

Issue 16436005: Keep native fuzzing blacklists in sync (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 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 | « test/mjsunit/fuzz-natives-part1.js ('k') | test/mjsunit/fuzz-natives-part3.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 "_GetFromCache": true, 195 "_GetFromCache": true,
196 196
197 // This function expects its first argument to be a non-smi. 197 // This function expects its first argument to be a non-smi.
198 "_IsStringWrapperSafeForDefaultValueOf" : true, 198 "_IsStringWrapperSafeForDefaultValueOf" : true,
199 199
200 // Only applicable to strings. 200 // Only applicable to strings.
201 "_HasCachedArrayIndex": true, 201 "_HasCachedArrayIndex": true,
202 "_GetCachedArrayIndex": true, 202 "_GetCachedArrayIndex": true,
203 "_OneByteSeqStringSetChar": true, 203 "_OneByteSeqStringSetChar": true,
204 "_TwoByteSeqStringSetChar": true, 204 "_TwoByteSeqStringSetChar": true,
205
206 // Only applicable to generators.
207 "_GeneratorNext": true,
208 "_GeneratorThrow": true,
205 }; 209 };
206 210
207 var currentlyUncallable = { 211 var currentlyUncallable = {
208 // We need to find a way to test this without breaking the system. 212 // We need to find a way to test this without breaking the system.
209 "SystemBreak": true 213 "SystemBreak": true
210 }; 214 };
211 215
212 function testNatives() { 216 function testNatives() {
213 var allNatives = %ListNatives(); 217 var allNatives = %ListNatives();
214 var start = allNatives.length >> 2; 218 var start = allNatives.length >> 2;
215 var stop = (allNatives.length >> 2)*2; 219 var stop = (allNatives.length >> 2)*2;
216 for (var i = start; i < stop; i++) { 220 for (var i = start; i < stop; i++) {
217 var nativeInfo = allNatives[i]; 221 var nativeInfo = allNatives[i];
218 var name = nativeInfo[0]; 222 var name = nativeInfo[0];
219 if (name in knownProblems || name in currentlyUncallable) 223 if (name in knownProblems || name in currentlyUncallable)
220 continue; 224 continue;
221 print(name); 225 print(name);
222 var argc = nativeInfo[1]; 226 var argc = nativeInfo[1];
223 testArgumentCount(name, argc); 227 testArgumentCount(name, argc);
224 testArgumentTypes(name, argc); 228 testArgumentTypes(name, argc);
225 } 229 }
226 } 230 }
227 231
228 testNatives(); 232 testNatives();
OLDNEW
« no previous file with comments | « test/mjsunit/fuzz-natives-part1.js ('k') | test/mjsunit/fuzz-natives-part3.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698