Github User Fetcher 1.0.0
C Application with Server and GUI
|
#include "lprefix.h"
#include <float.h>
#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "lua.h"
#include "ldebug.h"
#include "ldo.h"
#include "lfunc.h"
#include "lgc.h"
#include "lobject.h"
#include "lopcodes.h"
#include "lstate.h"
#include "lstring.h"
#include "ltable.h"
#include "ltm.h"
#include "lvm.h"
Go to the source code of this file.
Macros | |
#define | lvm_c |
#define | LUA_CORE |
#define | MAXTAGLOOP 2000 |
#define | NBM (l_mathlim(MANT_DIG)) |
#define | tostring(L, o) (ttisstring(o) || (cvt2str(o) && (luaO_tostring(L, o), 1))) |
#define | isemptystr(o) (ttisshrstring(o) && tsvalue(o)->shrlen == 0) |
#define | NBITS cast_int(sizeof(lua_Integer) * CHAR_BIT) |
#define | RA(i) (base+GETARG_A(i)) |
#define | RB(i) check_exp(getBMode(GET_OPCODE(i)) == OpArgR, base+GETARG_B(i)) |
#define | RC(i) check_exp(getCMode(GET_OPCODE(i)) == OpArgR, base+GETARG_C(i)) |
#define | RKB(i) |
#define | RKC(i) |
#define | dojump(ci, i, e) |
#define | donextjump(ci) { i = *ci->u.l.savedpc; dojump(ci, i, 1); } |
#define | Protect(x) { {x;}; base = ci->u.l.base; } |
#define | checkGC(L, c) |
#define | vmfetch() |
#define | vmdispatch(o) switch(o) |
#define | vmcase(l) case l: |
#define | vmbreak break |
#define | gettableProtected(L, t, k, v) |
#define | settableProtected(L, t, k, v) |
#define checkGC | ( | L, | |
c ) |
Definition at line 749 of file lua-5.3.6/src/lvm.c.
Referenced by luaV_execute().
#define dojump | ( | ci, | |
i, | |||
e ) |
Definition at line 738 of file lua-5.3.6/src/lvm.c.
Referenced by luaV_execute().
#define donextjump | ( | ci | ) | { i = *ci->u.l.savedpc; dojump(ci, i, 1); } |
Definition at line 744 of file lua-5.3.6/src/lvm.c.
Referenced by luaV_execute().
#define gettableProtected | ( | L, | |
t, | |||
k, | |||
v ) |
Definition at line 774 of file lua-5.3.6/src/lvm.c.
Referenced by luaV_execute().
#define isemptystr | ( | o | ) | (ttisshrstring(o) && tsvalue(o)->shrlen == 0) |
Definition at line 457 of file lua-5.3.6/src/lvm.c.
Referenced by luaV_concat().
#define LUA_CORE |
Definition at line 8 of file lua-5.3.6/src/lvm.c.
#define lvm_c |
Definition at line 7 of file lua-5.3.6/src/lvm.c.
#define MAXTAGLOOP 2000 |
Definition at line 35 of file lua-5.3.6/src/lvm.c.
Referenced by luaV_finishget(), and luaV_finishset().
#define NBITS cast_int(sizeof(lua_Integer) * CHAR_BIT) |
Definition at line 588 of file lua-5.3.6/src/lvm.c.
Referenced by luaV_shiftl().
#define NBM (l_mathlim(MANT_DIG)) |
Definition at line 47 of file lua-5.3.6/src/lvm.c.
#define Protect | ( | x | ) | { {x;}; base = ci->u.l.base; } |
Definition at line 747 of file lua-5.3.6/src/lvm.c.
Referenced by luaV_execute().
#define RA | ( | i | ) | (base+GETARG_A(i)) |
Definition at line 728 of file lua-5.3.6/src/lvm.c.
Referenced by luaV_execute().
#define RB | ( | i | ) | check_exp(getBMode(GET_OPCODE(i)) == OpArgR, base+GETARG_B(i)) |
Definition at line 729 of file lua-5.3.6/src/lvm.c.
Referenced by luaV_execute().
#define RC | ( | i | ) | check_exp(getCMode(GET_OPCODE(i)) == OpArgR, base+GETARG_C(i)) |
Definition at line 730 of file lua-5.3.6/src/lvm.c.
#define RKB | ( | i | ) |
Definition at line 731 of file lua-5.3.6/src/lvm.c.
Referenced by luaV_execute().
#define RKC | ( | i | ) |
Definition at line 733 of file lua-5.3.6/src/lvm.c.
Referenced by luaV_execute().
#define settableProtected | ( | L, | |
t, | |||
k, | |||
v ) |
Definition at line 780 of file lua-5.3.6/src/lvm.c.
Referenced by luaV_execute().
#define tostring | ( | L, | |
o ) (ttisstring(o) || (cvt2str(o) && (luaO_tostring(L, o), 1))) |
Definition at line 454 of file lua-5.3.6/src/lvm.c.
Referenced by luaV_concat().
#define vmbreak break |
Definition at line 767 of file lua-5.3.6/src/lvm.c.
Referenced by luaV_execute().
#define vmcase | ( | l | ) | case l: |
Definition at line 766 of file lua-5.3.6/src/lvm.c.
Referenced by luaV_execute().
#define vmdispatch | ( | o | ) | switch(o) |
Definition at line 765 of file lua-5.3.6/src/lvm.c.
Referenced by luaV_execute().
#define vmfetch | ( | ) |
Definition at line 756 of file lua-5.3.6/src/lvm.c.
Referenced by luaV_execute().
|
static |
Definition at line 460 of file lua-5.3.6/src/lvm.c.
Referenced by luaV_concat().
|
static |
Definition at line 135 of file lua-5.3.6/src/lvm.c.
References luai_numlt, luaV_tointeger(), and tonumber.
Referenced by luaV_execute().
Definition at line 610 of file lua-5.3.6/src/lvm.c.
References Proto::cache, Upvaldesc::idx, Upvaldesc::instack, NULL, Proto::sizeupvalues, LClosure::upvals, Proto::upvalues, and UpVal::v.
Referenced by luaV_execute().
Definition at line 248 of file lua-5.3.6/src/lvm.c.
References getstr, and tsslen.
Referenced by luaV_lessequal(), and luaV_lessthan().
|
static |
Definition at line 300 of file lua-5.3.6/src/lvm.c.
References cast, cast_num, l_intfitsf, and luai_numle.
Definition at line 341 of file lua-5.3.6/src/lvm.c.
References fltvalue, ivalue, LEintfloat(), LTintfloat(), luai_numisnan, luai_numle, ttisfloat, and ttisinteger.
Referenced by luaV_lessequal().
|
static |
Definition at line 281 of file lua-5.3.6/src/lvm.c.
References cast, cast_num, l_intfitsf, and luai_numlt.
Definition at line 318 of file lua-5.3.6/src/lvm.c.
References fltvalue, ivalue, LEintfloat(), LTintfloat(), luai_numisnan, luai_numlt, ttisfloat, and ttisinteger.
Referenced by luaV_lessthan().
void luaV_concat | ( | lua_State * | L, |
int | total ) |
Definition at line 474 of file lua-5.3.6/src/lvm.c.
References cast_void, copy2buff(), cvt2str, getstr, isemptystr, lua_assert, luaG_runerror(), LUAI_MAXSHORTLEN, luaS_createlngstrobj(), luaS_newlstr(), luaT_trybinTM(), MAX_SIZE, setobjs2s, setsvalue2s, TM_CONCAT, lua_State::top, tostring, ttisstring, and vslen.
Referenced by luaV_execute(), and luaV_finishOp().
lua_Integer luaV_div | ( | lua_State * | L, |
lua_Integer | m, | ||
lua_Integer | n ) |
Definition at line 552 of file lua-5.3.6/src/lvm.c.
References intop, l_castS2U, and luaG_runerror().
Referenced by intarith(), and luaV_execute().
Definition at line 407 of file lua-5.3.6/src/lvm.c.
References bvalue, eqshrstr, fasttm, fltvalue, fvalue, gcvalue, hvalue, ivalue, l_isfalse, LUA_TBOOLEAN, LUA_TLCF, LUA_TLIGHTUSERDATA, LUA_TLNGSTR, LUA_TNIL, LUA_TNUMBER, LUA_TNUMFLT, LUA_TNUMINT, LUA_TSHRSTR, LUA_TTABLE, LUA_TUSERDATA, luai_numeq, luaS_eqlngstr(), luaT_callTM(), NULL, pvalue, TM_EQ, tointeger, lua_State::top, tsvalue, ttnov, ttype, and uvalue.
Referenced by lua_compare(), and luaV_execute().
void luaV_execute | ( | lua_State * | L | ) |
Definition at line 786 of file lua-5.3.6/src/lvm.c.
References CallInfo::base, CallInfo::callstatus, cast_int, checkGC, chgfltvalue, chgivalue, lua_State::ci, CIST_FRESH, CIST_TAIL, clLvalue, dojump, donextjump, fltvalue, forlimit(), CallInfo::func, GET_OPCODE, GETARG_A, GETARG_Ax, GETARG_B, GETARG_Bx, GETARG_C, GETARG_sBx, getcached(), getproto, gettableProtected, hvalue, intop, isLua, ivalue, Proto::k, CallInfo::l, l_castS2U, l_isfalse, LFIELDS_PER_FLUSH, lua_assert, LUA_MULTRET, luaC_barrierback, luaC_upvalbarrier, luaD_call(), luaD_checkstack, luaD_poscall(), luaD_precall(), luaF_close(), luaG_runerror(), luaH_getstr(), luaH_new(), luaH_resize(), luaH_resizearray(), luaH_setint(), luai_numadd, luai_numdiv, luai_numidiv, luai_numle, luai_numlt, luai_nummod, luai_nummul, luai_numpow, luai_numsub, luai_numunm, luaO_fb2int(), luaT_trybinTM(), luaV_concat(), luaV_div(), luaV_equalobj(), luaV_fastget, luaV_finishget(), luaV_lessequal(), luaV_lessthan(), luaV_mod(), luaV_objlen(), luaV_shiftl(), NULL, Proto::numparams, OP_ADD, OP_BAND, OP_BNOT, OP_BOR, OP_BXOR, OP_CALL, OP_CLOSURE, OP_CONCAT, OP_DIV, OP_EQ, OP_EXTRAARG, OP_FORLOOP, OP_FORPREP, OP_GETTABLE, OP_GETTABUP, OP_GETUPVAL, OP_IDIV, OP_JMP, OP_LE, OP_LEN, OP_LOADBOOL, OP_LOADK, OP_LOADKX, OP_LOADNIL, OP_LT, OP_MOD, OP_MOVE, OP_MUL, OP_NEWTABLE, OP_NOT, OP_POW, OP_RETURN, OP_SELF, OP_SETLIST, OP_SETTABLE, OP_SETTABUP, OP_SETUPVAL, OP_SHL, OP_SHR, OP_SUB, OP_TAILCALL, OP_TEST, OP_TESTSET, OP_TFORCALL, OP_TFORLOOP, OP_UNM, OP_VARARG, Proto::p, LClosure::p, CallInfo::previous, Protect, pushclosure(), RA, RB, RKB, RKC, CallInfo::savedpc, setbvalue, setclLvalue, setfltvalue, sethvalue, setivalue, setnilvalue, setobj, setobj2s, setobjs2s, settableProtected, Table::sizearray, Proto::sizep, TM_ADD, TM_BAND, TM_BNOT, TM_BOR, TM_BXOR, TM_DIV, TM_IDIV, TM_MOD, TM_MUL, TM_POW, TM_SHL, TM_SHR, TM_SUB, TM_UNM, tointeger, tonumber, CallInfo::top, lua_State::top, tsvalue, ttisinteger, ttisnil, CallInfo::u, LClosure::upvals, UpVal::v, vmbreak, vmcase, vmdispatch, and vmfetch.
void luaV_finishget | ( | lua_State * | L, |
const TValue * | t, | ||
TValue * | key, | ||
StkId | val, | ||
const TValue * | slot ) |
Definition at line 160 of file lua-5.3.6/src/lvm.c.
References fasttm, hvalue, lua_assert, luaG_runerror(), luaG_typeerror(), luaH_get(), luaT_callTM(), luaT_gettmbyobj(), luaV_fastget, MAXTAGLOOP, NULL, setnilvalue, setobj2s, TM_INDEX, ttisfunction, ttisnil, and ttistable.
Referenced by auxgetstr(), auxgetstr(), lua_geti(), lua_gettable(), and luaV_execute().
void luaV_finishOp | ( | lua_State * | L | ) |
Definition at line 656 of file lua-5.3.6/src/lvm.c.
References CallInfo::base, CallInfo::callstatus, cast_int, lua_State::ci, CIST_LEQ, GET_OPCODE, GETARG_A, GETARG_B, GETARG_C, CallInfo::l, l_isfalse, lua_assert, luaV_concat(), OP_ADD, OP_BAND, OP_BNOT, OP_BOR, OP_BXOR, OP_CALL, OP_CONCAT, OP_DIV, OP_EQ, OP_GETTABLE, OP_GETTABUP, OP_IDIV, OP_JMP, OP_LE, OP_LEN, OP_LT, OP_MOD, OP_MUL, OP_POW, OP_SELF, OP_SETTABLE, OP_SETTABUP, OP_SHL, OP_SHR, OP_SUB, OP_TAILCALL, OP_TFORCALL, OP_TFORLOOP, OP_UNM, CallInfo::savedpc, setobj2s, setobjs2s, CallInfo::top, lua_State::top, and CallInfo::u.
void luaV_finishset | ( | lua_State * | L, |
const TValue * | t, | ||
TValue * | key, | ||
StkId | val, | ||
const TValue * | slot ) |
Definition at line 203 of file lua-5.3.6/src/lvm.c.
References cast, fasttm, hvalue, invalidateTMcache, lua_assert, luaC_barrierback, luaG_runerror(), luaG_typeerror(), luaH_get(), luaH_newkey(), luaO_nilobject, luaT_callTM(), luaT_gettmbyobj(), luaV_fastset, MAXTAGLOOP, Table::metatable, NULL, setobj2t, TM_NEWINDEX, ttisfunction, and ttisnil.
Referenced by auxsetstr(), auxsetstr(), lua_seti(), and lua_settable().
Definition at line 384 of file lua-5.3.6/src/lvm.c.
References CallInfo::callstatus, lua_State::ci, CIST_LEQ, l_strcmp(), LEnum(), luaG_ordererror(), luaT_callorderTM(), TM_LE, TM_LT, tsvalue, ttisnumber, and ttisstring.
Referenced by luaV_execute().
Definition at line 364 of file lua-5.3.6/src/lvm.c.
References l_strcmp(), LTnum(), luaG_ordererror(), luaT_callorderTM(), TM_LT, tsvalue, ttisnumber, and ttisstring.
Referenced by luaV_execute().
lua_Integer luaV_mod | ( | lua_State * | L, |
lua_Integer | m, | ||
lua_Integer | n ) |
Definition at line 572 of file lua-5.3.6/src/lvm.c.
References l_castS2U, and luaG_runerror().
Referenced by intarith(), intarith(), and luaV_execute().
Definition at line 517 of file lua-5.3.6/src/lvm.c.
References fasttm, hvalue, LUA_TLNGSTR, LUA_TSHRSTR, LUA_TTABLE, luaG_typeerror(), luaH_getn(), luaT_callTM(), luaT_gettmbyobj(), Table::metatable, setivalue, TM_LEN, tsvalue, ttisnil, and ttype.
Referenced by luaV_execute().
lua_Integer luaV_shiftl | ( | lua_Integer | x, |
lua_Integer | y ) |
Definition at line 593 of file lua-5.3.6/src/lvm.c.
Referenced by intarith(), intarith(), and luaV_execute().
int luaV_tointeger | ( | const TValue * | obj, |
lua_Integer * | p, | ||
int | mode ) |
Definition at line 94 of file lua-5.3.6/src/lvm.c.
References cvt2num, fltvalue, ivalue, l_floor, lua_numbertointeger, luaO_str2num(), svalue, ttisfloat, ttisinteger, and vslen.
Referenced by forlimit(), luaH_get(), and luaH_newkey().
int luaV_tonumber_ | ( | const TValue * | obj, |
lua_Number * | n ) |
Definition at line 72 of file lua-5.3.6/src/lvm.c.
References cast_num, cvt2num, ivalue, luaO_str2num(), nvalue, svalue, ttisinteger, and vslen.
Definition at line 632 of file lua-5.3.6/src/lvm.c.
References Proto::cache, Upvaldesc::idx, isblack, luaF_findupval(), luaF_newLclosure(), LClosure::p, UpVal::refcount, setclLvalue, Proto::sizeupvalues, LClosure::upvals, and Proto::upvalues.
Referenced by luaV_execute().