| Index: dart/lib/compiler/implementation/ssa/codegen.dart
|
| diff --git a/dart/lib/compiler/implementation/ssa/codegen.dart b/dart/lib/compiler/implementation/ssa/codegen.dart
|
| index 44664d94087df2d54bcf4b0b3f45170daf482f32..7984e067bbe3c253b49a7c8e32c984aa33c96128 100644
|
| --- a/dart/lib/compiler/implementation/ssa/codegen.dart
|
| +++ b/dart/lib/compiler/implementation/ssa/codegen.dart
|
| @@ -1440,9 +1440,16 @@ class SsaCodeGenerator implements HVisitor, HBlockInformationVisitor {
|
| } else if (superMethod.kind == ElementKind.FIELD) {
|
| buffer.add('this.${compiler.namer.getName(superMethod)}');
|
| } else {
|
| - assert(superMethod.kind == ElementKind.GETTER);
|
| - String methodName =
|
| - compiler.namer.getterName(currentLibrary, superMethod.name);
|
| + assert(superMethod.kind == ElementKind.GETTER ||
|
| + superMethod.kind == ElementKind.SETTER);
|
| + String methodName;
|
| + if (superMethod.kind == ElementKind.GETTER) {
|
| + methodName =
|
| + compiler.namer.getterName(currentLibrary, superMethod.name);
|
| + } else {
|
| + methodName =
|
| + compiler.namer.setterName(currentLibrary, superMethod.name);
|
| + }
|
| buffer.add('$className.prototype.$methodName.call');
|
| visitArguments(node.inputs);
|
| }
|
|
|