Ardour  9.0-pre0-386-g96ef4d20f2
lcode.h File Reference
#include "llex.h"
#include "lobject.h"
#include "lopcodes.h"
#include "lparser.h"
Include dependency graph for lcode.h:

Go to the source code of this file.

Macros

#define NO_JUMP   (-1)
 
#define getinstruction(fs, e)   ((fs)->f->code[(e)->u.info])
 
#define luaK_codeAsBx(fs, o, A, sBx)   luaK_codeABx(fs,o,A,(sBx)+MAXARG_sBx)
 
#define luaK_setmultret(fs, e)   luaK_setreturns(fs, e, LUA_MULTRET)
 
#define luaK_jumpto(fs, t)   luaK_patchlist(fs, luaK_jump(fs), t)
 

Typedefs

typedef enum BinOpr BinOpr
 
typedef enum UnOpr UnOpr
 

Enumerations

enum  BinOpr {
  OPR_ADD , OPR_SUB , OPR_MUL , OPR_MOD ,
  OPR_POW , OPR_DIV , OPR_IDIV , OPR_BAND ,
  OPR_BOR , OPR_BXOR , OPR_SHL , OPR_SHR ,
  OPR_CONCAT , OPR_EQ , OPR_LT , OPR_LE ,
  OPR_NE , OPR_GT , OPR_GE , OPR_AND ,
  OPR_OR , OPR_NOBINOPR
}
 
enum  UnOpr {
  OPR_MINUS , OPR_BNOT , OPR_NOT , OPR_LEN ,
  OPR_NOUNOPR
}
 

Functions

int luaK_codeABx (FuncState *fs, OpCode o, int A, unsigned int Bx)
 
int luaK_codeABC (FuncState *fs, OpCode o, int A, int B, int C)
 
int luaK_codek (FuncState *fs, int reg, int k)
 
void luaK_fixline (FuncState *fs, int line)
 
void luaK_nil (FuncState *fs, int from, int n)
 
void luaK_reserveregs (FuncState *fs, int n)
 
void luaK_checkstack (FuncState *fs, int n)
 
int luaK_stringK (FuncState *fs, TString *s)
 
int luaK_intK (FuncState *fs, lua_Integer n)
 
void luaK_dischargevars (FuncState *fs, expdesc *e)
 
int luaK_exp2anyreg (FuncState *fs, expdesc *e)
 
void luaK_exp2anyregup (FuncState *fs, expdesc *e)
 
void luaK_exp2nextreg (FuncState *fs, expdesc *e)
 
void luaK_exp2val (FuncState *fs, expdesc *e)
 
int luaK_exp2RK (FuncState *fs, expdesc *e)
 
void luaK_self (FuncState *fs, expdesc *e, expdesc *key)
 
void luaK_indexed (FuncState *fs, expdesc *t, expdesc *k)
 
void luaK_goiftrue (FuncState *fs, expdesc *e)
 
void luaK_goiffalse (FuncState *fs, expdesc *e)
 
void luaK_storevar (FuncState *fs, expdesc *var, expdesc *e)
 
void luaK_setreturns (FuncState *fs, expdesc *e, int nresults)
 
void luaK_setoneret (FuncState *fs, expdesc *e)
 
int luaK_jump (FuncState *fs)
 
void luaK_ret (FuncState *fs, int first, int nret)
 
void luaK_patchlist (FuncState *fs, int list, int target)
 
void luaK_patchtohere (FuncState *fs, int list)
 
void luaK_patchclose (FuncState *fs, int list, int level)
 
void luaK_concat (FuncState *fs, int *l1, int l2)
 
int luaK_getlabel (FuncState *fs)
 
void luaK_prefix (FuncState *fs, UnOpr op, expdesc *v, int line)
 
void luaK_infix (FuncState *fs, BinOpr op, expdesc *v)
 
void luaK_posfix (FuncState *fs, BinOpr op, expdesc *v1, expdesc *v2, int line)
 
void luaK_setlist (FuncState *fs, int base, int nelems, int tostore)
 

Macro Definition Documentation

◆ getinstruction

#define getinstruction (   fs,
 
)    ((fs)->f->code[(e)->u.info])

Definition at line 44 of file lcode.h.

◆ luaK_codeAsBx

#define luaK_codeAsBx (   fs,
  o,
  A,
  sBx 
)    luaK_codeABx(fs,o,A,(sBx)+MAXARG_sBx)

Definition at line 46 of file lcode.h.

◆ luaK_jumpto

#define luaK_jumpto (   fs,
 
)    luaK_patchlist(fs, luaK_jump(fs), t)

Definition at line 50 of file lcode.h.

◆ luaK_setmultret

#define luaK_setmultret (   fs,
 
)    luaK_setreturns(fs, e, LUA_MULTRET)

Definition at line 48 of file lcode.h.

◆ NO_JUMP

#define NO_JUMP   (-1)

Definition at line 20 of file lcode.h.

Typedef Documentation

◆ BinOpr

typedef enum BinOpr BinOpr

◆ UnOpr

typedef enum UnOpr UnOpr

Enumeration Type Documentation

◆ BinOpr

enum BinOpr
Enumerator
OPR_ADD 
OPR_SUB 
OPR_MUL 
OPR_MOD 
OPR_POW 
OPR_DIV 
OPR_IDIV 
OPR_BAND 
OPR_BOR 
OPR_BXOR 
OPR_SHL 
OPR_SHR 
OPR_CONCAT 
OPR_EQ 
OPR_LT 
OPR_LE 
OPR_NE 
OPR_GT 
OPR_GE 
OPR_AND 
OPR_OR 
OPR_NOBINOPR 

Definition at line 26 of file lcode.h.

◆ UnOpr

enum UnOpr
Enumerator
OPR_MINUS 
OPR_BNOT 
OPR_NOT 
OPR_LEN 
OPR_NOUNOPR 

Definition at line 40 of file lcode.h.

Function Documentation

◆ luaK_checkstack()

void luaK_checkstack ( FuncState fs,
int  n 
)

◆ luaK_codeABC()

int luaK_codeABC ( FuncState fs,
OpCode  o,
int  A,
int  B,
int  C 
)

◆ luaK_codeABx()

int luaK_codeABx ( FuncState fs,
OpCode  o,
int  A,
unsigned int  Bx 
)

◆ luaK_codek()

int luaK_codek ( FuncState fs,
int  reg,
int  k 
)

◆ luaK_concat()

void luaK_concat ( FuncState fs,
int *  l1,
int  l2 
)

◆ luaK_dischargevars()

void luaK_dischargevars ( FuncState fs,
expdesc e 
)

◆ luaK_exp2anyreg()

int luaK_exp2anyreg ( FuncState fs,
expdesc e 
)

◆ luaK_exp2anyregup()

void luaK_exp2anyregup ( FuncState fs,
expdesc e 
)

◆ luaK_exp2nextreg()

void luaK_exp2nextreg ( FuncState fs,
expdesc e 
)

◆ luaK_exp2RK()

int luaK_exp2RK ( FuncState fs,
expdesc e 
)

◆ luaK_exp2val()

void luaK_exp2val ( FuncState fs,
expdesc e 
)

◆ luaK_fixline()

void luaK_fixline ( FuncState fs,
int  line 
)

◆ luaK_getlabel()

int luaK_getlabel ( FuncState fs)

◆ luaK_goiffalse()

void luaK_goiffalse ( FuncState fs,
expdesc e 
)

◆ luaK_goiftrue()

void luaK_goiftrue ( FuncState fs,
expdesc e 
)

◆ luaK_indexed()

void luaK_indexed ( FuncState fs,
expdesc t,
expdesc k 
)

◆ luaK_infix()

void luaK_infix ( FuncState fs,
BinOpr  op,
expdesc v 
)

◆ luaK_intK()

int luaK_intK ( FuncState fs,
lua_Integer  n 
)

◆ luaK_jump()

int luaK_jump ( FuncState fs)

◆ luaK_nil()

void luaK_nil ( FuncState fs,
int  from,
int  n 
)

◆ luaK_patchclose()

void luaK_patchclose ( FuncState fs,
int  list,
int  level 
)

◆ luaK_patchlist()

void luaK_patchlist ( FuncState fs,
int  list,
int  target 
)

◆ luaK_patchtohere()

void luaK_patchtohere ( FuncState fs,
int  list 
)

◆ luaK_posfix()

void luaK_posfix ( FuncState fs,
BinOpr  op,
expdesc v1,
expdesc v2,
int  line 
)

◆ luaK_prefix()

void luaK_prefix ( FuncState fs,
UnOpr  op,
expdesc v,
int  line 
)

◆ luaK_reserveregs()

void luaK_reserveregs ( FuncState fs,
int  n 
)

◆ luaK_ret()

void luaK_ret ( FuncState fs,
int  first,
int  nret 
)

◆ luaK_self()

void luaK_self ( FuncState fs,
expdesc e,
expdesc key 
)

◆ luaK_setlist()

void luaK_setlist ( FuncState fs,
int  base,
int  nelems,
int  tostore 
)

◆ luaK_setoneret()

void luaK_setoneret ( FuncState fs,
expdesc e 
)

◆ luaK_setreturns()

void luaK_setreturns ( FuncState fs,
expdesc e,
int  nresults 
)

◆ luaK_storevar()

void luaK_storevar ( FuncState fs,
expdesc var,
expdesc e 
)

◆ luaK_stringK()

int luaK_stringK ( FuncState fs,
TString s 
)