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

Unified 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: Updated cf. comments. Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/compiler/implementation/compiler.dart
diff --git a/sdk/lib/_internal/compiler/implementation/compiler.dart b/sdk/lib/_internal/compiler/implementation/compiler.dart
index d7541589f2a3686a4663b4b6371b31b690664034..160e35b69640d68862aad8e802c2dc7cf72f0ad7 100644
--- a/sdk/lib/_internal/compiler/implementation/compiler.dart
+++ b/sdk/lib/_internal/compiler/implementation/compiler.dart
@@ -123,7 +123,7 @@ class CodegenRegistry extends Registry {
backend.registerIsCheckForCodegen(type, world, this);
}
- void registerCompileTimeConstant(Constant constant) {
+ void registerCompileTimeConstant(ConstantValue constant) {
backend.registerCompileTimeConstant(constant, this);
backend.constants.addCompileTimeConstantForEmission(constant);
}
@@ -276,7 +276,7 @@ abstract class Backend {
bool methodNeedsRti(FunctionElement function);
/// Called during codegen when [constant] has been used.
- void registerCompileTimeConstant(Constant constant, Registry registry) {}
+ void registerCompileTimeConstant(ConstantValue constant, Registry registry) {}
/// Called during resolution when a constant value for [metadata] on
/// [annotatedElement] has been evaluated.
@@ -757,11 +757,11 @@ abstract class Compiler implements DiagnosticListener {
ClassElement typedDataClass;
/// The constant for the [proxy] variable defined in dart:core.
- Constant proxyConstant;
+ ConstantValue proxyConstant;
// TODO(johnniwinther): Move this to the JavaScriptBackend.
/// The constant for the [patch] variable defined in dart:_js_helper.
- Constant patchConstant;
+ ConstantValue patchConstant;
// TODO(johnniwinther): Move this to the JavaScriptBackend.
ClassElement nativeAnnotationClass;

Powered by Google App Engine
This is Rietveld 408576698