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

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

Issue 66843011: Generate DataViewInitialize built-in in hydrogen. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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
« src/hydrogen.cc ('K') | « 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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 205
206 // Only applicable to generators. 206 // Only applicable to generators.
207 "_GeneratorNext": true, 207 "_GeneratorNext": true,
208 "_GeneratorThrow": true, 208 "_GeneratorThrow": true,
209 209
210 // Only applicable to DataViews. 210 // Only applicable to DataViews.
211 "DataViewInitialize": true,
211 "DataViewGetBuffer": true, 212 "DataViewGetBuffer": true,
212 "DataViewGetByteLength": true, 213 "DataViewGetByteLength": true,
213 "DataViewGetByteOffset": true 214 "DataViewGetByteOffset": true
214 }; 215 };
215 216
216 var currentlyUncallable = { 217 var currentlyUncallable = {
217 // We need to find a way to test this without breaking the system. 218 // We need to find a way to test this without breaking the system.
218 "SystemBreak": true, 219 "SystemBreak": true,
219 // Inserts an int3/stop instruction when run with --always-opt. 220 // Inserts an int3/stop instruction when run with --always-opt.
220 "_DebugBreakInOptimizedCode": true 221 "_DebugBreakInOptimizedCode": true
221 }; 222 };
222 223
223 function testNatives() { 224 function testNatives() {
224 var allNatives = %ListNatives(); 225 var allNatives = %ListNatives();
225 var start = (allNatives.length >> 2)*3; 226 var start = (allNatives.length >> 2)*3;
226 var stop = allNatives.length; 227 var stop = allNatives.length;
227 for (var i = start; i < stop; i++) { 228 for (var i = start; i < stop; i++) {
228 var nativeInfo = allNatives[i]; 229 var nativeInfo = allNatives[i];
229 var name = nativeInfo[0]; 230 var name = nativeInfo[0];
230 if (name in knownProblems || name in currentlyUncallable) 231 if (name in knownProblems || name in currentlyUncallable)
231 continue; 232 continue;
232 print(name); 233 print(name);
233 var argc = nativeInfo[1]; 234 var argc = nativeInfo[1];
234 testArgumentCount(name, argc); 235 testArgumentCount(name, argc);
235 testArgumentTypes(name, argc); 236 testArgumentTypes(name, argc);
236 } 237 }
237 } 238 }
238 239
239 testNatives(); 240 testNatives();
OLDNEW
« src/hydrogen.cc ('K') | « test/mjsunit/fuzz-natives-part3.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698