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

Unified Diff: sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.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/js_backend/type_variable_handler.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart b/sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart
index ac9aa5685077cfe091f4e87e3f70831e669c29d9..f262354af213f969a5bb3c0708d6b7d31ac9e410 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart
@@ -67,19 +67,19 @@ class TypeVariableHandler {
for (TypeVariableType currentTypeVariable in cls.typeVariables) {
TypeVariableElement typeVariableElement = currentTypeVariable.element;
- AstConstant wrapConstant(ConstExp constant) {
+ AstConstant wrapConstant(ConstantExpression constant) {
return new AstConstant(typeVariableElement,
typeVariableElement.node,
constant);
}
- ConstExp name = new PrimitiveConstExp(
+ ConstantExpression name = new PrimitiveConstantExpression(
backend.constantSystem.createString(
new DartString.literal(currentTypeVariable.name)));
- ConstExp bound = new PrimitiveConstExp(
+ ConstantExpression bound = new PrimitiveConstantExpression(
backend.constantSystem.createInt(
emitter.reifyType(typeVariableElement.bound)));
- ConstExp type = backend.constants.createTypeConstant(cls);
+ ConstantExpression type = backend.constants.createTypeConstant(cls);
List<AstConstant> arguments =
[wrapConstant(type), wrapConstant(name), wrapConstant(bound)];
@@ -96,7 +96,7 @@ class TypeVariableHandler {
new Selector.callConstructor('', null, 3),
arguments,
arguments);
- Constant value = constant.value;
+ ConstantValue value = constant.value;
backend.registerCompileTimeConstant(value, compiler.globalDependencies);
backend.constants.addCompileTimeConstantForEmission(value);
constants.add(
@@ -136,7 +136,7 @@ class TypeVariableHandler {
* entry in the list has already been reserved and the constant is added
* there, otherwise a new entry for [c] is created.
*/
- int reifyTypeVariableConstant(Constant c, TypeVariableElement variable) {
+ int reifyTypeVariableConstant(ConstantValue c, TypeVariableElement variable) {
String name = jsAst.prettyPrint(task.oldEmitter.constantReference(c),
compiler).getText();
int index;

Powered by Google App Engine
This is Rietveld 408576698