/netbsd-src/external/mit/lua/dist/src/ |
H A D | lgc.c | 137 lua_assert(u->nuvalue > 0); in getgclist() 140 default: lua_assert(0); return 0; in getgclist() 152 lua_assert(!isgray(o)); /* cannot be in a gray list */ in linkgclist_() 175 lua_assert(isempty(gval(n))); in clearkey() 213 lua_assert(isblack(o) && iswhite(v) && !isdead(g, v) && !isdead(g, o)); in luaC_barrier_() 217 lua_assert(!isold(v)); /* white object could not be old */ in luaC_barrier_() 222 lua_assert(issweepphase(g)); in luaC_barrier_() 235 lua_assert(isblack(o) && !isdead(g, o)); in luaC_barrierback_() 236 lua_assert((g->gckind == KGC_GEN) == (isold(o) && getage(o) != G_TOUCHED1)); in luaC_barrierback_() 248 lua_assert(g->allgc == o); /* object must be 1st in 'allgc' list! */ in luaC_fix() [all …]
|
H A D | lcode.c | 81 lua_assert(e->k == VCONST); in const2val() 176 lua_assert(dest != NO_JUMP); in fixjump() 179 lua_assert(GET_OPCODE(*jmp) == OP_JMP); in fixjump() 313 lua_assert(target <= fs->pc); in luaK_patchlist() 367 lua_assert(f->abslineinfo[fs->nabslineinfo - 1].pc == pc); in removelastlineinfo() 404 lua_assert(getOpMode(o) == iABC); in luaK_codeABCk() 405 lua_assert(a <= MAXARG_A && b <= MAXARG_B && in luaK_codeABCk() 415 lua_assert(getOpMode(o) == iABx); in luaK_codeABx() 416 lua_assert(a <= MAXARG_A && bc <= MAXARG_Bx); in luaK_codeABx() 426 lua_assert(getOpMode(o) == iAsBx); in luaK_codeAsBx() [all …]
|
H A D | llimits.h | 112 #define lua_assert(c) assert(c) macro 115 #if defined(lua_assert) 116 #define check_exp(c,e) (lua_assert(c), (e)) 118 #define lua_longassert(c) ((c) ? (void)0 : lua_assert(0)) 120 #define lua_assert(c) ((void)0) macro 129 #define luai_apicheck(l,e) ((void)l, lua_assert(e))
|
H A D | lmem.c | 117 lua_assert(nelems + 1 <= size && size <= limit); in luaM_growaux_() 137 lua_assert(newsize <= oldsize); in luaM_shrinkvector_() 156 lua_assert((osize == 0) == (block == NULL)); in luaM_free_() 183 lua_assert((osize == 0) == (block == NULL)); in luaM_realloc_() 190 lua_assert((nsize == 0) == (newblock == NULL)); in luaM_realloc_()
|
H A D | ldo.c | 110 lua_assert(errorstatus(errcode)); /* real error */ in luaD_seterrorobj() 221 lua_assert(newsize <= LUAI_MAXSTACK || newsize == ERRORSTACKSIZE); in luaD_reallocstack() 252 lua_assert(stacksize(L) == ERRORSTACKSIZE); in luaD_growstack() 287 lua_assert(lim <= L->stack_last.p + EXTRA_STACK); in stackinuse() 359 lua_assert(!L->allowhook); in luaD_hook() 496 lua_assert(!(ci->callstatus & in luaD_poscall() 527 lua_assert(ci->top.p <= L->stack_last.p); in precallC() 568 lua_assert(ci->top.p <= L->stack_last.p); in luaD_pretailcall() 612 lua_assert(ci->top.p <= L->stack_last.p); in luaD_precall() 715 lua_assert(hastocloseCfunc(ci->nresults)); in finishCcall() [all …]
|
H A D | lfunc.c | 94 lua_assert(isintwups(L) || L->openupval == NULL); in luaF_findupval() 96 lua_assert(!isdead(G(L), p)); in luaF_findupval() 173 lua_assert(level > L->tbclist.p); in luaF_newtbcupval() 187 lua_assert(upisopen(uv)); in luaF_unlinkupval() 202 lua_assert(uplevel(uv) < L->top.p); in luaF_closeupval() 219 lua_assert(tbc->tbclist.delta > 0); /* first element cannot be dummy */ in poptbclist()
|
H A D | llex.c | 166 lua_assert(currIsNewline(ls)); in inclinenumber() 213 lua_assert(set[2] == '\0'); in check_next2() 240 lua_assert(lisdigit(ls->current)); in read_numeral() 261 lua_assert(ttisfloat(&obj)); in read_numeral() 272 lua_assert(lisdigit(ls->current)); in read_numeral() 284 lua_assert(ttisinteger(&obj)); in read_numeral() 299 lua_assert(s == '[' || s == ']'); in skip_sep() 612 lua_assert(ls->lookahead.token == TK_EOS); in luaX_lookahead()
|
H A D | lvm.c | 99 lua_assert(obj != result); in l_strton() 318 lua_assert(!ttistable(t)); 325 lua_assert(isempty(slot)); 362 lua_assert(isempty(slot)); /* slot must be empty */ 505 lua_assert(ttisnumber(l) && ttisnumber(r)); 521 lua_assert(ttisnumber(l)); 522 lua_assert(ttisnumber(r)); 533 lua_assert(ttisnumber(l) && ttisnumber(r)); 549 lua_assert(ttisinteger(l)); 550 lua_assert(ttisinteger(r)); [all …]
|
H A D | lobject.c | 72 default: lua_assert(0); return 0; in intarith() 89 default: lua_assert(0); return 0; in numarith() 349 lua_assert(x <= 0x7FFFFFFFu); in luaO_utf8esc() 381 lua_assert(ttisnumber(obj)); in tostringbuff() 393 lua_assert(ttisinteger(obj)); in tostringbuff() 468 lua_assert(buff->blen <= BUFVFS); lua_assert(sz <= BUFVFS); in getbuff() 575 lua_assert(buff.pushed == 1); in luaO_pushvfstring()
|
H A D | lstate.c | 82 lua_assert(p == sizeof(buff)); in luai_makeseed() 95 lua_assert(tb > 0); in luaE_setdebt() 111 lua_assert(L->ci->next == NULL); in luaE_extendCI() 113 lua_assert(L->ci->next == NULL); in luaE_extendCI() 212 lua_assert(L->nci == 0); in freestack() 285 lua_assert(gettotalbytes(g) == sizeof(LG)); in close_state() 320 lua_assert(L1->openupval == NULL); in luaE_freethread()
|
H A D | ltable.c | 141 lua_assert(luai_numisnan(n) || l_mathop(fabs)(n) == cast_num(HUGE_VAL)); in l_hashfloat() 277 lua_assert(ispow2(size) && size/2 < t->alimit && t->alimit < size); in luaH_realasize() 417 lua_assert((optimal == 0 || optimal / 2 < na) && na <= optimal); in computesizes() 706 lua_assert(!isdummy(t)); in luaH_newkey() 724 else lua_assert(gnext(f) == 0); in luaH_newkey() 731 lua_assert(isempty(gval(mp))); in luaH_newkey() 774 lua_assert(key->tt == LUA_VSHRSTR); in luaH_getshortstr() 978 lua_assert(limit == luaH_realasize(t) && in luaH_getn()
|
H A D | lparser.c | 261 lua_assert(idx < fs->ndebugvars); in localdebuginfo() 375 lua_assert(eqstr(name, getlocalvardesc(prev, v->u.var.vidx)->vd.name)); in newupvalue() 381 lua_assert(eqstr(name, prev->f->upvalues[v->u.info].name)); in newupvalue() 474 lua_assert(var->k != VVOID); /* this one must exist */ in singlevar() 535 lua_assert(eqstr(gt->name, label->name)); in solvegoto() 655 lua_assert(fs->freereg == luaY_nvarstack(fs)); in enterblock() 682 lua_assert(bl->nactvar == fs->nactvar); /* back to level on entry */ in leaveblock() 766 lua_assert(fs->bl == NULL); in close_func() 944 lua_assert(cc.v.k == VVOID || cc.tostore > 0); in constructor() 1059 lua_assert(f->k == VNONRELOC); in funcargs() [all …]
|
H A D | lstring.c | 40 lua_assert(a->tt == LUA_VLNGSTR && b->tt == LUA_VLNGSTR); in luaS_eqlngstr() 56 lua_assert(ts->tt == LUA_VLNGSTR); in luaS_hashlongstr() 198 lua_assert(str != NULL); /* otherwise 'memcmp'/'memcpy' are undefined */ in internshrstr()
|
H A D | lauxlib.h | 187 #if !defined(lua_assert) 191 #define lua_assert(c) assert(c) macro 193 #define lua_assert(c) ((void)0) macro
|
H A D | ldebug.c | 46 lua_assert(isLua(ci)); in currentpc() 72 lua_assert(i < 0 || in getbaseline() 94 lua_assert(f->lineinfo[basepc] != ABSLINEINFO); in luaG_getfuncline() 311 lua_assert(GET_OPCODE(p->code[0]) == OP_VARARGPREP); in collectvalidlines() 403 lua_assert(ttisfunction(func)); in lua_getinfo() 816 lua_assert(ttisfunction(s2v(errfunc))); in luaG_errormsg()
|
H A D | lmathlib.c | 393 lua_assert(n > 0 && n < 32); in Ishl() 423 lua_assert(n > 0 && n < 32); in rotl() 430 lua_assert(n > 32 && n < 64); in rotl1() 549 lua_assert((lim & (lim + 1)) == 0 /* 'lim + 1' is a power of 2, */ in project()
|
H A D | lua.c | 345 lua_assert(argv[i][0] == '-'); /* already checked */ in runargs() 351 lua_assert(extra != NULL); in runargs() 571 lua_assert(lua_gettop(L) == 1); in loadline()
|
H A D | ltm.c | 71 lua_assert(event <= TM_EQ); in luaT_gettm() 265 lua_assert(L->top.p <= ci->top.p && ci->top.p <= L->stack_last.p); in luaT_adjustvarargs()
|
H A D | lundump.c | 191 default: lua_assert(0); in loadConstants() 337 lua_assert(cl->nupvalues == cl->p->sizeupvalues); in luaU_undump()
|
H A D | lobject.h | 125 checkliveness(L,io1); lua_assert(!isnonstrictnil(io1)); } 354 { TValue *io=(obj); lua_assert(ttisfloat(io)); val_(io).n=(x); } 360 { TValue *io=(obj); lua_assert(ttisinteger(io)); val_(io).i=(x); }
|
H A D | lcorolib.c | 84 lua_assert(stat != LUA_OK); in luaB_auxwrap()
|
H A D | lauxlib.c | 535 lua_assert(buffonstack(B) ? lua_touserdata(B->L, idx) != NULL \ 686 lua_assert(lua_isinteger(L, -1)); in luaL_ref() 705 lua_assert(lua_isinteger(L, -1)); in luaL_unref()
|
H A D | liolib.c | 193 lua_assert(p->f); in tofile() 642 lua_assert(n > 0); /* should return at least a nil */ in io_readline()
|
H A D | ldump.c | 145 lua_assert(tt == LUA_VNIL || tt == LUA_VFALSE || tt == LUA_VTRUE); in dumpConstants()
|
H A D | ltablib.c | 341 lua_assert(lo + r4 <= p && p <= up - r4); in choosePivot()
|