Author: [EMAIL PROTECTED]
Date: Wed Oct  1 14:09:35 2008
New Revision: 3694

Modified:
    trunk/dev/core/src/com/google/gwt/dev/jjs/ast/JProgram.java
    trunk/dev/core/src/com/google/gwt/dev/js/ast/JsProgram.java

Log:
Fix SOYC-related slowdown in non-SOYC compiles.

Patch by: bobv
Review by: spoon


Modified: trunk/dev/core/src/com/google/gwt/dev/jjs/ast/JProgram.java
==============================================================================
--- trunk/dev/core/src/com/google/gwt/dev/jjs/ast/JProgram.java (original)
+++ trunk/dev/core/src/com/google/gwt/dev/jjs/ast/JProgram.java Wed Oct  1  
14:09:35 2008
@@ -464,8 +464,9 @@
     * itself.
     */
    public SourceInfo createSourceInfoSynthetic(String description) {
-    return createSourceInfo(0, SourceInfoJava.findCaller()).makeChild(
-        description);
+    String caller = enableSourceInfoDescendants ?  
SourceInfoJava.findCaller()
+        : "Unknown caller";
+    return createSourceInfo(0, caller).makeChild(description);
    }

    public JReferenceType generalizeTypes(

Modified: trunk/dev/core/src/com/google/gwt/dev/js/ast/JsProgram.java
==============================================================================
--- trunk/dev/core/src/com/google/gwt/dev/js/ast/JsProgram.java (original)
+++ trunk/dev/core/src/com/google/gwt/dev/js/ast/JsProgram.java Wed Oct  1  
14:09:35 2008
@@ -71,7 +71,9 @@
    }

    public SourceInfo createSourceInfoSynthetic(String description) {
-    return createSourceInfo(0,  
SourceInfoJs.findCaller()).makeChild(description);
+    String caller = enableSourceInfoDescendants ? SourceInfoJs.findCaller()
+        : "Unknown caller";
+    return createSourceInfo(0, caller).makeChild(description);
    }

    public JsBooleanLiteral getBooleanLiteral(boolean truth) {

--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---

Reply via email to