Mercurial Hosting > luan
diff core/src/luan/impl/LuanStateImpl.java @ 659:f1150518c467
remove tail recursion
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 05 Apr 2016 20:30:42 -0600 |
parents | e038905512d3 |
children | b438a47196bc |
line wrap: on
line diff
--- a/core/src/luan/impl/LuanStateImpl.java Tue Apr 05 18:38:29 2016 -0600 +++ b/core/src/luan/impl/LuanStateImpl.java Tue Apr 05 20:30:42 2016 -0600 @@ -54,7 +54,6 @@ private Frame frame = null; public Object returnValues; - Closure tailFn; LuanStateImpl() {} @@ -71,14 +70,12 @@ // returns stack Object[] newFrame(Closure closure, int stackSize, Object[] varArgs) { returnValues = LuanFunction.NOTHING; - tailFn = null; frame = new Frame(frame,closure,stackSize,varArgs); return frame.stack; } void popFrame() { returnValues = LuanFunction.NOTHING; - tailFn = null; frame = frame.previousFrame; }