mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 16:41:07 +00:00
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:
parent
ea49561596
commit
30232ec2c0
|
@ -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()) {
|
||||
|
|
Loading…
Reference in a new issue