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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/ssa/codegen.dart

Issue 60293003: Version 0.8.10.5 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 1 month 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: dart/sdk/lib/_internal/compiler/implementation/ssa/codegen.dart
===================================================================
--- dart/sdk/lib/_internal/compiler/implementation/ssa/codegen.dart (revision 29908)
+++ dart/sdk/lib/_internal/compiler/implementation/ssa/codegen.dart (working copy)
@@ -1617,9 +1617,11 @@
world.registerStaticUse(superMethod);
ClassElement superClass = superMethod.getEnclosingClass();
if (superMethod.kind == ElementKind.FIELD) {
- String fieldName = node.caller.isShadowedByField(superMethod)
- ? backend.namer.shadowedFieldName(superMethod)
- : backend.namer.instanceFieldName(superMethod);
+ String fieldName = superMethod.hasFixedBackendName()
+ ? superMethod.fixedBackendName()
+ : node.caller.isShadowedByField(superMethod)
+ ? backend.namer.shadowedFieldName(superMethod)
+ : backend.namer.instanceFieldName(superMethod);
use(node.inputs[0]);
js.PropertyAccess access =
new js.PropertyAccess.field(pop(), fieldName);

Powered by Google App Engine
This is Rietveld 408576698