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

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

Issue 265883009: Build cleanup following r21126. Marking Native* methods in object-observe.js as knownProblems in fu… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 181
182 // Only applicable to TypedArrays. 182 // Only applicable to TypedArrays.
183 "_TypedArrayInitialize": true, 183 "_TypedArrayInitialize": true,
184 184
185 // Only applicable to generators. 185 // Only applicable to generators.
186 "_GeneratorNext": true, 186 "_GeneratorNext": true,
187 "_GeneratorThrow": true, 187 "_GeneratorThrow": true,
188 188
189 // Only applicable to DataViews. 189 // Only applicable to DataViews.
190 "_DataViewInitialize": true, 190 "_DataViewInitialize": true,
191
192 // Internal calls from the Object.observe API
193 "NativeObjectObserve": true,
194 "NativeObjectNotifierPerformChange": true,
195 "NativeObjectGetNotifier": true
191 }; 196 };
192 197
193 var currentlyUncallable = { 198 var currentlyUncallable = {
194 // We need to find a way to test this without breaking the system. 199 // We need to find a way to test this without breaking the system.
195 "SystemBreak": true, 200 "SystemBreak": true,
196 // Inserts an int3/stop instruction when run with --always-opt. 201 // Inserts an int3/stop instruction when run with --always-opt.
197 "_DebugBreakInOptimizedCode": true 202 "_DebugBreakInOptimizedCode": true
198 }; 203 };
199 204
200 function testNatives() { 205 function testNatives() {
201 var allNatives = %ListNatives(); 206 var allNatives = %ListNatives();
202 var start = allNatives.length >> 2; 207 var start = allNatives.length >> 2;
203 var stop = (allNatives.length >> 2)*2; 208 var stop = (allNatives.length >> 2)*2;
204 for (var i = start; i < stop; i++) { 209 for (var i = start; i < stop; i++) {
205 var nativeInfo = allNatives[i]; 210 var nativeInfo = allNatives[i];
206 var name = nativeInfo[0]; 211 var name = nativeInfo[0];
207 if (name in knownProblems || name in currentlyUncallable) 212 if (name in knownProblems || name in currentlyUncallable)
208 continue; 213 continue;
209 print(name); 214 print(name);
210 var argc = nativeInfo[1]; 215 var argc = nativeInfo[1];
211 testArgumentCount(name, argc); 216 testArgumentCount(name, argc);
212 testArgumentTypes(name, argc); 217 testArgumentTypes(name, argc);
213 } 218 }
214 } 219 }
215 220
216 testNatives(); 221 testNatives();
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698