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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/compiler.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: 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 part of dart2js; 5 part of dart2js;
6 6
7 /** 7 /**
8 * If true, print a warning for each method that was resolved, but not 8 * If true, print a warning for each method that was resolved, but not
9 * compiled. 9 * compiled.
10 */ 10 */
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 116
117 void registerFieldSetter(Element element) { 117 void registerFieldSetter(Element element) {
118 world.registerFieldSetter(element); 118 world.registerFieldSetter(element);
119 } 119 }
120 120
121 void registerIsCheck(DartType type) { 121 void registerIsCheck(DartType type) {
122 world.registerIsCheck(type, this); 122 world.registerIsCheck(type, this);
123 backend.registerIsCheckForCodegen(type, world, this); 123 backend.registerIsCheckForCodegen(type, world, this);
124 } 124 }
125 125
126 void registerCompileTimeConstant(Constant constant) { 126 void registerCompileTimeConstant(ConstantValue constant) {
127 backend.registerCompileTimeConstant(constant, this); 127 backend.registerCompileTimeConstant(constant, this);
128 backend.constants.addCompileTimeConstantForEmission(constant); 128 backend.constants.addCompileTimeConstantForEmission(constant);
129 } 129 }
130 130
131 void registerTypeVariableBoundsSubtypeCheck(DartType subtype, 131 void registerTypeVariableBoundsSubtypeCheck(DartType subtype,
132 DartType supertype) { 132 DartType supertype) {
133 backend.registerTypeVariableBoundsSubtypeCheck(subtype, supertype); 133 backend.registerTypeVariableBoundsSubtypeCheck(subtype, supertype);
134 } 134 }
135 135
136 void registerClosureWithFreeTypeVariables(FunctionElement element) { 136 void registerClosureWithFreeTypeVariables(FunctionElement element) {
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 void onResolutionComplete() {} 269 void onResolutionComplete() {}
270 270
271 ItemCompilationContext createItemCompilationContext() { 271 ItemCompilationContext createItemCompilationContext() {
272 return new ItemCompilationContext(); 272 return new ItemCompilationContext();
273 } 273 }
274 274
275 bool classNeedsRti(ClassElement cls); 275 bool classNeedsRti(ClassElement cls);
276 bool methodNeedsRti(FunctionElement function); 276 bool methodNeedsRti(FunctionElement function);
277 277
278 /// Called during codegen when [constant] has been used. 278 /// Called during codegen when [constant] has been used.
279 void registerCompileTimeConstant(Constant constant, Registry registry) {} 279 void registerCompileTimeConstant(ConstantValue constant, Registry registry) {}
280 280
281 /// Called during resolution when a constant value for [metadata] on 281 /// Called during resolution when a constant value for [metadata] on
282 /// [annotatedElement] has been evaluated. 282 /// [annotatedElement] has been evaluated.
283 void registerMetadataConstant(MetadataAnnotation metadata, 283 void registerMetadataConstant(MetadataAnnotation metadata,
284 Element annotatedElement, 284 Element annotatedElement,
285 Registry registry) {} 285 Registry registry) {}
286 286
287 /// Called during resolution to notify to the backend that a class is 287 /// Called during resolution to notify to the backend that a class is
288 /// being instantiated. 288 /// being instantiated.
289 void registerInstantiatedClass(ClassElement cls, 289 void registerInstantiatedClass(ClassElement cls,
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
750 ClassElement functionClass; 750 ClassElement functionClass;
751 ClassElement nullClass; 751 ClassElement nullClass;
752 ClassElement listClass; 752 ClassElement listClass;
753 ClassElement typeClass; 753 ClassElement typeClass;
754 ClassElement mapClass; 754 ClassElement mapClass;
755 ClassElement symbolClass; 755 ClassElement symbolClass;
756 ClassElement stackTraceClass; 756 ClassElement stackTraceClass;
757 ClassElement typedDataClass; 757 ClassElement typedDataClass;
758 758
759 /// The constant for the [proxy] variable defined in dart:core. 759 /// The constant for the [proxy] variable defined in dart:core.
760 Constant proxyConstant; 760 ConstantValue proxyConstant;
761 761
762 // TODO(johnniwinther): Move this to the JavaScriptBackend. 762 // TODO(johnniwinther): Move this to the JavaScriptBackend.
763 /// The constant for the [patch] variable defined in dart:_js_helper. 763 /// The constant for the [patch] variable defined in dart:_js_helper.
764 Constant patchConstant; 764 ConstantValue patchConstant;
765 765
766 // TODO(johnniwinther): Move this to the JavaScriptBackend. 766 // TODO(johnniwinther): Move this to the JavaScriptBackend.
767 ClassElement nativeAnnotationClass; 767 ClassElement nativeAnnotationClass;
768 768
769 // Initialized after symbolClass has been resolved. 769 // Initialized after symbolClass has been resolved.
770 FunctionElement symbolConstructor; 770 FunctionElement symbolConstructor;
771 771
772 // Initialized when dart:mirrors is loaded. 772 // Initialized when dart:mirrors is loaded.
773 ClassElement mirrorSystemClass; 773 ClassElement mirrorSystemClass;
774 774
(...skipping 1376 matching lines...) Expand 10 before | Expand all | Expand 10 after
2151 int warnings = 0; 2151 int warnings = 0;
2152 int hints = 0; 2152 int hints = 0;
2153 } 2153 }
2154 2154
2155 class GenericTask extends CompilerTask { 2155 class GenericTask extends CompilerTask {
2156 final String name; 2156 final String name;
2157 2157
2158 GenericTask(this.name, Compiler compiler) 2158 GenericTask(this.name, Compiler compiler)
2159 : super(compiler); 2159 : super(compiler);
2160 } 2160 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698