Mercurial Hosting > luan
comparison src/luan/interp/LuanStateImpl.java @ 131:15a8e6588f3c
various fixes
git-svn-id: https://luan-java.googlecode.com/svn/trunk@132 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Tue, 10 Jun 2014 04:15:19 +0000 |
parents | 0149bdf98fd8 |
children | 14281d5bd36f |
comparison
equal
deleted
inserted
replaced
130:0594c132888b | 131:15a8e6588f3c |
---|---|
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.NOTHING; | 58 Object returnValues; |
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 |
80 } | 80 } |
81 } | 81 } |
82 | 82 |
83 // returns stack | 83 // returns stack |
84 Object[] newFrame(Closure closure, int stackSize, Object[] varArgs) { | 84 Object[] newFrame(Closure closure, int stackSize, Object[] varArgs) { |
85 returnValues = LuanFunction.NOTHING; | |
85 frame = new Frame(frame,closure,stackSize,varArgs); | 86 frame = new Frame(frame,closure,stackSize,varArgs); |
86 return frame.stack; | 87 return frame.stack; |
87 } | 88 } |
88 | 89 |
89 void popFrame() { | 90 void popFrame() { |