comparison src/luan/interp/LuanStateImpl.java @ 123:d7be9b3abf1a

minor - rename LuanFunction.EMPTY to NOTHING git-svn-id: https://luan-java.googlecode.com/svn/trunk@124 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Fri, 06 Jun 2014 01:14:18 +0000
parents 2428ecfed375
children 0149bdf98fd8
comparison
equal deleted inserted replaced
122:d00f41edbbd6 123:d7be9b3abf1a
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.NOTHING;
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
85 frame = new Frame(frame,closure,stackSize,varArgs); 85 frame = new Frame(frame,closure,stackSize,varArgs);
86 return frame.stack; 86 return frame.stack;
87 } 87 }
88 88
89 void popFrame() { 89 void popFrame() {
90 returnValues = LuanFunction.EMPTY; 90 returnValues = LuanFunction.NOTHING;
91 tailFn = null; 91 tailFn = null;
92 frame = frame.previousFrame; 92 frame = frame.previousFrame;
93 } 93 }
94 94
95 Object stackGet(int index) { 95 Object stackGet(int index) {