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-part4.js

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

Powered by Google App Engine
This is Rietveld 408576698