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

Issue 48006: Reapply revisions 1432, 1433, 1469 and 1472 while fixing issue 279. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 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
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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 // the rest of the tests. 114 // the rest of the tests.
115 "DisableAccessChecks": true, 115 "DisableAccessChecks": true,
116 "EnableAccessChecks": true, 116 "EnableAccessChecks": true,
117 117
118 // These functions should not be callable as runtime functions. 118 // These functions should not be callable as runtime functions.
119 "NewContext": true, 119 "NewContext": true,
120 "NewArgumentsFast": true, 120 "NewArgumentsFast": true,
121 "PushContext": true, 121 "PushContext": true,
122 "LazyCompile": true, 122 "LazyCompile": true,
123 "CreateObjectLiteralBoilerplate": true, 123 "CreateObjectLiteralBoilerplate": true,
124 "CloneObjectLiteralBoilerplate": true, 124 "CloneLiteralBoilerplate": true,
125 "CloneShallowLiteralBoilerplate": true,
126 "CreateArrayLiteralBoilerplate": true,
125 "IS_VAR": true, 127 "IS_VAR": true,
126 "ResolvePossiblyDirectEval": true, 128 "ResolvePossiblyDirectEval": true,
127 "Log": true 129 "Log": true
128 }; 130 };
129 131
130 var currentlyUncallable = { 132 var currentlyUncallable = {
131 // We need to find a way to test this without breaking the system. 133 // We need to find a way to test this without breaking the system.
132 "SystemBreak": true 134 "SystemBreak": true
133 }; 135 };
134 136
135 function testNatives() { 137 function testNatives() {
136 var allNatives = %ListNatives(); 138 var allNatives = %ListNatives();
137 for (var i = 0; i < allNatives.length; i++) { 139 for (var i = 0; i < allNatives.length; i++) {
138 var nativeInfo = allNatives[i]; 140 var nativeInfo = allNatives[i];
139 var name = nativeInfo[0]; 141 var name = nativeInfo[0];
140 if (name in knownProblems || name in currentlyUncallable) 142 if (name in knownProblems || name in currentlyUncallable)
141 continue; 143 continue;
142 print(name); 144 print(name);
143 var argc = nativeInfo[1]; 145 var argc = nativeInfo[1];
144 testArgumentCount(name); 146 testArgumentCount(name);
145 testArgumentTypes(name, argc); 147 testArgumentTypes(name, argc);
146 } 148 }
147 } 149 }
148 150
149 testNatives(); 151 testNatives();
OLDNEW
« src/objects.h ('K') | « src/runtime.cc ('k') | test/mjsunit/object-literal.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698