Author: fperrad
Date: Mon Nov 10 23:40:02 2008
New Revision: 32520
Modified:
trunk/languages/lua/src/POSTGrammar.tg
Log:
[Lua] tailcall
- remove useless generated code (LuaNil instantiation)
Modified: trunk/languages/lua/src/POSTGrammar.tg
==============================================================================
--- trunk/languages/lua/src/POSTGrammar.tg (original)
+++ trunk/languages/lua/src/POSTGrammar.tg Mon Nov 10 23:40:02 2008
@@ -647,6 +647,12 @@
unless $I0 goto L3
if arglist goto L4
$P0.'pirop'('tailcall')
+ # remove useless new LuaNil
+ $P0 = ops.'pop'()
+ ops.'push'($P0)
+ $P1 = $P0.'pop'()
+ $P2 = $P0.'pop'()
+ $P0.'push'($P1)
.return (ops)
L4:
$S1 = '(' . $S0