Lines Matching refs:tm

290   const TValue *tm;  /* metamethod */  in luaV_finishget()  local
294 tm = luaT_gettmbyobj(L, t, TM_INDEX); in luaV_finishget()
295 if (l_unlikely(notm(tm))) in luaV_finishget()
301 tm = fasttm(L, hvalue(t)->metatable, TM_INDEX); /* table's metamethod */ in luaV_finishget()
302 if (tm == NULL) { /* no metamethod? */ in luaV_finishget()
308 if (ttisfunction(tm)) { /* is metamethod a function? */ in luaV_finishget()
309 luaT_callTMres(L, tm, t, key, val); /* call it */ in luaV_finishget()
312 t = tm; /* else try to access 'tm[key]' */ in luaV_finishget()
334 const TValue *tm; /* '__newindex' metamethod */ in luaV_finishset() local
338 tm = fasttm(L, h->metatable, TM_NEWINDEX); /* get metamethod */ in luaV_finishset()
339 if (tm == NULL) { /* no metamethod? */ in luaV_finishset()
348 tm = luaT_gettmbyobj(L, t, TM_NEWINDEX); in luaV_finishset()
349 if (l_unlikely(notm(tm))) in luaV_finishset()
353 if (ttisfunction(tm)) { in luaV_finishset()
354 luaT_callTM(L, tm, t, key, val); in luaV_finishset()
357 t = tm; /* else repeat assignment over 'tm' */ in luaV_finishset()
566 const TValue *tm; in luaV_equalobj() local
592 tm = fasttm(L, uvalue(t1)->metatable, TM_EQ); in luaV_equalobj()
593 if (tm == NULL) in luaV_equalobj()
594 tm = fasttm(L, uvalue(t2)->metatable, TM_EQ); in luaV_equalobj()
600 tm = fasttm(L, hvalue(t1)->metatable, TM_EQ); in luaV_equalobj()
601 if (tm == NULL) in luaV_equalobj()
602 tm = fasttm(L, hvalue(t2)->metatable, TM_EQ); in luaV_equalobj()
608 if (tm == NULL) /* no TM? */ in luaV_equalobj()
611 luaT_callTMres(L, tm, t1, t2, L->top); /* call TM */ in luaV_equalobj()
684 const TValue *tm; in luaV_objlen() local
688 tm = fasttm(L, h->metatable, TM_LEN); in luaV_objlen()
689 if (tm) break; /* metamethod? break switch to call it */ in luaV_objlen()
702 tm = luaT_gettmbyobj(L, rb, TM_LEN); in luaV_objlen()
703 if (l_unlikely(notm(tm))) /* no metamethod? */ in luaV_objlen()
708 luaT_callTMres(L, tm, rb, rb, ra); in luaV_objlen()
1011 #define op_orderI(L,opi,opf,inv,tm) { \ argument
1023 Protect(cond = luaT_callorderiTM(L, s2v(ra), im, inv, isf, tm)); \
1471 TMS tm = (TMS)GETARG_C(i); in luaV_execute() local
1474 Protect(luaT_trybinTM(L, s2v(ra), rb, result, tm)); in luaV_execute()
1480 TMS tm = (TMS)GETARG_C(i); in luaV_execute() local
1483 Protect(luaT_trybiniTM(L, s2v(ra), imm, flip, result, tm)); in luaV_execute()
1489 TMS tm = (TMS)GETARG_C(i); in luaV_execute() local
1492 Protect(luaT_trybinassocTM(L, s2v(ra), imm, flip, result, tm)); in luaV_execute()