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

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

Issue 12673: Change implementation of eval to make an exact distinction between direct eva... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 12 years 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 "CloneObjectLiteralBoilerplate": true,
125 "IS_VAR": true 125 "IS_VAR": true,
126 "ResolvePossiblyDirectEval": true
126 }; 127 };
127 128
128 var currentlyUncallable = { 129 var currentlyUncallable = {
129 // We need to find a way to test this without breaking the system. 130 // We need to find a way to test this without breaking the system.
130 "SystemBreak": true 131 "SystemBreak": true
131 }; 132 };
132 133
133 function testNatives() { 134 function testNatives() {
134 var allNatives = %ListNatives(); 135 var allNatives = %ListNatives();
135 for (var i = 0; i < allNatives.length; i++) { 136 for (var i = 0; i < allNatives.length; i++) {
136 var nativeInfo = allNatives[i]; 137 var nativeInfo = allNatives[i];
137 var name = nativeInfo[0]; 138 var name = nativeInfo[0];
138 if (name in knownProblems || name in currentlyUncallable) 139 if (name in knownProblems || name in currentlyUncallable)
139 continue; 140 continue;
140 print(name); 141 print(name);
141 var argc = nativeInfo[1]; 142 var argc = nativeInfo[1];
142 testArgumentCount(name); 143 testArgumentCount(name);
143 testArgumentTypes(name, argc); 144 testArgumentTypes(name, argc);
144 } 145 }
145 } 146 }
146 147
147 testNatives(); 148 testNatives();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698