Change 20100530-bargull-0ef by barg...@bargull02 on 2010-05-30 14:35:55
in /home/anba/src/svn/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: allow registers to be used for try-catch blocks in swf8

Bugs Fixed: LPP-8929 (Prevent construction of destroyed LzNode subclasses)

Technical Reviewer: ptw
QA Reviewer: max

Overview:
If the catch variable was put into a register, you must also update the try-action to no longer use the variable name, but the register.


Details:
Instructions:
- add flag to use register instead of variable
- update writeArgs() to handle registers

CodeGenerator:
- look up catch variable in register map, if it was found, update the try-flags and use the register instead of the variable name


Tests:
test/trycatch.lzx still works for swf8
component sampler works again in swf8

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

Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20100530-bargull-0ef.tar

Reply via email to