Mercurial Hosting > luan
comparison core/src/luan/impl/LuanStateImpl.java @ 651:140cc5191b7a
start compiling statements
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 01 Apr 2016 17:24:44 -0600 |
parents | 8e8c30b72e9b |
children | 067d9470184d |
comparison
equal
deleted
inserted
replaced
650:d658eab7bf4c | 651:140cc5191b7a |
---|---|
10 import luan.LuanFunction; | 10 import luan.LuanFunction; |
11 import luan.LuanException; | 11 import luan.LuanException; |
12 import luan.DeepCloner; | 12 import luan.DeepCloner; |
13 | 13 |
14 | 14 |
15 final class LuanStateImpl extends LuanState { | 15 public final class LuanStateImpl extends LuanState { |
16 | 16 |
17 private static class Frame { | 17 private static class Frame { |
18 final Frame previousFrame; | 18 final Frame previousFrame; |
19 final Closure closure; | 19 final Closure closure; |
20 final Object[] stack; | 20 final Object[] stack; |
88 | 88 |
89 void stackSet(int index,Object value) { | 89 void stackSet(int index,Object value) { |
90 frame.stack[index] = value; | 90 frame.stack[index] = value; |
91 } | 91 } |
92 | 92 |
93 void stackClear(int start,int end) { | 93 public void stackClear(int start,int end) { |
94 frame.stackClear(start,end); | 94 frame.stackClear(start,end); |
95 } | 95 } |
96 | 96 |
97 Object[] varArgs() { | 97 Object[] varArgs() { |
98 return frame.varArgs; | 98 return frame.varArgs; |