#include "lobject.h"
Go to the source code of this file.
Macros | |
#define | sizeCclosure(n) |
#define | sizeLclosure(n) |
Functions | |
LUAI_FUNC Proto * | luaF_newproto (lua_State *L) |
LUAI_FUNC Closure * | luaF_newCclosure (lua_State *L, int nelems) |
LUAI_FUNC Closure * | luaF_newLclosure (lua_State *L, int nelems) |
LUAI_FUNC UpVal * | luaF_newupval (lua_State *L) |
LUAI_FUNC UpVal * | luaF_findupval (lua_State *L, StkId level) |
LUAI_FUNC void | luaF_close (lua_State *L, StkId level) |
LUAI_FUNC void | luaF_freeproto (lua_State *L, Proto *f) |
LUAI_FUNC void | luaF_freeupval (lua_State *L, UpVal *uv) |
LUAI_FUNC const char * | luaF_getlocalname (const Proto *func, int local_number, int pc) |
#define sizeCclosure | ( | n | ) |
Definition at line 13 of file lfunc.h.
Referenced by freeobj(), luaF_newCclosure(), and traverseCclosure().
#define sizeLclosure | ( | n | ) |
Definition at line 16 of file lfunc.h.
Referenced by freeobj(), luaF_newLclosure(), and traverseLclosure().
Definition at line 88 of file lfunc.cpp.
References global_State::allgc, G, gch, gco2uv, isblack, isdead, lua_assert, luaC_checkupvalcolor(), luaF_freeupval(), UpVal::next, obj2gco, lua_State::openupval, setobj, UpVal::u, unlinkupval(), UpVal::v, and UpVal::value.
Referenced by close_state(), luaD_pcall(), luaE_freethread(), luaV_execute(), and recover().
Definition at line 46 of file lfunc.cpp.
References changewhite, G, gco2uv, isdead, isold, UpVal::l, lua_assert, LUA_TUPVAL, luaC_newobj(), UpVal::next, obj2gco, lua_State::openupval, UpVal::u, GCObject::uv, global_State::uvhead, UpVal::v, and UpVal::value.
Referenced by pushclosure().
Definition at line 134 of file lfunc.cpp.
References Proto::code, Proto::k, Proto::lineinfo, Proto::locvars, luaM_free, luaM_freearray, Proto::p, Proto::sizecode, Proto::sizek, Proto::sizelineinfo, Proto::sizelocvars, Proto::sizep, Proto::sizeupvalues, and Proto::upvalues.
Referenced by freeobj().
Definition at line 81 of file lfunc.cpp.
References luaM_free, UpVal::u, unlinkupval(), UpVal::v, and UpVal::value.
Referenced by freeobj(), and luaF_close().
Definition at line 149 of file lfunc.cpp.
References getstr, i, Proto::locvars, Proto::sizelocvars, LocVar::startpc, and LocVar::varname.
Referenced by findlocal(), getobjname(), and lua_getlocal().
Definition at line 22 of file lfunc.cpp.
References Closure::c, c, cast_byte, GCObject::cl, LUA_TCCL, luaC_newobj(), and sizeCclosure.
Referenced by lua_pushcclosure().
Definition at line 29 of file lfunc.cpp.
References c, cast_byte, GCObject::cl, Closure::l, LUA_TLCL, luaC_newobj(), LClosure::p, sizeLclosure, and LClosure::upvals.
Referenced by luaU_undump(), luaY_parser(), and pushclosure().
Definition at line 109 of file lfunc.cpp.
References Proto::cache, Proto::code, Proto::is_vararg, Proto::k, Proto::lastlinedefined, Proto::linedefined, Proto::lineinfo, Proto::locvars, LUA_TPROTO, luaC_newobj(), Proto::maxstacksize, Proto::numparams, GCObject::p, Proto::p, Proto::sizecode, Proto::sizek, Proto::sizelineinfo, Proto::sizelocvars, Proto::sizep, Proto::sizeupvalues, Proto::source, and Proto::upvalues.
Referenced by addprototype(), LoadConstants(), luaU_undump(), and luaY_parser().
Definition at line 38 of file lfunc.cpp.
References LUA_TUPVAL, luaC_newobj(), setnilvalue, UpVal::u, GCObject::uv, UpVal::v, and UpVal::value.
Referenced by f_parser().