Change 20100531-bargull-DuF by barg...@bargull02 on 2010-05-31 11:57:14
in /home/anba/src/svn/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: enable compile-time evaluation of conditional expressions

New Features: LPP-9030 (Compiler should short-circuit conditional expressions on compile-time constants)

Technical Reviewer: ptw
QA Reviewer: (pending)

Details:
Override visitConditionalExpression() in CodeGenerator and JavascriptGenerator just like it's already done for visitIfStatement().


Tests:
smokecheck swf8,swf10,dhtml
inspection of disassembled swf8-file, intermediate swf10-file, generated js-file

Files:
M WEB-INF/lps/server/src/org/openlaszlo/sc/JavascriptGenerator.java
M WEB-INF/lps/server/src/org/openlaszlo/sc/CodeGenerator.java

Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20100531-bargull-DuF.tar

Reply via email to