| Index: compiler/java/com/google/dart/compiler/backend/js/GenerateJavascriptAST.java
|
| diff --git a/compiler/java/com/google/dart/compiler/backend/js/GenerateJavascriptAST.java b/compiler/java/com/google/dart/compiler/backend/js/GenerateJavascriptAST.java
|
| index 7eb025528231973905036e7e53a8c293b229a013..8072ccef16d7457c13e9530b7668ef97d2e28caa 100644
|
| --- a/compiler/java/com/google/dart/compiler/backend/js/GenerateJavascriptAST.java
|
| +++ b/compiler/java/com/google/dart/compiler/backend/js/GenerateJavascriptAST.java
|
| @@ -606,7 +606,7 @@ public class GenerateJavascriptAST {
|
| JsName getterJsName = globalScope.declareName(getterName, getterName, methodName);
|
| getterJsName.setObfuscatable(false);
|
| String mangledMethodName = mangler.mangleNamedMethod(methodElement, unitLibrary);
|
| - String mangledRttMethodName = mangler.mangleRttLookupMethod(methodElement, unitLibrary);
|
| + JsNameRef mangledRttMethod = rtt.getRTTLookupMethodNameRef(methodElement);
|
| JsFunction func = new JsFunction(globalScope);
|
| JsNameRef getterJsNameRef;
|
| if (isTopLevel || methodElement.getModifiers().isStatic()) {
|
| @@ -623,7 +623,7 @@ public class GenerateJavascriptAST {
|
| AstUtil.newNameRef(classJsNameRef, mangledMethodName)));
|
| JsBinaryOperation varLookup = AstUtil.newAssignment(
|
| AstUtil.newNameRef(returnVar.makeRef(), "$lookupRTT"),
|
| - AstUtil.newNameRef(classJsNameRef, mangledRttMethodName));
|
| + mangledRttMethod);
|
| stmts.add(varLookup.makeStmt());
|
| stmts.add(new JsReturn(returnVar.makeRef()));
|
| } else {
|
| @@ -633,7 +633,7 @@ public class GenerateJavascriptAST {
|
| getterJsNameRef = AstUtil.newNameRef(prototypeRef, getterJsName);
|
| JsExpression bindMethodCall = AstUtil.newInvocation(new JsNameRef("$bind"),
|
| AstUtil.newNameRef(prototypeRef, mangledMethodName),
|
| - AstUtil.newNameRef(prototypeRef, mangledRttMethodName), new JsThisRef());
|
| + mangledRttMethod, new JsThisRef());
|
| func.setBody(AstUtil.newBlock(new JsReturn(bindMethodCall)));
|
| }
|
|
|
|
|