I'm pretty sure the call to the empty function will remain in the bytecode. I don't know whether it is optimized out by the Player's JITter or not.
Gordon Smith Adobe Flex SDK Team ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Boon Chew Sent: Thursday, August 14, 2008 11:17 PM To: [email protected] Subject: [flexcoders] Does ASVM JIT compiler get rid of empty functions? Does anyone know if the Actionscript Virtual Machine JIT compiler removes calls to functions with empty body? The reason for asking this is that I am using assert calls in my code a lot, and I plan to comment out the assert function body in release build so it becomes a no-op. Will the code still incur the cost of invoking the assert function even though it's empty? - boon

