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

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

Issue 203443002: Refactor inlined typed array runtime functions. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 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-part3.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 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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 // This function expects its first argument to be a non-smi. 199 // This function expects its first argument to be a non-smi.
200 "_IsStringWrapperSafeForDefaultValueOf" : true, 200 "_IsStringWrapperSafeForDefaultValueOf" : true,
201 201
202 // Only applicable to strings. 202 // Only applicable to strings.
203 "_HasCachedArrayIndex": true, 203 "_HasCachedArrayIndex": true,
204 "_GetCachedArrayIndex": true, 204 "_GetCachedArrayIndex": true,
205 "_OneByteSeqStringSetChar": true, 205 "_OneByteSeqStringSetChar": true,
206 "_TwoByteSeqStringSetChar": true, 206 "_TwoByteSeqStringSetChar": true,
207 207
208 // Only applicable to TypedArrays. 208 // Only applicable to TypedArrays.
209 "TypedArrayInitialize": true, 209 "_TypedArrayInitialize": true,
210 210
211 // Only applicable to generators. 211 // Only applicable to generators.
212 "_GeneratorNext": true, 212 "_GeneratorNext": true,
213 "_GeneratorThrow": true, 213 "_GeneratorThrow": true,
214 214
215 // Only applicable to DataViews. 215 // Only applicable to DataViews.
216 "DataViewInitialize": true, 216 "_DataViewInitialize": true,
217 "DataViewGetBuffer": true,
218 "DataViewGetByteLength": true,
219 "DataViewGetByteOffset": true
220 }; 217 };
221 218
222 var currentlyUncallable = { 219 var currentlyUncallable = {
223 // We need to find a way to test this without breaking the system. 220 // We need to find a way to test this without breaking the system.
224 "SystemBreak": true, 221 "SystemBreak": true,
225 // Inserts an int3/stop instruction when run with --always-opt. 222 // Inserts an int3/stop instruction when run with --always-opt.
226 "_DebugBreakInOptimizedCode": true 223 "_DebugBreakInOptimizedCode": true
227 }; 224 };
228 225
229 function testNatives() { 226 function testNatives() {
230 var allNatives = %ListNatives(); 227 var allNatives = %ListNatives();
231 var start = (allNatives.length >> 2)*3; 228 var start = (allNatives.length >> 2)*3;
232 var stop = allNatives.length; 229 var stop = allNatives.length;
233 for (var i = start; i < stop; i++) { 230 for (var i = start; i < stop; i++) {
234 var nativeInfo = allNatives[i]; 231 var nativeInfo = allNatives[i];
235 var name = nativeInfo[0]; 232 var name = nativeInfo[0];
236 if (name in knownProblems || name in currentlyUncallable) 233 if (name in knownProblems || name in currentlyUncallable)
237 continue; 234 continue;
238 print(name); 235 print(name);
239 var argc = nativeInfo[1]; 236 var argc = nativeInfo[1];
240 testArgumentCount(name, argc); 237 testArgumentCount(name, argc);
241 testArgumentTypes(name, argc); 238 testArgumentTypes(name, argc);
242 } 239 }
243 } 240 }
244 241
245 testNatives(); 242 testNatives();
OLDNEW
« no previous file with comments | « test/mjsunit/fuzz-natives-part3.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698