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

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

Issue 1057483004: Clean up handling of constants in the CPS backend. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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 | « pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart ('k') | tests/co19/co19-dart2js.status » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 pce.copyWithEnclosing(null); 246 pce.copyWithEnclosing(null);
247 pfe.copyWithEnclosing(null); 247 pfe.copyWithEnclosing(null);
248 } 248 }
249 249
250 useIr(ir_builder.IrBuilderTask task, 250 useIr(ir_builder.IrBuilderTask task,
251 ir_builder.IrBuilder builder) { 251 ir_builder.IrBuilder builder) {
252 task 252 task
253 ..hasIr(null) 253 ..hasIr(null)
254 ..getIr(null); 254 ..getIr(null);
255 builder 255 builder
256 ..buildIntegerLiteral(null) 256 ..buildStringConstant(null)
257 ..buildDoubleLiteral(null)
258 ..buildBooleanLiteral(null)
259 ..buildNullLiteral()
260 ..buildStringLiteral(null)
261 ..buildDynamicGet(null, null); 257 ..buildDynamicGet(null, null);
262 } 258 }
263 259
264 useCompiler(dart2jslib.Compiler compiler) { 260 useCompiler(dart2jslib.Compiler compiler) {
265 compiler.libraryLoader 261 compiler.libraryLoader
266 ..reset() 262 ..reset()
267 ..resetAsync(null) 263 ..resetAsync(null)
268 ..lookupLibrary(null); 264 ..lookupLibrary(null);
269 compiler.forgetElement(null); 265 compiler.forgetElement(null);
270 } 266 }
(...skipping 30 matching lines...) Expand all
301 visitFieldDefinition(tree_ir.FieldDefinition node) {} 297 visitFieldDefinition(tree_ir.FieldDefinition node) {}
302 298
303 visitFieldInitializer(tree_ir.FieldInitializer node) {} 299 visitFieldInitializer(tree_ir.FieldInitializer node) {}
304 visitSuperInitializer(tree_ir.SuperInitializer node) {} 300 visitSuperInitializer(tree_ir.SuperInitializer node) {}
305 } 301 }
306 302
307 useTreeVisitors() { 303 useTreeVisitors() {
308 new DummyTreeVisitor().visitRootNode(null); 304 new DummyTreeVisitor().visitRootNode(null);
309 new DummyTreeVisitor().visitInitializer(null); 305 new DummyTreeVisitor().visitInitializer(null);
310 } 306 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart ('k') | tests/co19/co19-dart2js.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698