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

Unified Diff: sdk/lib/_internal/compiler/implementation/js_emitter/interceptor_emitter.dart

Issue 221873002: Compute frontend/backend specific constants. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixes Created 6 years, 8 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_emitter/interceptor_emitter.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_emitter/interceptor_emitter.dart b/sdk/lib/_internal/compiler/implementation/js_emitter/interceptor_emitter.dart
index 94fe5e48bee6b9bb488fc8a214fc48b4c13642ef..c57a42c00c01723b33e586d8bbed216864cbc131 100644
--- a/sdk/lib/_internal/compiler/implementation/js_emitter/interceptor_emitter.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_emitter/interceptor_emitter.dart
@@ -15,7 +15,7 @@ class InterceptorEmitter extends CodeEmitterHelper {
Set<ClassElement> interceptorsReferencedFromConstants() {
Set<ClassElement> classes = new Set<ClassElement>();
- ConstantHandler handler = compiler.constantHandler;
+ JavaScriptConstantCompiler handler = backend.constants;
List<Constant> constants = handler.getConstantsForEmission();
for (Constant constant in constants) {
if (constant is InterceptorConstant) {
@@ -442,7 +442,7 @@ class InterceptorEmitter extends CodeEmitterHelper {
if (!analysis.needsTable) return;
List<jsAst.Expression> elements = <jsAst.Expression>[];
- ConstantHandler handler = compiler.constantHandler;
+ JavaScriptConstantCompiler handler = backend.constants;
List<Constant> constants =
handler.getConstantsForEmission(task.compareConstants);
for (Constant constant in constants) {

Powered by Google App Engine
This is Rietveld 408576698