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

Unified Diff: pkg/compiler/lib/src/ssa/codegen.dart

Issue 2620023002: Use elements/types in constants/values (Closed)
Patch Set: Created 3 years, 11 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: pkg/compiler/lib/src/ssa/codegen.dart
diff --git a/pkg/compiler/lib/src/ssa/codegen.dart b/pkg/compiler/lib/src/ssa/codegen.dart
index 3ede5f61b1893d4ed935d9a682b09200ee4adcfb..78a800fb26d7c292928957a81cf661ff1e6f9247 100644
--- a/pkg/compiler/lib/src/ssa/codegen.dart
+++ b/pkg/compiler/lib/src/ssa/codegen.dart
@@ -2070,7 +2070,8 @@ class SsaCodeGenerator implements HVisitor, HBlockInformationVisitor {
// available to 'upgrade' the native object.
TypeConstantValue type = constant;
if (type.representedType.isInterfaceType) {
- registry.registerTypeConstant(type.representedType.element);
+ InterfaceType representedType = type.representedType;
+ registry.registerTypeConstant(representedType.element);
}
}
js.Expression expression = backend.emitter.constantReference(constant);

Powered by Google App Engine
This is Rietveld 408576698