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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/use_unused_api.dart

Issue 614993002: Rename Constant to ConstantValue and ConstExp to ConstantExpression. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 6 years, 2 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 useIr(null, null, null); 57 useIr(null, null, null);
58 useCompiler(null); 58 useCompiler(null);
59 useTypes(); 59 useTypes();
60 useCodeEmitterTask(null); 60 useCodeEmitterTask(null);
61 } 61 }
62 62
63 useApi() { 63 useApi() {
64 api.ReadStringFromUri uri; 64 api.ReadStringFromUri uri;
65 } 65 }
66 66
67 void useConstant(constants.Constant constant, dart2jslib.ConstantSystem cs) { 67 void useConstant(constants.ConstantValue constant,
68 dart2jslib.ConstantSystem cs) {
68 constant.isObject; 69 constant.isObject;
69 cs.isBool(constant); 70 cs.isBool(constant);
70 } 71 }
71 72
72 void useNode(tree.Node node) { 73 void useNode(tree.Node node) {
73 node 74 node
74 ..asBreakStatement() 75 ..asBreakStatement()
75 ..asCascade() 76 ..asCascade()
76 ..asCatchBlock() 77 ..asCatchBlock()
77 ..asClassNode() 78 ..asClassNode()
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 compiler.forgetElement(null); 243 compiler.forgetElement(null);
243 } 244 }
244 245
245 useTypes() { 246 useTypes() {
246 new dart_types.ResolvedTypedefType(null, null, null).unalias(null); 247 new dart_types.ResolvedTypedefType(null, null, null).unalias(null);
247 } 248 }
248 249
249 useCodeEmitterTask(js_emitter.CodeEmitterTask codeEmitterTask) { 250 useCodeEmitterTask(js_emitter.CodeEmitterTask codeEmitterTask) {
250 codeEmitterTask.oldEmitter.clearCspPrecompiledNodes(); 251 codeEmitterTask.oldEmitter.clearCspPrecompiledNodes();
251 } 252 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698