comparison src/luan/interp/Chunk.java @ 40:e3624b7cd603

implement stack trace git-svn-id: https://luan-java.googlecode.com/svn/trunk@41 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Fri, 21 Dec 2012 10:45:54 +0000
parents c3eab5a3ce3c
children 64ecb7a3aad7
comparison
equal deleted inserted replaced
39:e5bcb1eeafc1 40:e3624b7cd603
1 package luan.interp; 1 package luan.interp;
2 2
3 import luan.LuaException; 3 import luan.LuaException;
4 import luan.LuaSource;
4 5
5 6
6 final class Chunk implements Expr { 7 final class Chunk extends CodeImpl implements Expr {
7 final Stmt block; 8 final Stmt block;
8 final int stackSize; 9 final int stackSize;
9 final int numArgs; 10 final int numArgs;
10 final boolean isVarArg; 11 final boolean isVarArg;
11 final UpValue.Getter[] upValueGetters; 12 final UpValue.Getter[] upValueGetters;
12 13
13 Chunk(Stmt block,int stackSize,int numArgs,boolean isVarArg,UpValue.Getter[] upValueGetters) { 14 Chunk(LuaSource.Element se,Stmt block,int stackSize,int numArgs,boolean isVarArg,UpValue.Getter[] upValueGetters) {
15 super(se);
14 this.block = block; 16 this.block = block;
15 this.stackSize = stackSize; 17 this.stackSize = stackSize;
16 this.numArgs = numArgs; 18 this.numArgs = numArgs;
17 this.isVarArg = isVarArg; 19 this.isVarArg = isVarArg;
18 this.upValueGetters = upValueGetters; 20 this.upValueGetters = upValueGetters;