Skip to content

Commit

Permalink
Move NameClashesFixer back to the start of GenerateJavaScriptAST.exec.
Browse files Browse the repository at this point in the history
Moving it to normalizeSemantics introduced an unwanted behaviour.

Change-Id: Id071b2c8d1a543a257e6cc5cdc3f0f1da83e3682
  • Loading branch information
rluble authored and Gerrit Code Review committed Oct 10, 2015
1 parent d6314fc commit b478522
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
Expand Up @@ -97,7 +97,6 @@
import com.google.gwt.dev.jjs.impl.MethodCallSpecializer;
import com.google.gwt.dev.jjs.impl.MethodCallTightener;
import com.google.gwt.dev.jjs.impl.MethodInliner;
import com.google.gwt.dev.jjs.impl.NameClashesFixer;
import com.google.gwt.dev.jjs.impl.OptimizerContext;
import com.google.gwt.dev.jjs.impl.OptimizerStats;
import com.google.gwt.dev.jjs.impl.PostOptimizationCompoundAssignmentNormalizer;
Expand Down Expand Up @@ -505,7 +504,6 @@ protected TypeMapper<?> normalizeSemantics() {
TypeMapper<?> typeMapper = getTypeMapper();
ResolveRuntimeTypeReferences.exec(jprogram, typeMapper, getTypeOrder());

NameClashesFixer.exec(jprogram);
return typeMapper;
} finally {
event.end();
Expand Down
Expand Up @@ -3002,6 +3002,7 @@ private void contructTypeToClassLiteralDeclarationMap() {
}

private Pair<JavaToJavaScriptMap, Set<JsNode>> execImpl() {
NameClashesFixer.exec(program);
uninitializedValuePotentiallyObservable = optimize
? ComputePotentiallyObservableUninitializedValues.analyze(program)
: Predicates.<JField>alwaysTrue();
Expand Down
Expand Up @@ -98,7 +98,6 @@ public CharSequence getContent() {
ArrayNormalizer.exec(jProgram);
TypeTightener.exec(jProgram);
MethodCallTightener.exec(jProgram);
NameClashesFixer.exec(jProgram);

IntTypeMapper typeMapper = new IntTypeMapper();
ResolveRuntimeTypeReferences.exec(jProgram, typeMapper, TypeOrder.FREQUENCY);
Expand Down

0 comments on commit b478522

Please sign in to comment.