Package org.luaj.kahluafork.compiler
Class FuncState
java.lang.Object
org.luaj.kahluafork.compiler.FuncState
public class FuncState
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description static intBITRKstatic java.lang.StringcurrentFilestatic java.lang.StringcurrentfullFilestatic intiABCstatic intiABxstatic intiAsBxintisVarargintlastlinedefinedstatic intLFIELDS_PER_FLUSHintlinedefinedjava.lang.String[]locvarsstatic intLUA_MULTRETstatic int[]luaP_opmodesstatic intMASK_Astatic intMASK_Bstatic intMASK_Bxstatic intMASK_Cstatic intMASK_NOT_Astatic intMASK_NOT_Bstatic intMASK_NOT_Bxstatic intMASK_NOT_Cstatic intMASK_NOT_OPstatic intMASK_OPstatic intMAX_OPstatic intMAXARG_Astatic intMAXARG_Bstatic intMAXARG_Bxstatic intMAXARG_Cstatic intMAXARG_sBxstatic intMAXINDEXRKstatic intMAXSTACKstatic intNO_REGstatic intNUM_OPCODESstatic intOP_ADDstatic intOP_CALLstatic intOP_CLOSEstatic intOP_CLOSUREstatic intOP_CONCATstatic intOP_DIVstatic intOP_EQstatic intOP_FORLOOPstatic intOP_FORPREPstatic intOP_GETGLOBALstatic intOP_GETTABLEstatic intOP_GETUPVALstatic intOP_JMPstatic intOP_LEstatic intOP_LENstatic intOP_LOADBOOLstatic intOP_LOADKstatic intOP_LOADNILstatic intOP_LTstatic intOP_MODstatic intOP_MOVEstatic intOP_MULstatic intOP_NEWTABLEstatic intOP_NOTstatic intOP_POWstatic intOP_RETURNstatic intOP_SELFstatic intOP_SETGLOBALstatic intOP_SETLISTstatic intOP_SETTABLEstatic intOP_SETUPVALstatic intOP_SUBstatic intOP_TAILCALLstatic intOP_TESTstatic intOP_TESTSETstatic intOP_TFORLOOPstatic intOP_UNMstatic intOP_VARARGstatic intPOS_Astatic intPOS_Bstatic intPOS_Bxstatic intPOS_Cstatic intPOS_OPstatic intSIZE_Astatic intSIZE_Bstatic intSIZE_Bxstatic intSIZE_Cstatic intSIZE_OPjava.lang.String[]upvaluesstatic intVARARG_HASARGstatic intVARARG_ISVARARGstatic intVARARG_NEEDSARG -
Method Summary
Modifier and Type Method Description protected static void_assert(boolean b)static intGET_OPCODE(int i)static intGETARG_A(int i)static intGETARG_B(int i)static intGETARG_Bx(int i)static intGETARG_C(int i)static intGETARG_sBx(int i)static intgetBMode(int m)static intgetCMode(int m)static intgetOpMode(int m)static intINDEXK(int r)static booleanISK(int x)static intRKASK(int x)static booleantestTMode(int m)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
locvars
public java.lang.String[] locvars -
upvalues
public java.lang.String[] upvalues -
linedefined
public int linedefined -
lastlinedefined
public int lastlinedefined -
isVararg
public int isVararg -
currentFile
public static java.lang.String currentFile -
currentfullFile
public static java.lang.String currentfullFile -
MAXSTACK
public static final int MAXSTACK- See Also:
- Constant Field Values
-
LUA_MULTRET
public static final int LUA_MULTRET- See Also:
- Constant Field Values
-
VARARG_HASARG
public static final int VARARG_HASARG- See Also:
- Constant Field Values
-
VARARG_ISVARARG
public static final int VARARG_ISVARARG- See Also:
- Constant Field Values
-
VARARG_NEEDSARG
public static final int VARARG_NEEDSARG- See Also:
- Constant Field Values
-
iABC
public static final int iABC- See Also:
- Constant Field Values
-
iABx
public static final int iABx- See Also:
- Constant Field Values
-
iAsBx
public static final int iAsBx- See Also:
- Constant Field Values
-
SIZE_C
public static final int SIZE_C- See Also:
- Constant Field Values
-
SIZE_B
public static final int SIZE_B- See Also:
- Constant Field Values
-
SIZE_Bx
public static final int SIZE_Bx- See Also:
- Constant Field Values
-
SIZE_A
public static final int SIZE_A- See Also:
- Constant Field Values
-
SIZE_OP
public static final int SIZE_OP- See Also:
- Constant Field Values
-
POS_OP
public static final int POS_OP- See Also:
- Constant Field Values
-
POS_A
public static final int POS_A- See Also:
- Constant Field Values
-
POS_C
public static final int POS_C- See Also:
- Constant Field Values
-
POS_B
public static final int POS_B- See Also:
- Constant Field Values
-
POS_Bx
public static final int POS_Bx- See Also:
- Constant Field Values
-
MAX_OP
public static final int MAX_OP- See Also:
- Constant Field Values
-
MAXARG_A
public static final int MAXARG_A- See Also:
- Constant Field Values
-
MAXARG_B
public static final int MAXARG_B- See Also:
- Constant Field Values
-
MAXARG_C
public static final int MAXARG_C- See Also:
- Constant Field Values
-
MAXARG_Bx
public static final int MAXARG_Bx- See Also:
- Constant Field Values
-
MAXARG_sBx
public static final int MAXARG_sBx- See Also:
- Constant Field Values
-
MASK_OP
public static final int MASK_OP- See Also:
- Constant Field Values
-
MASK_A
public static final int MASK_A- See Also:
- Constant Field Values
-
MASK_B
public static final int MASK_B- See Also:
- Constant Field Values
-
MASK_C
public static final int MASK_C- See Also:
- Constant Field Values
-
MASK_Bx
public static final int MASK_Bx- See Also:
- Constant Field Values
-
MASK_NOT_OP
public static final int MASK_NOT_OP- See Also:
- Constant Field Values
-
MASK_NOT_A
public static final int MASK_NOT_A- See Also:
- Constant Field Values
-
MASK_NOT_B
public static final int MASK_NOT_B- See Also:
- Constant Field Values
-
MASK_NOT_C
public static final int MASK_NOT_C- See Also:
- Constant Field Values
-
MASK_NOT_Bx
public static final int MASK_NOT_Bx- See Also:
- Constant Field Values
-
BITRK
public static final int BITRK- See Also:
- Constant Field Values
-
MAXINDEXRK
public static final int MAXINDEXRK- See Also:
- Constant Field Values
-
NO_REG
public static final int NO_REG- See Also:
- Constant Field Values
-
OP_MOVE
public static final int OP_MOVE- See Also:
- Constant Field Values
-
OP_LOADK
public static final int OP_LOADK- See Also:
- Constant Field Values
-
OP_LOADBOOL
public static final int OP_LOADBOOL- See Also:
- Constant Field Values
-
OP_LOADNIL
public static final int OP_LOADNIL- See Also:
- Constant Field Values
-
OP_GETUPVAL
public static final int OP_GETUPVAL- See Also:
- Constant Field Values
-
OP_GETGLOBAL
public static final int OP_GETGLOBAL- See Also:
- Constant Field Values
-
OP_GETTABLE
public static final int OP_GETTABLE- See Also:
- Constant Field Values
-
OP_SETGLOBAL
public static final int OP_SETGLOBAL- See Also:
- Constant Field Values
-
OP_SETUPVAL
public static final int OP_SETUPVAL- See Also:
- Constant Field Values
-
OP_SETTABLE
public static final int OP_SETTABLE- See Also:
- Constant Field Values
-
OP_NEWTABLE
public static final int OP_NEWTABLE- See Also:
- Constant Field Values
-
OP_SELF
public static final int OP_SELF- See Also:
- Constant Field Values
-
OP_ADD
public static final int OP_ADD- See Also:
- Constant Field Values
-
OP_SUB
public static final int OP_SUB- See Also:
- Constant Field Values
-
OP_MUL
public static final int OP_MUL- See Also:
- Constant Field Values
-
OP_DIV
public static final int OP_DIV- See Also:
- Constant Field Values
-
OP_MOD
public static final int OP_MOD- See Also:
- Constant Field Values
-
OP_POW
public static final int OP_POW- See Also:
- Constant Field Values
-
OP_UNM
public static final int OP_UNM- See Also:
- Constant Field Values
-
OP_NOT
public static final int OP_NOT- See Also:
- Constant Field Values
-
OP_LEN
public static final int OP_LEN- See Also:
- Constant Field Values
-
OP_CONCAT
public static final int OP_CONCAT- See Also:
- Constant Field Values
-
OP_JMP
public static final int OP_JMP- See Also:
- Constant Field Values
-
OP_EQ
public static final int OP_EQ- See Also:
- Constant Field Values
-
OP_LT
public static final int OP_LT- See Also:
- Constant Field Values
-
OP_LE
public static final int OP_LE- See Also:
- Constant Field Values
-
OP_TEST
public static final int OP_TEST- See Also:
- Constant Field Values
-
OP_TESTSET
public static final int OP_TESTSET- See Also:
- Constant Field Values
-
OP_CALL
public static final int OP_CALL- See Also:
- Constant Field Values
-
OP_TAILCALL
public static final int OP_TAILCALL- See Also:
- Constant Field Values
-
OP_RETURN
public static final int OP_RETURN- See Also:
- Constant Field Values
-
OP_FORLOOP
public static final int OP_FORLOOP- See Also:
- Constant Field Values
-
OP_FORPREP
public static final int OP_FORPREP- See Also:
- Constant Field Values
-
OP_TFORLOOP
public static final int OP_TFORLOOP- See Also:
- Constant Field Values
-
OP_SETLIST
public static final int OP_SETLIST- See Also:
- Constant Field Values
-
OP_CLOSE
public static final int OP_CLOSE- See Also:
- Constant Field Values
-
OP_CLOSURE
public static final int OP_CLOSURE- See Also:
- Constant Field Values
-
OP_VARARG
public static final int OP_VARARG- See Also:
- Constant Field Values
-
NUM_OPCODES
public static final int NUM_OPCODES- See Also:
- Constant Field Values
-
luaP_opmodes
public static final int[] luaP_opmodes -
LFIELDS_PER_FLUSH
public static final int LFIELDS_PER_FLUSH- See Also:
- Constant Field Values
-
-
Method Details
-
_assert
protected static void _assert(boolean b) -
GET_OPCODE
public static int GET_OPCODE(int i) -
GETARG_A
public static int GETARG_A(int i) -
GETARG_B
public static int GETARG_B(int i) -
GETARG_C
public static int GETARG_C(int i) -
GETARG_Bx
public static int GETARG_Bx(int i) -
GETARG_sBx
public static int GETARG_sBx(int i) -
ISK
public static boolean ISK(int x) -
INDEXK
public static int INDEXK(int r) -
RKASK
public static int RKASK(int x) -
getOpMode
public static int getOpMode(int m) -
getBMode
public static int getBMode(int m) -
getCMode
public static int getCMode(int m) -
testTMode
public static boolean testTMode(int m)
-