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

Unified Diff: sdk/lib/_internal/compiler/implementation/js_backend/type_variable_handler.dart

Issue 221873002: Compute frontend/backend specific constants. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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 9c467ba910bccf58f77f6ce7dc42587378c42425..3e09a59efb1dd72a4b60f9e09bb82db4252e64a4 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
@@ -66,7 +66,7 @@ class TypeVariableHandler {
InterfaceType typeVariableType = typeVariableClass.thisType;
List<int> constants = <int>[];
evaluator = new CompileTimeConstantEvaluator(
- compiler.constantHandler,
+ backend.constantHandler,
compiler.globalDependencies,
compiler);
@@ -80,7 +80,7 @@ class TypeVariableHandler {
new DartString.literal(currentTypeVariable.name));
Constant bound = backend.constantSystem.createInt(
emitter.reifyType(currentTypeVariable.element.bound));
- Constant type = evaluator.makeTypeConstant(cls);
+ Constant type = backend.constantHandler.createTypeConstant(cls);
return [type, name, bound];
}
@@ -88,7 +88,7 @@ class TypeVariableHandler {
currentTypeVariable.element, typeVariableType,
typeVariableConstructor, createArguments);
backend.registerCompileTimeConstant(c, compiler.globalDependencies);
- compiler.constantHandler.addCompileTimeConstantForEmission(c);
+ backend.constantHandler.addCompileTimeConstantForEmission(c);
constants.add(
reifyTypeVariableConstant(c, currentTypeVariable.element));
}

Powered by Google App Engine
This is Rietveld 408576698