Mercurial Hosting > luan
view src/luan/interp/ConstExpr.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 | 14281d5bd36f |
line wrap: on
line source
package luan.interp; import luan.LuanSource; final class ConstExpr extends CodeImpl implements Expr { private final Object obj; ConstExpr(Object obj) { this(null,obj); } ConstExpr(LuanSource.Element se,Object obj) { super(se); this.obj = obj; } @Override public Object eval(LuanStateImpl luan) { return obj; } }