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

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

Issue 11299033: Fix test failures. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 1 month 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 | « src/runtime.cc ('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 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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 // This functions perform some checks compile time (they require one of their 188 // This functions perform some checks compile time (they require one of their
189 // arguments to be a compile time smi). 189 // arguments to be a compile time smi).
190 "_DateField": true, 190 "_DateField": true,
191 "_GetFromCache": true, 191 "_GetFromCache": true,
192 192
193 // This function expects its first argument to be a non-smi. 193 // This function expects its first argument to be a non-smi.
194 "_IsStringWrapperSafeForDefaultValueOf" : true, 194 "_IsStringWrapperSafeForDefaultValueOf" : true,
195 195
196 // Only applicable to strings. 196 // Only applicable to strings.
197 "_HasCachedArrayIndex": true, 197 "_HasCachedArrayIndex": true,
198 "_GetCachedArrayIndex": true 198 "_GetCachedArrayIndex": true,
199
200 // Only for debugging parallel recompilation.
201 "InstallRecompiledCode": true,
202 "ForceParallelRecompile": true
199 }; 203 };
200 204
201 var currentlyUncallable = { 205 var currentlyUncallable = {
202 // We need to find a way to test this without breaking the system. 206 // We need to find a way to test this without breaking the system.
203 "SystemBreak": true 207 "SystemBreak": true
204 }; 208 };
205 209
206 function testNatives() { 210 function testNatives() {
207 var allNatives = %ListNatives(); 211 var allNatives = %ListNatives();
208 var start = 0; 212 var start = 0;
209 var stop = (allNatives.length >> 2); 213 var stop = (allNatives.length >> 2);
210 for (var i = start; i < stop; i++) { 214 for (var i = start; i < stop; i++) {
211 var nativeInfo = allNatives[i]; 215 var nativeInfo = allNatives[i];
212 var name = nativeInfo[0]; 216 var name = nativeInfo[0];
213 if (name in knownProblems || name in currentlyUncallable) 217 if (name in knownProblems || name in currentlyUncallable)
214 continue; 218 continue;
215 print(name); 219 print(name);
216 var argc = nativeInfo[1]; 220 var argc = nativeInfo[1];
217 testArgumentCount(name, argc); 221 testArgumentCount(name, argc);
218 testArgumentTypes(name, argc); 222 testArgumentTypes(name, argc);
219 } 223 }
220 } 224 }
221 225
222 testNatives(); 226 testNatives();
OLDNEW
« no previous file with comments | « src/runtime.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698