Author: hqm
Date: 2008-01-11 11:00:12 -0800 (Fri, 11 Jan 2008)
New Revision: 7809
Added:
openlaszlo/branches/devildog/WEB-INF/lps/server/src/org/openlaszlo/compiler/SWF9Writer.java
Modified:
openlaszlo/branches/devildog/WEB-INF/lps/server/src/org/openlaszlo/compiler/Compiler.java
openlaszlo/branches/devildog/WEB-INF/lps/server/src/org/openlaszlo/sc/SWF9Generator.java
Log:
Change 20080111-hqm-6 by [EMAIL PROTECTED] on 2008-01-11 13:54:44 EST
in /cygdrive/c/users/hqm/openlaszlo/devildog/WEB-INF/lps/server/src
for
http://svn.openlaszlo.org/openlaszlo/branches/devildog/WEB-INF/lps/server/src
Summary: set debugSimple flag = false for swf9 runtime
New Features:
Bugs Fixed:
Technical Reviewer: ptw
QA Reviewer: dda
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
make the SWF9 code generator set the DEBUG_SIMPLE flag to false, to
prevent function expression from being given names, to workaround SWF9 player
bug.
Also, clone DHTMLWriter to make SWF9Writer in compiler.
This will be modified to support embedding of assets, and any other
swf9-specific
javascript generation before passing to the script compiler.
Tests:
Modified:
openlaszlo/branches/devildog/WEB-INF/lps/server/src/org/openlaszlo/compiler/Compiler.java
===================================================================
---
openlaszlo/branches/devildog/WEB-INF/lps/server/src/org/openlaszlo/compiler/Compiler.java
2008-01-11 18:57:12 UTC (rev 7808)
+++
openlaszlo/branches/devildog/WEB-INF/lps/server/src/org/openlaszlo/compiler/Compiler.java
2008-01-11 19:00:12 UTC (rev 7809)
@@ -3,7 +3,7 @@
* ****************************************************************************/
/* J_LZ_COPYRIGHT_BEGIN *******************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* J_LZ_COPYRIGHT_END *********************************************************/
@@ -217,6 +217,8 @@
// Must be kept in sync with server/sc/lzsc.py compile
if ("null".equals(runtime)) {
return new NullWriter(props, ostr, mMediaCache, true, env);
+ } else if ("swf9".equals(runtime)) {
+ return new SWF9Writer(props, ostr, mMediaCache, true, env);
} else if (SCRIPT_RUNTIMES.contains(runtime)) {
return new DHTMLWriter(props, ostr, mMediaCache, true, env);
} else {
Added:
openlaszlo/branches/devildog/WEB-INF/lps/server/src/org/openlaszlo/compiler/SWF9Writer.java
Property changes on:
openlaszlo/branches/devildog/WEB-INF/lps/server/src/org/openlaszlo/compiler/SWF9Writer.java
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
Modified:
openlaszlo/branches/devildog/WEB-INF/lps/server/src/org/openlaszlo/sc/SWF9Generator.java
===================================================================
---
openlaszlo/branches/devildog/WEB-INF/lps/server/src/org/openlaszlo/sc/SWF9Generator.java
2008-01-11 18:57:12 UTC (rev 7808)
+++
openlaszlo/branches/devildog/WEB-INF/lps/server/src/org/openlaszlo/sc/SWF9Generator.java
2008-01-11 19:00:12 UTC (rev 7809)
@@ -96,6 +96,10 @@
public void setGeneratorOptions() {
options.putBoolean(Compiler.PASSTHROUGH_FORMAL_INITIALIZERS, true);
+ // Inhibit function names because swf9 JIT seems to choke on them
+ // with a verify error the second time a named function is called
+ // dynamically
+ options.putBoolean(Compiler.DEBUG_SIMPLE, true);
}
// override superclass method.
_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins