comparison src/luan/interp/LuanStateImpl.java @ 111:2428ecfed375

change LuanFunction.call() from returning Object[] to returning Object, to reduce garbage collection git-svn-id: https://luan-java.googlecode.com/svn/trunk@112 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Fri, 23 May 2014 20:40:05 +0000
parents 3c404a296995
children d7be9b3abf1a
comparison
equal deleted inserted replaced
110:7afa6df829f3 111:2428ecfed375
53 return downValues[index]; 53 return downValues[index];
54 } 54 }
55 } 55 }
56 56
57 private Frame frame = null; 57 private Frame frame = null;
58 Object[] returnValues = LuanFunction.EMPTY; 58 Object returnValues = LuanFunction.EMPTY;
59 Closure tailFn; 59 Closure tailFn;
60 Map<UpValue.EnvGetter,UpValue> envs = new HashMap<UpValue.EnvGetter,UpValue>(); 60 Map<UpValue.EnvGetter,UpValue> envs = new HashMap<UpValue.EnvGetter,UpValue>();
61 61
62 LuanStateImpl() {} 62 LuanStateImpl() {}
63 63