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

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

Issue 1091443003: Move constant systems into their own libraries. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix try/poi/forget_element_test 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
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
11 import '../compiler.dart' as api; 11 import '../compiler.dart' as api;
12 12
13 import 'colors.dart' as colors; 13 import 'colors.dart' as colors;
14 import 'constants/constant_system.dart' as constants;
14 import 'constants/values.dart' as constants; 15 import 'constants/values.dart' as constants;
15 import 'cps_ir/cps_ir_builder.dart' as ir_builder; 16 import 'cps_ir/cps_ir_builder.dart' as ir_builder;
16 import 'cps_ir/cps_ir_builder_task.dart' as ir_builder; 17 import 'cps_ir/cps_ir_builder_task.dart' as ir_builder;
17 import 'cps_ir/cps_ir_nodes_sexpr.dart' as cps_ir_nodes_sexpr; 18 import 'cps_ir/cps_ir_nodes_sexpr.dart' as cps_ir_nodes_sexpr;
18 import 'tree_ir/tree_ir_nodes.dart' as tree_ir; 19 import 'tree_ir/tree_ir_nodes.dart' as tree_ir;
19 import 'dart_types.dart' as dart_types; 20 import 'dart_types.dart' as dart_types;
20 import 'dart2js.dart' as dart2js; 21 import 'dart2js.dart' as dart2js;
21 import 'dart2jslib.dart' as dart2jslib; 22 import 'dart2jslib.dart' as dart2jslib;
22 import 'elements/elements.dart' as elements; 23 import 'elements/elements.dart' as elements;
23 import 'elements/modelx.dart' as modelx; 24 import 'elements/modelx.dart' as modelx;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 useProgramBuilder(null); 76 useProgramBuilder(null);
76 useSemanticVisitor(); 77 useSemanticVisitor();
77 useTreeVisitors(); 78 useTreeVisitors();
78 } 79 }
79 80
80 useApi() { 81 useApi() {
81 api.ReadStringFromUri uri; 82 api.ReadStringFromUri uri;
82 } 83 }
83 84
84 void useConstant(constants.ConstantValue constant, 85 void useConstant(constants.ConstantValue constant,
85 dart2jslib.ConstantSystem cs) { 86 constants.ConstantSystem cs) {
86 constant.isObject; 87 constant.isObject;
87 cs.isBool(constant); 88 cs.isBool(constant);
88 } 89 }
89 90
90 void useNode(tree.Node node) { 91 void useNode(tree.Node node) {
91 node 92 node
92 ..asAsyncModifier() 93 ..asAsyncModifier()
93 ..asAsyncForIn() 94 ..asAsyncForIn()
94 ..asAwait() 95 ..asAwait()
95 ..asBreakStatement() 96 ..asBreakStatement()
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 visitFieldDefinition(tree_ir.FieldDefinition node) {} 301 visitFieldDefinition(tree_ir.FieldDefinition node) {}
301 302
302 visitFieldInitializer(tree_ir.FieldInitializer node) {} 303 visitFieldInitializer(tree_ir.FieldInitializer node) {}
303 visitSuperInitializer(tree_ir.SuperInitializer node) {} 304 visitSuperInitializer(tree_ir.SuperInitializer node) {}
304 } 305 }
305 306
306 useTreeVisitors() { 307 useTreeVisitors() {
307 new DummyTreeVisitor().visitRootNode(null); 308 new DummyTreeVisitor().visitRootNode(null);
308 new DummyTreeVisitor().visitInitializer(null); 309 new DummyTreeVisitor().visitInitializer(null);
309 } 310 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/ssa/ssa.dart ('k') | tests/compiler/dart2js/backend_dart/opt_constprop_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698