Home
last modified time | relevance | path

Searched refs:TValue (Results 1 – 25 of 60) sorted by relevance

123

/freebsd/contrib/bearssl/T0/
H A DTValue.cs34 struct TValue { struct
39 internal TValue(int x) in TValue() method
45 internal TValue(uint x) in TValue() argument
51 internal TValue(bool b) in TValue() method
57 internal TValue(int x, TPointerBase ptr) in TValue() argument
138 internal bool Equals(TValue v) in Equals() argument
152 public static implicit operator TValue(bool val) in operator TValue() argument
154 return new TValue(val); in operator TValue()
157 public static implicit operator TValue(sbyte val) in operator TValue() argument
159 return new TValue((int)val); in operator TValue()
[all …]
H A DCPU.cs51 TValue[] stackBuf;
57 stackBuf = new TValue[16]; in CPU()
97 internal TValue Pop() in Pop()
105 internal void Push(TValue v) in Push()
109 TValue[] nbuf = new TValue[len << 1]; in Push()
120 internal TValue Peek(int depth) in Peek()
131 TValue v = stackBuf[stackPtr - depth]; in Rot()
143 TValue v = stackBuf[stackPtr]; in NRot()
152 internal TValue GetLocal(int num) in GetLocal()
160 internal void PutLocal(int num, TValue v) in PutLocal()
[all …]
H A DT0Comp.cs375 TValue c = cpu.Pop(); in T0Comp()
382 TValue tv = new TValue(0, new TPointerExpr( in T0Comp()
412 TValue tv = new TValue(0, new TPointerExpr( in T0Comp()
482 TValue s = cpu.Pop(); in T0Comp()
569 TValue v; in T0Comp()
584 wordBuilder.Literal(new TValue(0, in T0Comp()
589 wordBuilder.Literal(new TValue(0, in T0Comp()
608 cpu.Push(new TValue(0, new TPointerBlob(dataBlock))); in T0Comp()
617 TValue va = cpu.Pop(); in T0Comp()
642 cpu.Push(new TValue(dataBlock.Length, in T0Comp()
[all …]
/freebsd/contrib/lua/src/
H A Dltm.h75 LUAI_FUNC const char *luaT_objtypename (lua_State *L, const TValue *o);
77 LUAI_FUNC const TValue *luaT_gettm (Table *events, TMS event, TString *ename);
78 LUAI_FUNC const TValue *luaT_gettmbyobj (lua_State *L, const TValue *o,
82 LUAI_FUNC void luaT_callTM (lua_State *L, const TValue *f, const TValue *p1,
83 const TValue *p2, const TValue *p3);
84 LUAI_FUNC void luaT_callTMres (lua_State *L, const TValue *f,
85 const TValue *p1, const TValue *p2, StkId p3);
86 LUAI_FUNC void luaT_trybinTM (lua_State *L, const TValue *p1, const TValue *p2,
89 LUAI_FUNC void luaT_trybinassocTM (lua_State *L, const TValue *p1,
90 const TValue *p2, int inv, StkId res, TMS event);
[all …]
H A Dltm.c60 const TValue *luaT_gettm (Table *events, TMS event, TString *ename) { in luaT_gettm()
61 const TValue *tm = luaH_getshortstr(events, ename); in luaT_gettm()
71 const TValue *luaT_gettmbyobj (lua_State *L, const TValue *o, TMS event) { in luaT_gettmbyobj()
91 const char *luaT_objtypename (lua_State *L, const TValue *o) { in luaT_objtypename()
95 const TValue *name = luaH_getshortstr(mt, luaS_new(L, "__name")); in luaT_objtypename()
103 void luaT_callTM (lua_State *L, const TValue *f, const TValue *p1, in luaT_callTM()
104 const TValue *p2, const TValue *p3) { in luaT_callTM()
119 void luaT_callTMres (lua_State *L, const TValue *f, const TValue *p1, in luaT_callTMres()
120 const TValue *p2, StkId res) { in luaT_callTMres()
137 static int callbinTM (lua_State *L, const TValue *p1, const TValue *p2, in callbinTM()
[all …]
H A Dltable.h38 LUAI_FUNC const TValue *luaH_getint (Table *t, lua_Integer key);
40 TValue *value);
41 LUAI_FUNC const TValue *luaH_getshortstr (Table *t, TString *key);
42 LUAI_FUNC const TValue *luaH_getstr (Table *t, TString *key);
43 LUAI_FUNC const TValue *luaH_get (Table *t, const TValue *key);
44 LUAI_FUNC void luaH_newkey (lua_State *L, Table *t, const TValue *key,
45 TValue *value);
46 LUAI_FUNC void luaH_set (lua_State *L, Table *t, const TValue *key,
47 TValue *value);
48 LUAI_FUNC void luaH_finishset (lua_State *L, Table *t, const TValue *key,
[all …]
H A Dlvm.h109 { setobj2t(L, cast(TValue *,slot), v); \
120 LUAI_FUNC int luaV_equalobj (lua_State *L, const TValue *t1, const TValue *t2);
121 LUAI_FUNC int luaV_lessthan (lua_State *L, const TValue *l, const TValue *r);
122 LUAI_FUNC int luaV_lessequal (lua_State *L, const TValue *l, const TValue *r);
123 LUAI_FUNC int luaV_tonumber_ (const TValue *obj, lua_Number *n);
124 LUAI_FUNC int luaV_tointeger (const TValue *obj, lua_Integer *p, F2Imod mode);
125 LUAI_FUNC int luaV_tointegerns (const TValue *obj, lua_Integer *p,
128 LUAI_FUNC void luaV_finishget (lua_State *L, const TValue *t, TValue *key,
129 StkId val, const TValue *slot);
130 LUAI_FUNC void luaV_finishset (lua_State *L, const TValue *t, TValue *key,
[all …]
H A Dldebug.h42 LUAI_FUNC l_noret luaG_typeerror (lua_State *L, const TValue *o,
44 LUAI_FUNC l_noret luaG_callerror (lua_State *L, const TValue *o);
45 LUAI_FUNC l_noret luaG_forerror (lua_State *L, const TValue *o,
47 LUAI_FUNC l_noret luaG_concaterror (lua_State *L, const TValue *p1,
48 const TValue *p2);
49 LUAI_FUNC l_noret luaG_opinterror (lua_State *L, const TValue *p1,
50 const TValue *p2,
52 LUAI_FUNC l_noret luaG_tointerror (lua_State *L, const TValue *p1,
53 const TValue *p2);
54 LUAI_FUNC l_noret luaG_ordererror (lua_State *L, const TValue *p1,
[all …]
H A Dlvm.c94 static int l_strton (const TValue *obj, TValue *result) { in l_strton()
107 int luaV_tonumber_ (const TValue *obj, lua_Number *n) { in luaV_tonumber_()
108 TValue v; in luaV_tonumber_()
141 int luaV_tointegerns (const TValue *obj, lua_Integer *p, F2Imod mode) { in luaV_tointegerns()
156 int luaV_tointeger (const TValue *obj, lua_Integer *p, F2Imod mode) { in luaV_tointeger()
157 TValue v; in luaV_tointeger()
180 static int forlimit (lua_State *L, lua_Integer init, const TValue *lim, in forlimit()
211 TValue *pinit = s2v(ra); in forprep()
212 TValue *plimit = s2v(ra + 1); in forprep()
213 TValue *pstep = s2v(ra + 2); in forprep()
[all …]
H A Dlobject.h67 typedef struct TValue { struct
69 } TValue; typedef
119 { TValue *io1=(obj1); const TValue *io2=(obj2); \
149 TValue val;
269 { TValue *io = (obj); lua_State *x_ = (x); \
310 { TValue *io = (obj); GCObject *i_g=(x); \
339 { TValue *io=(obj); val_(io).n=(x); settt_(io, LUA_VNUMFLT); }
342 { TValue *io=(obj); lua_assert(ttisfloat(io)); val_(io).n=(x); }
345 { TValue *io=(obj); val_(io).i=(x); settt_(io, LUA_VNUMINT); }
348 { TValue *io=(obj); lua_assert(ttisinteger(io)); val_(io).i=(x); }
[all …]
H A Dltable.c54 #define MAXASIZE luaM_limitN(1u << MAXABITS, TValue)
99 static const TValue absentkey = {ABSTKEYCONSTANT};
151 static Node *mainpositionTV (const Table *t, const TValue *key) { in mainpositionTV()
190 TValue key; in mainpositionfromnode()
216 static int equalkey (const TValue *k1, const Node *n2, int deadok) { in equalkey()
299 static const TValue *getgeneric (Table *t, const TValue *key, int deadok) { in getgeneric()
331 static unsigned int findindex (lua_State *L, Table *t, TValue *key, in findindex()
339 const TValue *n = getgeneric(t, key, 1); in findindex()
516 TValue k; in reinsert()
558 TValue *newarray; in luaH_resize()
[all …]
H A Dlapi.c60 static TValue *index2value (lua_State *L, int idx) { in index2value()
229 TValue temp; in reverse()
256 TValue *fr, *to; in lua_copy()
285 const TValue *o = index2value(L, idx); in lua_type()
298 const TValue *o = index2value(L, idx); in lua_iscfunction()
304 const TValue *o = index2value(L, idx); in lua_isinteger()
311 const TValue *o = index2value(L, idx); in lua_isnumber()
317 const TValue *o = index2value(L, idx); in lua_isstring()
323 const TValue *o = index2value(L, idx); in lua_isuserdata()
329 const TValue *o1 = index2value(L, index1); in lua_rawequal()
[all …]
H A Dlobject.c89 int luaO_rawarith (lua_State *L, int op, const TValue *p1, const TValue *p2, in luaO_rawarith()
90 TValue *res) { in luaO_rawarith()
126 void luaO_arith (lua_State *L, int op, const TValue *p1, const TValue *p2, in luaO_arith()
308 size_t luaO_str2num (const char *s, TValue *o) { in luaO_str2num()
355 static int tostringbuff (TValue *obj, char *buff) { in tostringbuff()
374 void luaO_tostring (lua_State *L, TValue *obj) { in luaO_tostring()
469 static void addnum2buff (BuffFS *buff, TValue *num) { in addnum2buff()
500 TValue num; in luaO_pushvfstring()
506 TValue num; in luaO_pushvfstring()
512 TValue num; in luaO_pushvfstring()
H A Dldebug.c297 TValue v; in collectvalidlines()
387 TValue *func; in lua_getinfo()
428 TValue *kvalue = &p->k[c]; in kname()
664 static int instack (CallInfo *ci, const TValue *o) { in instack()
680 static const char *getupvalname (CallInfo *ci, const TValue *o, in getupvalname()
706 static const char *varinfo (lua_State *L, const TValue *o) { in varinfo()
725 static l_noret typeerror (lua_State *L, const TValue *o, const char *op, in typeerror()
736 l_noret luaG_typeerror (lua_State *L, const TValue *o, const char *op) { in luaG_typeerror()
746 l_noret luaG_callerror (lua_State *L, const TValue *o) { in luaG_callerror()
755 l_noret luaG_forerror (lua_State *L, const TValue *o, const char *what) { in luaG_forerror()
[all …]
H A Dlfunc.c107 static void callclosemethod (lua_State *L, TValue *obj, TValue *err, int yy) { in callclosemethod()
109 const TValue *tm = luaT_gettmbyobj(L, obj, TM_CLOSE); in callclosemethod()
126 const TValue *tm = luaT_gettmbyobj(L, s2v(level), TM_CLOSE); in checkclosemth()
144 TValue *uv = s2v(level); /* value being closed */ in prepcallclosemth()
145 TValue *errobj; in prepcallclosemth()
197 TValue *slot = &uv->u.value; /* new position for value */ in luaF_closeupval()
/freebsd/sys/contrib/openzfs/module/lua/
H A Dlvm.h26 LUAI_FUNC int luaV_equalobj_ (lua_State *L, const TValue *t1, const TValue *t2);
29 LUAI_FUNC int luaV_lessthan (lua_State *L, const TValue *l, const TValue *r);
30 LUAI_FUNC int luaV_lessequal (lua_State *L, const TValue *l, const TValue *r);
31 LUAI_FUNC const TValue *luaV_tonumber (const TValue *obj, TValue *n);
33 LUAI_FUNC void luaV_gettable (lua_State *L, const TValue *t, TValue *key,
35 LUAI_FUNC void luaV_settable (lua_State *L, const TValue *t, TValue *key,
40 LUAI_FUNC void luaV_arith (lua_State *L, StkId ra, const TValue *rb,
41 const TValue *rc, TMS op);
42 LUAI_FUNC void luaV_objlen (lua_State *L, StkId ra, const TValue *rb);
H A Dltable.h25 LUAI_FUNC const TValue *luaH_getint (Table *t, int key);
26 LUAI_FUNC void luaH_setint (lua_State *L, Table *t, int key, TValue *value);
27 LUAI_FUNC const TValue *luaH_getstr (Table *t, TString *key);
28 LUAI_FUNC const TValue *luaH_get (Table *t, const TValue *key);
29 LUAI_FUNC TValue *luaH_newkey (lua_State *L, Table *t, const TValue *key);
30 LUAI_FUNC TValue *luaH_set (lua_State *L, Table *t, const TValue *key);
40 LUAI_FUNC Node *luaH_mainposition (const Table *t, const TValue *key);
H A Dlobject.h103 typedef struct lua_TValue TValue; typedef
185 { TValue *io=(obj); num_(io)=(x); settt_(io, LUA_TNUMBER); }
190 { TValue *io=(obj); val_(io).f=(x); settt_(io, LUA_TLCF); }
193 { TValue *io=(obj); val_(io).p=(x); settt_(io, LUA_TLIGHTUSERDATA); }
196 { TValue *io=(obj); val_(io).b=(x); settt_(io, LUA_TBOOLEAN); }
199 { TValue *io=(obj); GCObject *i_g=(x); \
203 { TValue *io=(obj); \
209 { TValue *io=(obj); \
214 { TValue *io=(obj); \
219 { TValue *io=(obj); \
[all …]
H A Dlvm.c33 const TValue *luaV_tonumber (const TValue *obj, TValue *n) { in luaV_tonumber()
91 static void callTM (lua_State *L, const TValue *f, const TValue *p1, in callTM()
92 const TValue *p2, TValue *p3, int hasres) { in callTM()
110 void luaV_gettable (lua_State *L, const TValue *t, TValue *key, StkId val) { in luaV_gettable()
113 const TValue *tm; in luaV_gettable()
116 const TValue *res = luaH_get(h, key); /* do a primitive get */ in luaV_gettable()
136 void luaV_settable (lua_State *L, const TValue *t, TValue *key, StkId val) { in luaV_settable()
139 const TValue *tm; in luaV_settable()
142 TValue *oldval = cast(TValue *, luaH_get(h, key)); in luaV_settable()
175 static int call_binTM (lua_State *L, const TValue *p1, const TValue *p2, in call_binTM()
[all …]
H A Dltable.c96 static Node *mainposition (const Table *t, const TValue *key) { in mainposition()
126 static int arrayindex (const TValue *key) { in arrayindex()
217 static int countint (const TValue *key, int *nums) { in countint()
271 luaM_reallocvector(L, t->array, t->sizearray, size, TValue); in setarrayvector()
320 luaM_reallocvector(L, t->array, oldasize, nasize, TValue); in luaH_resize()
342 static void rehash (lua_State *L, Table *t, const TValue *ek) { in rehash()
404 TValue *luaH_newkey (lua_State *L, Table *t, const TValue *key) { in luaH_newkey()
447 const TValue *luaH_getint (Table *t, int key) { in luaH_getint()
467 const TValue *luaH_getstr (Table *t, TString *key) { in luaH_getstr()
482 const TValue *luaH_get (Table *t, const TValue *key) { in luaH_get()
[all …]
H A Dldebug.h24 LUAI_FUNC l_noret luaG_typeerror (lua_State *L, const TValue *o,
27 LUAI_FUNC l_noret luaG_aritherror (lua_State *L, const TValue *p1,
28 const TValue *p2);
29 LUAI_FUNC l_noret luaG_ordererror (lua_State *L, const TValue *p1,
30 const TValue *p2);
H A Dltm.c50 const TValue *luaT_gettm (Table *events, TMS event, TString *ename) { in luaT_gettm()
51 const TValue *tm = luaH_getstr(events, ename); in luaT_gettm()
61 const TValue *luaT_gettmbyobj (lua_State *L, const TValue *o, TMS event) { in luaT_gettmbyobj()
H A Dlapi.c34 #define NONVALIDVALUE cast(TValue *, luaO_nilobject)
51 static TValue *index2addr (lua_State *L, int idx) { in index2addr()
54 TValue *o = ci->func + idx; in index2addr()
202 static void moveto (lua_State *L, TValue *fr, int idx) { in moveto()
203 TValue *to = index2addr(L, idx); in moveto()
223 TValue *fr; in lua_copy()
266 TValue n; in lua_isnumber()
267 const TValue *o = index2addr(L, idx); in lua_isnumber()
279 const TValue *o = index2addr(L, idx); in lua_isuserdata()
334 TValue n; in lua_tonumberx()
[all …]
H A Dltm.h52 LUAI_FUNC const TValue *luaT_gettm (Table *events, TMS event, TString *ename);
53 LUAI_FUNC const TValue *luaT_gettmbyobj (lua_State *L, const TValue *o,
H A Dldebug.c214 TValue v; in collectvalidlines()
325 TValue *kvalue = &p->k[INDEXK(c)]; in kname()
504 static int isinstack (CallInfo *ci, const TValue *o) { in isinstack()
512 static const char *getupvalname (CallInfo *ci, const TValue *o, in getupvalname()
526 l_noret luaG_typeerror (lua_State *L, const TValue *o, const char *op) { in luaG_typeerror()
552 l_noret luaG_aritherror (lua_State *L, const TValue *p1, const TValue *p2) { in luaG_aritherror()
553 TValue temp; in luaG_aritherror()
560 l_noret luaG_ordererror (lua_State *L, const TValue *p1, const TValue *p2) { in luaG_ordererror()

123