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

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

Issue 154283002: V8 Microtask Queue & API (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: pre-review Created 6 years, 10 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
« test/cctest/test-api.cc ('K') | « test/cctest/test-api.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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
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, 217 "DataViewGetBuffer": true,
218 "DataViewGetByteLength": true, 218 "DataViewGetByteLength": true,
219 "DataViewGetByteOffset": true, 219 "DataViewGetByteOffset": true,
220 220
221 // Only ever called internally. 221 // Only ever called internally.
222 "RunMicrotasks": true 222 "RunMicrotasks": true,
223 "RunExternalMicrotask": true,
223 }; 224 };
224 225
225 var currentlyUncallable = { 226 var currentlyUncallable = {
226 // We need to find a way to test this without breaking the system. 227 // We need to find a way to test this without breaking the system.
227 "SystemBreak": true, 228 "SystemBreak": true,
228 // Inserts an int3/stop instruction when run with --always-opt. 229 // Inserts an int3/stop instruction when run with --always-opt.
229 "_DebugBreakInOptimizedCode": true 230 "_DebugBreakInOptimizedCode": true
230 }; 231 };
231 232
232 function testNatives() { 233 function testNatives() {
233 var allNatives = %ListNatives(); 234 var allNatives = %ListNatives();
234 var start = (allNatives.length >> 2)*2; 235 var start = (allNatives.length >> 2)*2;
235 var stop = (allNatives.length >> 2)*3; 236 var stop = (allNatives.length >> 2)*3;
236 for (var i = start; i < stop; i++) { 237 for (var i = start; i < stop; i++) {
237 var nativeInfo = allNatives[i]; 238 var nativeInfo = allNatives[i];
238 var name = nativeInfo[0]; 239 var name = nativeInfo[0];
239 if (name in knownProblems || name in currentlyUncallable) 240 if (name in knownProblems || name in currentlyUncallable)
240 continue; 241 continue;
241 print(name); 242 print(name);
242 var argc = nativeInfo[1]; 243 var argc = nativeInfo[1];
243 testArgumentCount(name, argc); 244 testArgumentCount(name, argc);
244 testArgumentTypes(name, argc); 245 testArgumentTypes(name, argc);
245 } 246 }
246 } 247 }
247 248
248 testNatives(); 249 testNatives();
OLDNEW
« test/cctest/test-api.cc ('K') | « test/cctest/test-api.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698