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

Side by Side Diff: pkg/compiler/lib/src/use_unused_api.dart

Issue 923013002: dart2dart: Implementation of simple try/catch. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed break/continue, incorporated comments. Created 5 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 (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /// This file use methods that aren't used by dart2js.dart, but that we wish to 5 /// This file use methods that aren't used by dart2js.dart, but that we wish to
6 /// keep anyway. This might be general API that isn't currently in use, 6 /// keep anyway. This might be general API that isn't currently in use,
7 /// debugging aids, or API only used for testing (see TODO below). 7 /// debugging aids, or API only used for testing (see TODO below).
8 8
9 library dart2js.use_unused_api; 9 library dart2js.use_unused_api;
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 useJsNode(new js.ArrayHole()); 56 useJsNode(new js.ArrayHole());
57 useJsOther(new js.SimpleJavaScriptPrintingContext()); 57 useJsOther(new js.SimpleJavaScriptPrintingContext());
58 useJsBackend(null); 58 useJsBackend(null);
59 useConcreteTypesInferrer(null); 59 useConcreteTypesInferrer(null);
60 useColor(); 60 useColor();
61 useFilenames(); 61 useFilenames();
62 useSsa(null); 62 useSsa(null);
63 useCodeBuffer(null); 63 useCodeBuffer(null);
64 usedByTests(); 64 usedByTests();
65 useElements(null, null, null, null, null); 65 useElements(null, null, null, null, null);
66 useIr(null, null, null); 66 useIr(null, null);
67 useCompiler(null); 67 useCompiler(null);
68 useTypes(); 68 useTypes();
69 useCodeEmitterTask(null); 69 useCodeEmitterTask(null);
70 useScript(null); 70 useScript(null);
71 useProgramBuilder(null); 71 useProgramBuilder(null);
72 } 72 }
73 73
74 useApi() { 74 useApi() {
75 api.ReadStringFromUri uri; 75 api.ReadStringFromUri uri;
76 } 76 }
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 PartialClassElement pce, 231 PartialClassElement pce,
232 PartialFunctionElement pfe) { 232 PartialFunctionElement pfe) {
233 e.lookupClassMember(null); 233 e.lookupClassMember(null);
234 e.lookupInterfaceMember(null); 234 e.lookupInterfaceMember(null);
235 n.isAccessibleFrom(null); 235 n.isAccessibleFrom(null);
236 f.reuseElement(); 236 f.reuseElement();
237 pce.copyWithEnclosing(null); 237 pce.copyWithEnclosing(null);
238 pfe.copyWithEnclosing(null); 238 pfe.copyWithEnclosing(null);
239 } 239 }
240 240
241 useIr(cps_ir_nodes_sexpr.SExpressionStringifier stringifier, 241 useIr(ir_builder.IrBuilderTask task,
242 ir_builder.IrBuilderTask task,
243 ir_builder.IrBuilder builder) { 242 ir_builder.IrBuilder builder) {
244 new cps_ir_nodes_sexpr.SExpressionStringifier();
245 stringifier
246 ..newContinuationName(null)
247 ..newValueName(null)
248 ..visitConstant(null)
249 ..visitContinuation(null)
250 ..visitDefinition(null)
251 ..visitExpression(null)
252 ..visitFunctionDefinition(null)
253 ..visitFieldDefinition(null)
254 ..visitInvokeStatic(null)
255 ..visitLetCont(null)
256 ..visitNode(null)
257 ..visitParameter(null);
258 task 243 task
259 ..hasIr(null) 244 ..hasIr(null)
260 ..getIr(null); 245 ..getIr(null);
261 builder 246 builder
262 ..buildIntegerLiteral(null) 247 ..buildIntegerLiteral(null)
263 ..buildDoubleLiteral(null) 248 ..buildDoubleLiteral(null)
264 ..buildBooleanLiteral(null) 249 ..buildBooleanLiteral(null)
265 ..buildNullLiteral() 250 ..buildNullLiteral()
266 ..buildStringLiteral(null) 251 ..buildStringLiteral(null)
267 ..buildDynamicGet(null, null); 252 ..buildDynamicGet(null, null);
(...skipping 16 matching lines...) Expand all
284 } 269 }
285 270
286 useScript(dart2jslib.Script script) { 271 useScript(dart2jslib.Script script) {
287 script.copyWithFile(null); 272 script.copyWithFile(null);
288 } 273 }
289 274
290 useProgramBuilder(program_builder.ProgramBuilder builder) { 275 useProgramBuilder(program_builder.ProgramBuilder builder) {
291 builder.buildMethodHackForIncrementalCompilation(null); 276 builder.buildMethodHackForIncrementalCompilation(null);
292 builder.buildFieldsHackForIncrementalCompilation(null); 277 builder.buildFieldsHackForIncrementalCompilation(null);
293 } 278 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698