Chromium Code Reviews| 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..7176ece279005a36163fea5bb3a4fc7a3b48324c 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.getRTTLookupMethodName(methodElement); |
|
mmendez
2011/12/14 20:48:13
Nit: maybe mangledRttMethodRef would be a better n
codefu
2011/12/15 13:01:53
Done.
|
| 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))); |
| } |