Github User Fetcher 1.0.0
C Application with Server and GUI
|
#include <stdlib.h>
#include "lua.h"
#include "lcode.h"
#include "ldebug.h"
#include "ldo.h"
#include "lgc.h"
#include "llex.h"
#include "lmem.h"
#include "lobject.h"
#include "lopcodes.h"
#include "lparser.h"
#include "ltable.h"
Go to the source code of this file.
Macros | |
#define | lcode_c |
#define | LUA_CORE |
#define | hasjumps(e) ((e)->t != (e)->f) |
Functions | |
static int | isnumeral (expdesc *e) |
void | luaK_nil (FuncState *fs, int from, int n) |
int | luaK_jump (FuncState *fs) |
void | luaK_ret (FuncState *fs, int first, int nret) |
static int | condjump (FuncState *fs, OpCode op, int A, int B, int C) |
static void | fixjump (FuncState *fs, int pc, int dest) |
int | luaK_getlabel (FuncState *fs) |
static int | getjump (FuncState *fs, int pc) |
static Instruction * | getjumpcontrol (FuncState *fs, int pc) |
static int | need_value (FuncState *fs, int list) |
static int | patchtestreg (FuncState *fs, int node, int reg) |
static void | removevalues (FuncState *fs, int list) |
static void | patchlistaux (FuncState *fs, int list, int vtarget, int reg, int dtarget) |
static void | dischargejpc (FuncState *fs) |
void | luaK_patchlist (FuncState *fs, int list, int target) |
void | luaK_patchtohere (FuncState *fs, int list) |
void | luaK_concat (FuncState *fs, int *l1, int l2) |
void | luaK_checkstack (FuncState *fs, int n) |
void | luaK_reserveregs (FuncState *fs, int n) |
static void | freereg (FuncState *fs, int reg) |
static void | freeexp (FuncState *fs, expdesc *e) |
static int | addk (FuncState *fs, TValue *k, TValue *v) |
int | luaK_stringK (FuncState *fs, TString *s) |
int | luaK_numberK (FuncState *fs, lua_Number r) |
static int | boolK (FuncState *fs, int b) |
static int | nilK (FuncState *fs) |
void | luaK_setreturns (FuncState *fs, expdesc *e, int nresults) |
void | luaK_setoneret (FuncState *fs, expdesc *e) |
void | luaK_dischargevars (FuncState *fs, expdesc *e) |
static int | code_label (FuncState *fs, int A, int b, int jump) |
static void | discharge2reg (FuncState *fs, expdesc *e, int reg) |
static void | discharge2anyreg (FuncState *fs, expdesc *e) |
static void | exp2reg (FuncState *fs, expdesc *e, int reg) |
void | luaK_exp2nextreg (FuncState *fs, expdesc *e) |
int | luaK_exp2anyreg (FuncState *fs, expdesc *e) |
void | luaK_exp2val (FuncState *fs, expdesc *e) |
int | luaK_exp2RK (FuncState *fs, expdesc *e) |
void | luaK_storevar (FuncState *fs, expdesc *var, expdesc *ex) |
void | luaK_self (FuncState *fs, expdesc *e, expdesc *key) |
static void | invertjump (FuncState *fs, expdesc *e) |
static int | jumponcond (FuncState *fs, expdesc *e, int cond) |
void | luaK_goiftrue (FuncState *fs, expdesc *e) |
static void | luaK_goiffalse (FuncState *fs, expdesc *e) |
static void | codenot (FuncState *fs, expdesc *e) |
void | luaK_indexed (FuncState *fs, expdesc *t, expdesc *k) |
static int | constfolding (OpCode op, expdesc *e1, expdesc *e2) |
static void | codearith (FuncState *fs, OpCode op, expdesc *e1, expdesc *e2) |
static void | codecomp (FuncState *fs, OpCode op, int cond, expdesc *e1, expdesc *e2) |
void | luaK_prefix (FuncState *fs, UnOpr op, expdesc *e) |
void | luaK_infix (FuncState *fs, BinOpr op, expdesc *v) |
void | luaK_posfix (FuncState *fs, BinOpr op, expdesc *e1, expdesc *e2) |
void | luaK_fixline (FuncState *fs, int line) |
static int | luaK_code (FuncState *fs, Instruction i, int line) |
int | luaK_codeABC (FuncState *fs, OpCode o, int a, int b, int c) |
int | luaK_codeABx (FuncState *fs, OpCode o, int a, unsigned int bc) |
void | luaK_setlist (FuncState *fs, int base, int nelems, int tostore) |
#define hasjumps | ( | e | ) | ((e)->t != (e)->f) |
Definition at line 27 of file lua-5.1.5/src/lcode.c.
Referenced by exp2reg(), luaK_exp2anyreg(), and luaK_exp2val().
#define lcode_c |
Definition at line 10 of file lua-5.1.5/src/lcode.c.
#define LUA_CORE |
Definition at line 11 of file lua-5.1.5/src/lcode.c.
Definition at line 229 of file lua-5.1.5/src/lcode.c.
References cast_int, cast_num, FuncState::f, FuncState::h, Proto::k, FuncState::L, lua_assert, luaC_barrier, luaH_set(), luaM_growvector, luaO_rawequalObj(), MAXARG_Bx, FuncState::nk, nvalue, setnilvalue, setnvalue, setobj, Proto::sizek, and ttisnumber.
Referenced by boolK(), luaK_numberK(), luaK_stringK(), and nilK().
|
static |
Definition at line 264 of file lua-5.1.5/src/lcode.c.
References addk(), and setbvalue.
Referenced by luaK_exp2RK().
|
static |
Definition at line 337 of file lua-5.1.5/src/lcode.c.
References luaK_codeABC, luaK_getlabel(), and OP_LOADBOOL.
Referenced by exp2reg().
Definition at line 653 of file lua-5.1.5/src/lcode.c.
References constfolding(), freeexp(), expdesc::info, expdesc::k, luaK_codeABC, luaK_exp2RK(), OP_LEN, OP_UNM, expdesc::s, expdesc::u, and VRELOCABLE.
Referenced by luaK_posfix(), and luaK_prefix().
Definition at line 673 of file lua-5.1.5/src/lcode.c.
References cond(), condjump(), freeexp(), expdesc::info, expdesc::k, luaK_exp2RK(), OP_EQ, expdesc::s, expdesc::u, and VJMP.
Referenced by luaK_posfix().
Definition at line 586 of file lua-5.1.5/src/lcode.c.
References discharge2anyreg(), expdesc::f, freeexp(), expdesc::info, invertjump(), expdesc::k, lua_assert, luaK_codeABC, luaK_dischargevars(), OP_NOT, removevalues(), expdesc::s, expdesc::t, expdesc::u, VFALSE, VJMP, VK, VKNUM, VNIL, VNONRELOC, VRELOCABLE, and VTRUE.
Referenced by luaK_prefix().
Definition at line 74 of file lua-5.1.5/src/lcode.c.
References luaK_codeABC, and luaK_jump().
Referenced by codecomp(), and jumponcond().
Definition at line 627 of file lua-5.1.5/src/lcode.c.
References isnumeral(), lua_assert, luai_numadd, luai_numdiv, luai_numisnan, luai_nummod, luai_nummul, luai_numpow, luai_numsub, luai_numunm, expdesc::nval, OP_ADD, OP_DIV, OP_LEN, OP_MOD, OP_MUL, OP_POW, OP_SUB, OP_UNM, and expdesc::u.
Referenced by codearith().
Definition at line 382 of file lua-5.1.5/src/lcode.c.
References discharge2reg(), FuncState::freereg, expdesc::k, luaK_reserveregs(), and VNONRELOC.
Referenced by codenot(), and jumponcond().
Definition at line 343 of file lua-5.1.5/src/lcode.c.
References getcode, expdesc::info, expdesc::k, lua_assert, luaK_codeABC, luaK_codeABx(), luaK_dischargevars(), luaK_nil(), luaK_numberK(), expdesc::nval, OP_LOADBOOL, OP_LOADK, OP_MOVE, expdesc::s, SETARG_A, expdesc::u, VFALSE, VJMP, VK, VKNUM, VNIL, VNONRELOC, VRELOCABLE, VTRUE, and VVOID.
Referenced by discharge2anyreg(), and exp2reg().
|
static |
Definition at line 163 of file lua-5.1.5/src/lcode.c.
References FuncState::jpc, NO_JUMP, NO_REG, patchlistaux(), and FuncState::pc.
Referenced by luaK_code().
Definition at line 390 of file lua-5.1.5/src/lcode.c.
References code_label(), discharge2reg(), expdesc::f, hasjumps, expdesc::info, expdesc::k, luaK_concat(), luaK_getlabel(), luaK_jump(), luaK_patchtohere(), need_value(), NO_JUMP, patchlistaux(), expdesc::s, expdesc::t, expdesc::u, VJMP, and VNONRELOC.
Referenced by luaK_exp2anyreg(), luaK_exp2nextreg(), and luaK_storevar().
|
static |
Definition at line 80 of file lua-5.1.5/src/lcode.c.
References Proto::code, FuncState::f, FuncState::ls, lua_assert, luaX_syntaxerror(), MAXARG_sBx, NO_JUMP, and SETARG_sBx.
Referenced by luaK_concat(), and patchlistaux().
Definition at line 223 of file lua-5.1.5/src/lcode.c.
References freereg(), expdesc::info, expdesc::k, expdesc::s, expdesc::u, and VNONRELOC.
Referenced by codearith(), codecomp(), codenot(), jumponcond(), luaK_exp2nextreg(), luaK_posfix(), luaK_self(), and luaK_storevar().
|
static |
Definition at line 215 of file lua-5.1.5/src/lcode.c.
References FuncState::freereg, ISK, lua_assert, and FuncState::nactvar.
Referenced by freeexp(), and luaK_dischargevars().
|
static |
Definition at line 100 of file lua-5.1.5/src/lcode.c.
References Proto::code, FuncState::f, GETARG_sBx, and NO_JUMP.
Referenced by luaK_concat(), need_value(), patchlistaux(), and removevalues().
|
static |
Definition at line 109 of file lua-5.1.5/src/lcode.c.
References Proto::code, FuncState::f, GET_OPCODE, and testTMode.
Referenced by invertjump(), need_value(), and patchtestreg().
Definition at line 516 of file lua-5.1.5/src/lcode.c.
References GET_OPCODE, GETARG_A, getjumpcontrol(), expdesc::info, lua_assert, OP_TEST, OP_TESTSET, expdesc::s, SETARG_A, testTMode, and expdesc::u.
Referenced by codenot(), and luaK_goiftrue().
|
static |
Definition at line 30 of file lua-5.1.5/src/lcode.c.
References expdesc::f, expdesc::k, NO_JUMP, expdesc::t, and VKNUM.
Referenced by constfolding(), luaK_infix(), and luaK_prefix().
Definition at line 524 of file lua-5.1.5/src/lcode.c.
References cond(), condjump(), discharge2anyreg(), freeexp(), GET_OPCODE, GETARG_B, getcode, expdesc::info, expdesc::k, NO_REG, OP_NOT, OP_TEST, OP_TESTSET, FuncState::pc, expdesc::s, expdesc::u, and VRELOCABLE.
Referenced by luaK_goiffalse(), and luaK_goiftrue().
void luaK_checkstack | ( | FuncState * | fs, |
int | n ) |
Definition at line 199 of file lua-5.1.5/src/lcode.c.
References cast_byte, FuncState::f, FuncState::freereg, FuncState::ls, luaX_syntaxerror(), MAXSTACK, and Proto::maxstacksize.
Referenced by forlist(), forlist(), forlist(), forlist(), and luaK_reserveregs().
|
static |
Definition at line 789 of file lua-5.1.5/src/lcode.c.
References Proto::code, dischargejpc(), FuncState::f, FuncState::L, Proto::lineinfo, luaM_growvector, MAX_INT, FuncState::pc, Proto::sizecode, and Proto::sizelineinfo.
Referenced by constructor(), luaK_codeABC(), luaK_codeABx(), and luaK_setlist().
Definition at line 804 of file lua-5.1.5/src/lcode.c.
References CREATE_ABC, getBMode, getCMode, getOpMode, iABC, LexState::lastline, FuncState::ls, lua_assert, luaK_code(), and OpArgN.
Definition at line 812 of file lua-5.1.5/src/lcode.c.
References CREATE_ABx, getCMode, getOpMode, iABx, iAsBx, LexState::lastline, FuncState::ls, lua_assert, luaK_code(), and OpArgN.
Referenced by codeclosure(), codeclosure(), codeclosure(), discharge2reg(), forbody(), fornum(), luaK_dischargevars(), luaK_storevar(), and pushclosure().
void luaK_concat | ( | FuncState * | fs, |
int * | l1, | ||
int | l2 ) |
Definition at line 185 of file lua-5.1.5/src/lcode.c.
References fixjump(), getjump(), next, and NO_JUMP.
Referenced by breakstat(), exp2reg(), ifstat(), luaK_goiffalse(), luaK_goiftrue(), luaK_jump(), luaK_patchtohere(), luaK_posfix(), test_then_block(), test_then_block(), and test_then_block().
Definition at line 304 of file lua-5.1.5/src/lcode.c.
References expdesc::aux, freereg(), expdesc::info, expdesc::k, luaK_codeABC, luaK_codeABx(), luaK_setoneret(), OP_GETGLOBAL, OP_GETTABLE, OP_GETUPVAL, expdesc::s, expdesc::u, VCALL, VGLOBAL, VINDEXED, VLOCAL, VNONRELOC, VRELOCABLE, VUPVAL, and VVARARG.
Referenced by codenot(), discharge2reg(), luaK_exp2anyreg(), luaK_exp2nextreg(), luaK_exp2val(), luaK_goiffalse(), luaK_goiftrue(), luaK_posfix(), prefixexp(), primaryexp(), primaryexp(), and primaryexp().
Definition at line 422 of file lua-5.1.5/src/lcode.c.
References exp2reg(), hasjumps, expdesc::info, expdesc::k, luaK_dischargevars(), luaK_exp2nextreg(), FuncState::nactvar, expdesc::s, expdesc::u, and VNONRELOC.
Referenced by field(), luaK_exp2RK(), luaK_exp2val(), luaK_prefix(), luaK_self(), luaK_storevar(), primaryexp(), retstat(), retstat(), retstat(), and retstat().
Definition at line 414 of file lua-5.1.5/src/lcode.c.
References exp2reg(), freeexp(), FuncState::freereg, luaK_dischargevars(), and luaK_reserveregs().
Referenced by adjust_assign(), adjust_assign(), adjust_assign(), adjust_assign(), closelistfield(), closelistfield(), closelistfield(), closelistfield(), codeclosure(), codeclosure(), codeclosure(), constructor(), constructor(), constructor(), exp1(), exp1(), exp1(), exp1(), explist(), explist(), explist(), explist1(), funcargs(), funcargs(), funcargs(), funcargs(), lastlistfield(), lastlistfield(), lastlistfield(), lastlistfield(), luaK_exp2anyreg(), luaK_infix(), luaK_posfix(), primaryexp(), retstat(), retstat(), retstat(), retstat(), suffixedexp(), suffixedexp(), and suffixedexp().
Definition at line 444 of file lua-5.1.5/src/lcode.c.
References boolK(), expdesc::info, expdesc::k, luaK_exp2anyreg(), luaK_exp2val(), luaK_numberK(), MAXINDEXRK, nilK(), FuncState::nk, expdesc::nval, RKASK, expdesc::s, expdesc::u, VFALSE, VK, VKNUM, VNIL, and VTRUE.
Referenced by codearith(), codecomp(), luaK_indexed(), luaK_infix(), luaK_self(), luaK_storevar(), recfield(), recfield(), and recfield().
Definition at line 436 of file lua-5.1.5/src/lcode.c.
References hasjumps, luaK_dischargevars(), and luaK_exp2anyreg().
Referenced by luaK_exp2RK(), luaK_posfix(), yindex(), yindex(), yindex(), and yindex().
void luaK_fixline | ( | FuncState * | fs, |
int | line ) |
Definition at line 784 of file lua-5.1.5/src/lcode.c.
References FuncState::f, Proto::lineinfo, and FuncState::pc.
Referenced by forbody(), forbody(), forbody(), forbody(), funcargs(), funcargs(), funcargs(), funcargs(), funcstat(), funcstat(), funcstat(), and funcstat().
int luaK_getlabel | ( | FuncState * | fs | ) |
Definition at line 94 of file lua-5.1.5/src/lcode.c.
References FuncState::lasttarget, and FuncState::pc.
Referenced by code_label(), createlabel(), exp2reg(), forbody(), labelstat(), luaK_patchtohere(), repeatstat(), repeatstat(), repeatstat(), repeatstat(), whilestat(), whilestat(), whilestat(), and whilestat().
Definition at line 563 of file lua-5.1.5/src/lcode.c.
References expdesc::f, expdesc::info, jumponcond(), expdesc::k, luaK_concat(), luaK_dischargevars(), luaK_patchtohere(), NO_JUMP, expdesc::s, expdesc::t, expdesc::u, VFALSE, VJMP, and VNIL.
Referenced by luaK_infix(), test_then_block(), test_then_block(), and test_then_block().
Definition at line 539 of file lua-5.1.5/src/lcode.c.
References expdesc::f, expdesc::info, invertjump(), jumponcond(), expdesc::k, luaK_concat(), luaK_dischargevars(), luaK_patchtohere(), NO_JUMP, expdesc::s, expdesc::t, expdesc::u, VJMP, VK, VKNUM, and VTRUE.
Referenced by cond(), cond(), cond(), cond(), luaK_infix(), test_then_block(), test_then_block(), and test_then_block().
Definition at line 621 of file lua-5.1.5/src/lcode.c.
References expdesc::aux, expdesc::k, luaK_exp2RK(), expdesc::s, expdesc::u, and VINDEXED.
Referenced by field(), fieldsel(), fieldsel(), fieldsel(), primaryexp(), recfield(), singlevar(), singlevar(), singlevar(), suffixedexp(), suffixedexp(), and suffixedexp().
Definition at line 710 of file lua-5.1.5/src/lcode.c.
References isnumeral(), luaK_exp2nextreg(), luaK_exp2RK(), luaK_goiffalse(), luaK_goiftrue(), OPR_ADD, OPR_AND, OPR_CONCAT, OPR_DIV, OPR_MOD, OPR_MUL, OPR_OR, OPR_POW, and OPR_SUB.
Referenced by subexpr(), subexpr(), subexpr(), and subexpr().
int luaK_jump | ( | FuncState * | fs | ) |
Definition at line 59 of file lua-5.1.5/src/lcode.c.
References FuncState::jpc, luaK_codeAsBx, luaK_concat(), NO_JUMP, and OP_JMP.
Referenced by breakstat(), breakstat(), condjump(), exp2reg(), forbody(), forbody(), forbody(), gotostat(), ifstat(), leaveblock(), leaveblock(), repeatstat(), repeatstat(), statement(), statement(), test_then_block(), test_then_block(), test_then_block(), and whilestat().
void luaK_nil | ( | FuncState * | fs, |
int | from, | ||
int | n ) |
Definition at line 35 of file lua-5.1.5/src/lcode.c.
References Proto::code, FuncState::f, GET_OPCODE, GETARG_A, GETARG_B, FuncState::lasttarget, luaK_codeABC, FuncState::nactvar, OP_LOADNIL, FuncState::pc, and SETARG_B.
Referenced by adjust_assign(), adjust_assign(), adjust_assign(), adjust_assign(), and discharge2reg().
int luaK_numberK | ( | FuncState * | fs, |
lua_Number | r ) |
Definition at line 257 of file lua-5.1.5/src/lcode.c.
References addk(), and setnvalue.
Referenced by discharge2reg(), fornum(), fornum(), and luaK_exp2RK().
void luaK_patchlist | ( | FuncState * | fs, |
int | list, | ||
int | target ) |
Definition at line 169 of file lua-5.1.5/src/lcode.c.
References lua_assert, luaK_patchtohere(), NO_REG, patchlistaux(), and FuncState::pc.
Referenced by closegoto(), closegoto(), forbody(), forbody(), forbody(), gotostat(), repeatstat(), repeatstat(), repeatstat(), repeatstat(), solvegoto(), and whilestat().
void luaK_patchtohere | ( | FuncState * | fs, |
int | list ) |
Definition at line 179 of file lua-5.1.5/src/lcode.c.
References FuncState::jpc, luaK_concat(), and luaK_getlabel().
Referenced by exp2reg(), forbody(), forbody(), forbody(), ifstat(), ifstat(), ifstat(), ifstat(), leaveblock(), leaveblock(), leaveblock(), luaK_goiffalse(), luaK_goiftrue(), luaK_patchlist(), repeatstat(), repeatstat(), test_then_block(), test_then_block(), test_then_block(), whilestat(), whilestat(), whilestat(), and whilestat().
Definition at line 737 of file lua-5.1.5/src/lcode.c.
References codearith(), codecomp(), expdesc::f, freeexp(), GET_OPCODE, GETARG_B, getcode, expdesc::info, expdesc::k, lua_assert, luaK_concat(), luaK_dischargevars(), luaK_exp2nextreg(), luaK_exp2val(), NO_JUMP, OP_ADD, OP_CONCAT, OP_DIV, OP_EQ, OP_LE, OP_LT, OP_MOD, OP_MUL, OP_POW, OP_SUB, OPR_ADD, OPR_AND, OPR_CONCAT, OPR_DIV, OPR_EQ, OPR_GE, OPR_GT, OPR_LE, OPR_LT, OPR_MOD, OPR_MUL, OPR_NE, OPR_OR, OPR_POW, OPR_SUB, expdesc::s, SETARG_B, expdesc::t, expdesc::u, and VRELOCABLE.
Referenced by subexpr(), subexpr(), subexpr(), and subexpr().
Definition at line 689 of file lua-5.1.5/src/lcode.c.
References codearith(), codenot(), expdesc::f, isnumeral(), expdesc::k, lua_assert, luaK_exp2anyreg(), NO_JUMP, expdesc::nval, OP_LEN, OP_UNM, OPR_LEN, OPR_MINUS, OPR_NOT, expdesc::t, expdesc::u, and VKNUM.
Referenced by subexpr(), subexpr(), subexpr(), and subexpr().
void luaK_reserveregs | ( | FuncState * | fs, |
int | n ) |
Definition at line 209 of file lua-5.1.5/src/lcode.c.
References FuncState::freereg, and luaK_checkstack().
Referenced by adjust_assign(), adjust_assign(), adjust_assign(), adjust_assign(), check_conflict(), check_conflict(), check_conflict(), check_conflict(), constructor(), discharge2anyreg(), forbody(), forbody(), forbody(), forbody(), fornum(), fornum(), fornum(), fornum(), localfunc(), luaK_exp2nextreg(), luaK_self(), luaK_setreturns(), parlist(), parlist(), parlist(), and parlist().
void luaK_ret | ( | FuncState * | fs, |
int | first, | ||
int | nret ) |
Definition at line 69 of file lua-5.1.5/src/lcode.c.
References luaK_codeABC, and OP_RETURN.
Referenced by close_func(), close_func(), close_func(), close_func(), retstat(), retstat(), retstat(), and retstat().
Definition at line 503 of file lua-5.1.5/src/lcode.c.
References freeexp(), FuncState::freereg, expdesc::info, expdesc::k, luaK_codeABC, luaK_exp2anyreg(), luaK_exp2RK(), luaK_reserveregs(), OP_SELF, expdesc::s, expdesc::u, and VNONRELOC.
Referenced by primaryexp(), suffixedexp(), suffixedexp(), and suffixedexp().
void luaK_setlist | ( | FuncState * | fs, |
int | base, | ||
int | nelems, | ||
int | tostore ) |
Definition at line 819 of file lua-5.1.5/src/lcode.c.
References cast, FuncState::freereg, LexState::lastline, LFIELDS_PER_FLUSH, FuncState::ls, lua_assert, LUA_MULTRET, luaK_code(), luaK_codeABC, MAXARG_C, and OP_SETLIST.
Referenced by closelistfield(), closelistfield(), closelistfield(), closelistfield(), lastlistfield(), lastlistfield(), lastlistfield(), and lastlistfield().
Definition at line 292 of file lua-5.1.5/src/lcode.c.
References GETARG_A, getcode, expdesc::info, expdesc::k, expdesc::s, SETARG_B, expdesc::u, VCALL, VNONRELOC, VRELOCABLE, and VVARARG.
Referenced by assignment(), assignment(), assignment(), luaK_dischargevars(), and restassign().
Definition at line 280 of file lua-5.1.5/src/lcode.c.
References FuncState::freereg, getcode, expdesc::k, luaK_reserveregs(), SETARG_A, SETARG_B, SETARG_C, VCALL, and VVARARG.
Referenced by adjust_assign(), adjust_assign(), adjust_assign(), and adjust_assign().
Definition at line 472 of file lua-5.1.5/src/lcode.c.
References expdesc::aux, exp2reg(), freeexp(), expdesc::info, expdesc::k, lua_assert, luaK_codeABC, luaK_codeABx(), luaK_exp2anyreg(), luaK_exp2RK(), OP_SETGLOBAL, OP_SETTABLE, OP_SETUPVAL, expdesc::s, expdesc::u, VGLOBAL, VINDEXED, VLOCAL, and VUPVAL.
Referenced by assignment(), assignment(), assignment(), funcstat(), funcstat(), funcstat(), funcstat(), localfunc(), recfield(), and restassign().
Definition at line 250 of file lua-5.1.5/src/lcode.c.
References addk(), FuncState::L, s, and setsvalue.
Referenced by codestring(), codestring(), codestring(), and singlevar().
|
static |
Definition at line 122 of file lua-5.1.5/src/lcode.c.
References GET_OPCODE, getjump(), getjumpcontrol(), NO_JUMP, and OP_TESTSET.
Referenced by exp2reg().
|
static |
Definition at line 271 of file lua-5.1.5/src/lcode.c.
References addk(), FuncState::h, FuncState::L, sethvalue, and setnilvalue.
Referenced by luaK_exp2RK().
|
static |
Definition at line 150 of file lua-5.1.5/src/lcode.c.
References fixjump(), getjump(), next, NO_JUMP, and patchtestreg().
Referenced by dischargejpc(), exp2reg(), and luaK_patchlist().
|
static |
Definition at line 131 of file lua-5.1.5/src/lcode.c.
References CREATE_ABC, GET_OPCODE, GETARG_B, GETARG_C, getjumpcontrol(), NO_REG, OP_TEST, OP_TESTSET, and SETARG_A.
Referenced by patchlistaux(), and removevalues().
|
static |
Definition at line 144 of file lua-5.1.5/src/lcode.c.
References getjump(), NO_JUMP, NO_REG, and patchtestreg().
Referenced by codenot().