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

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

Issue 1687022: Make LiveEdit natives fuzzy (Closed)
Patch Set: uncomment code Created 10 years, 7 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
« 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 2008 the V8 project authors. All rights reserved. 1 // Copyright 2008 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 165
166 // Tries to allocate based on argument, and (correctly) throws 166 // Tries to allocate based on argument, and (correctly) throws
167 // out-of-memory if the request is too large. In practice, the 167 // out-of-memory if the request is too large. In practice, the
168 // size will be the number of captures of a RegExp. 168 // size will be the number of captures of a RegExp.
169 "RegExpConstructResult": true, 169 "RegExpConstructResult": true,
170 "_RegExpConstructResult": true, 170 "_RegExpConstructResult": true,
171 171
172 // This function performs some checks compile time (it requires its first 172 // This function performs some checks compile time (it requires its first
173 // argument to be a compile time smi). 173 // argument to be a compile time smi).
174 "_GetFromCache": true, 174 "_GetFromCache": true,
175
176 // LiveEdit feature is under development currently and has fragile input.
177 "LiveEditFindSharedFunctionInfosForScript": true,
178 "LiveEditGatherCompileInfo": true,
179 "LiveEditReplaceScript": true,
180 "LiveEditReplaceFunctionCode": true,
181 "LiveEditRelinkFunctionToScript": true,
182 "LiveEditPatchFunctionPositions": true,
183 "LiveEditCheckStackActivations": true
184 }; 175 };
185 176
186 var currentlyUncallable = { 177 var currentlyUncallable = {
187 // We need to find a way to test this without breaking the system. 178 // We need to find a way to test this without breaking the system.
188 "SystemBreak": true 179 "SystemBreak": true
189 }; 180 };
190 181
191 function testNatives() { 182 function testNatives() {
192 var allNatives = %ListNatives(); 183 var allNatives = %ListNatives();
193 for (var i = 0; i < allNatives.length; i++) { 184 for (var i = 0; i < allNatives.length; i++) {
194 var nativeInfo = allNatives[i]; 185 var nativeInfo = allNatives[i];
195 var name = nativeInfo[0]; 186 var name = nativeInfo[0];
196 if (name in knownProblems || name in currentlyUncallable) 187 if (name in knownProblems || name in currentlyUncallable)
197 continue; 188 continue;
198 print(name); 189 print(name);
199 var argc = nativeInfo[1]; 190 var argc = nativeInfo[1];
200 testArgumentCount(name, argc); 191 testArgumentCount(name, argc);
201 testArgumentTypes(name, argc); 192 testArgumentTypes(name, argc);
202 } 193 }
203 } 194 }
204 195
205 testNatives(); 196 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