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

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

Issue 341082: Reverting 3174. Aka reapplying 3150, 3151 and 3159. Aka api accessor (Closed)
Patch Set: Created 11 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
« no previous file with comments | « test/cctest/test-log-stack-tracer.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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 "LazyCompile": true, 122 "LazyCompile": true,
123 "CreateObjectLiteralBoilerplate": true, 123 "CreateObjectLiteralBoilerplate": true,
124 "CloneLiteralBoilerplate": true, 124 "CloneLiteralBoilerplate": true,
125 "CloneShallowLiteralBoilerplate": true, 125 "CloneShallowLiteralBoilerplate": true,
126 "CreateArrayLiteralBoilerplate": true, 126 "CreateArrayLiteralBoilerplate": true,
127 "IS_VAR": true, 127 "IS_VAR": true,
128 "ResolvePossiblyDirectEval": true, 128 "ResolvePossiblyDirectEval": true,
129 "Log": true, 129 "Log": true,
130 "DeclareGlobals": true, 130 "DeclareGlobals": true,
131 131
132 "CollectStackTrace": true 132 "CollectStackTrace": true,
133 "PromoteScheduledException": true,
134 "DeleteHandleScopeExtensions": true
133 }; 135 };
134 136
135 var currentlyUncallable = { 137 var currentlyUncallable = {
136 // We need to find a way to test this without breaking the system. 138 // We need to find a way to test this without breaking the system.
137 "SystemBreak": true 139 "SystemBreak": true
138 }; 140 };
139 141
140 function testNatives() { 142 function testNatives() {
141 var allNatives = %ListNatives(); 143 var allNatives = %ListNatives();
142 for (var i = 0; i < allNatives.length; i++) { 144 for (var i = 0; i < allNatives.length; i++) {
143 var nativeInfo = allNatives[i]; 145 var nativeInfo = allNatives[i];
144 var name = nativeInfo[0]; 146 var name = nativeInfo[0];
145 if (name in knownProblems || name in currentlyUncallable) 147 if (name in knownProblems || name in currentlyUncallable)
146 continue; 148 continue;
147 print(name); 149 print(name);
148 var argc = nativeInfo[1]; 150 var argc = nativeInfo[1];
149 testArgumentCount(name); 151 testArgumentCount(name);
150 testArgumentTypes(name, argc); 152 testArgumentTypes(name, argc);
151 } 153 }
152 } 154 }
153 155
154 testNatives(); 156 testNatives();
OLDNEW
« no previous file with comments | « test/cctest/test-log-stack-tracer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698