Remove more class name references from optimized code. Only removes 800 bytes from swarm.

Review URL: https://chromereviews.googleplex.com/3548012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@90 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
johnlenz@google.com 2011-10-06 05:51:25 +00:00
parent ea49561596
commit 30232ec2c0

View file

@ -641,8 +641,7 @@ public class GenerateJavascriptAST {
JsFunction func = new JsFunction(this.globalScope);
// Make an id like:
// <type>:field1:field2:...-<supertype>:field1:field2:...
String s = getJsName(classElement).getShortIdent();
JsExpression idExpr = string(s);
JsExpression idExpr = rtt.getRTTClassId(classElement);
for (Element member : classElement.getMembers()) {
if (member.getKind() == ElementKind.FIELD) {
if (!member.getModifiers().isStatic()) {