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

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

Issue 10911211: Runtime support for the new parameter specification. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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: lib/compiler/implementation/ssa/codegen.dart
===================================================================
--- lib/compiler/implementation/ssa/codegen.dart (revision 12238)
+++ lib/compiler/implementation/ssa/codegen.dart (working copy)
@@ -1561,8 +1561,6 @@
visitInvokeSuper(HInvokeSuper node) {
Element superMethod = node.element;
Element superClass = superMethod.getEnclosingClass();
- // Remove the element and 'this'.
- int argumentCount = node.inputs.length - 2;
if (superMethod.kind == ElementKind.FIELD) {
ClassElement currentClass = work.element.getEnclosingClass();
if (currentClass.isClosure()) {
@@ -1590,8 +1588,7 @@
String methodName;
if (superMethod.kind == ElementKind.FUNCTION ||
superMethod.kind == ElementKind.GENERATIVE_CONSTRUCTOR) {
- methodName = backend.namer.instanceMethodName(
- currentLibrary, superMethod.name, argumentCount);
+ methodName = backend.namer.instanceMethodName(superMethod);
} else if (superMethod.kind == ElementKind.GETTER) {
methodName =
backend.namer.getterName(currentLibrary, superMethod.name);

Powered by Google App Engine
This is Rietveld 408576698