Home
last modified time | relevance | path

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

123

/netbsd-src/external/mit/lua/dist/src/
H A Dltm.h79 LUAI_FUNC const char *luaT_objtypename (lua_State *L, const TValue *o);
81 LUAI_FUNC const TValue *luaT_gettm (Table *events, TMS event, TString *ename);
82 LUAI_FUNC const TValue *luaT_gettmbyobj (lua_State *L, const TValue *o,
86 LUAI_FUNC void luaT_callTM (lua_State *L, const TValue *f, const TValue *p1,
87 const TValue *p2, const TValue *p3);
88 LUAI_FUNC void luaT_callTMres (lua_State *L, const TValue *f,
89 const TValue *p1, const TValue *p2, StkId p3);
90 LUAI_FUNC void luaT_trybinTM (lua_State *L, const TValue *p1, const TValue *p2,
93 LUAI_FUNC void luaT_trybinassocTM (lua_State *L, const TValue *p1,
94 const TValue *p2, int inv, StkId res, TMS event);
[all …]
H A Dltm.c69 const TValue *luaT_gettm (Table *events, TMS event, TString *ename) { in luaT_gettm()
70 const TValue *tm = luaH_getshortstr(events, ename); in luaT_gettm()
80 const TValue *luaT_gettmbyobj (lua_State *L, const TValue *o, TMS event) { in luaT_gettmbyobj()
100 const char *luaT_objtypename (lua_State *L, const TValue *o) { in luaT_objtypename()
104 const TValue *name = luaH_getshortstr(mt, luaS_new(L, "__name")); in luaT_objtypename()
112 void luaT_callTM (lua_State *L, const TValue *f, const TValue *p1, in luaT_callTM()
113 const TValue *p2, const TValue *p3) { in luaT_callTM()
128 void luaT_callTMres (lua_State *L, const TValue *f, const TValue *p1, in luaT_callTMres()
129 const TValue *p2, StkId res) { in luaT_callTMres()
146 static int callbinTM (lua_State *L, const TValue *p1, const TValue *p2, in callbinTM()
[all …]
H A Dlvm.h115 { setobj2t(L, cast(TValue *,slot), v); \
126 LUAI_FUNC int luaV_equalobj (lua_State *L, const TValue *t1, const TValue *t2);
127 LUAI_FUNC int luaV_lessthan (lua_State *L, const TValue *l, const TValue *r);
128 LUAI_FUNC int luaV_lessequal (lua_State *L, const TValue *l, const TValue *r);
129 LUAI_FUNC int luaV_tonumber_ (const TValue *obj, lua_Number *n);
130 LUAI_FUNC int luaV_tointeger (const TValue *obj, lua_Integer *p, F2Imod mode);
131 LUAI_FUNC int luaV_tointegerns (const TValue *obj, lua_Integer *p,
134 LUAI_FUNC void luaV_finishget (lua_State *L, const TValue *t, TValue *key,
135 StkId val, const TValue *slot);
136 LUAI_FUNC void luaV_finishset (lua_State *L, const TValue *t, TValue *key,
[all …]
H A Dltable.h40 LUAI_FUNC const TValue *luaH_getint (Table *t, lua_Integer key);
42 TValue *value);
43 LUAI_FUNC const TValue *luaH_getshortstr (Table *t, TString *key);
44 LUAI_FUNC const TValue *luaH_getstr (Table *t, TString *key);
45 LUAI_FUNC const TValue *luaH_get (Table *t, const TValue *key);
46 LUAI_FUNC void luaH_newkey (lua_State *L, Table *t, const TValue *key,
47 TValue *value);
48 LUAI_FUNC void luaH_set (lua_State *L, Table *t, const TValue *key,
49 TValue *value);
50 LUAI_FUNC void luaH_finishset (lua_State *L, Table *t, const TValue *key,
[all …]
H A Dldebug.h44 LUAI_FUNC l_noret luaG_typeerror (lua_State *L, const TValue *o,
46 LUAI_FUNC l_noret luaG_callerror (lua_State *L, const TValue *o);
47 LUAI_FUNC l_noret luaG_forerror (lua_State *L, const TValue *o,
49 LUAI_FUNC l_noret luaG_concaterror (lua_State *L, const TValue *p1,
50 const TValue *p2);
51 LUAI_FUNC l_noret luaG_opinterror (lua_State *L, const TValue *p1,
52 const TValue *p2,
54 LUAI_FUNC l_noret luaG_tointerror (lua_State *L, const TValue *p1,
55 const TValue *p2);
56 LUAI_FUNC l_noret luaG_ordererror (lua_State *L, const TValue *p1,
[all …]
H A Dlobject.h71 typedef struct TValue { struct
73 } TValue; typedef
123 { TValue *io1=(obj1); const TValue *io2=(obj2); \
153 TValue val;
273 { TValue *io = (obj); lua_State *x_ = (x); \
314 { TValue *io = (obj); GCObject *i_g=(x); \
350 { TValue *io=(obj); val_(io).n=(x); settt_(io, LUA_VNUMFLT); }
354 { TValue *io=(obj); lua_assert(ttisfloat(io)); val_(io).n=(x); }
357 { TValue *io=(obj); val_(io).i=(x); settt_(io, LUA_VNUMINT); }
360 { TValue *io=(obj); lua_assert(ttisinteger(io)); val_(io).i=(x); }
[all …]
H A Dlvm.c98 static int l_strton (const TValue *obj, TValue *result) { in l_strton()
112 int luaV_tonumber_ (const TValue *obj, lua_Number *n) { in luaV_tonumber_()
113 TValue v; in luaV_tonumber_()
147 int luaV_tointegerns (const TValue *obj, lua_Integer *p, F2Imod mode) {
167 int luaV_tointeger (const TValue *obj, lua_Integer *p, F2Imod mode) {
168 TValue v;
192 static int forlimit (lua_State *L, lua_Integer init, const TValue *lim,
224 TValue *pinit = s2v(ra);
225 TValue *plimit = s2v(ra + 1);
226 TValue *pstep = s2v(ra + 2);
[all …]
H A Dltable.c58 #define MAXASIZE luaM_limitN(1u << MAXABITS, TValue)
103 static const TValue absentkey = {ABSTKEYCONSTANT};
157 static Node *mainpositionTV (const Table *t, const TValue *key) { in mainpositionTV()
198 TValue key; in mainpositionfromnode()
224 static int equalkey (const TValue *k1, const Node *n2, int deadok) { in equalkey()
309 static const TValue *getgeneric (Table *t, const TValue *key, int deadok) { in getgeneric()
341 static unsigned int findindex (lua_State *L, Table *t, TValue *key, in findindex()
349 const TValue *n = getgeneric(t, key, 1); in findindex()
526 TValue k; in reinsert()
568 TValue *newarray; in luaH_resize()
[all …]
H A Dlapi.c66 static TValue *index2value (lua_State *L, int idx) { in index2value()
235 TValue temp; in reverse()
262 TValue *fr, *to; in lua_copy()
291 const TValue *o = index2value(L, idx); in lua_type()
304 const TValue *o = index2value(L, idx); in lua_iscfunction()
310 const TValue *o = index2value(L, idx); in lua_isinteger()
317 const TValue *o = index2value(L, idx); in lua_isnumber()
323 const TValue *o = index2value(L, idx); in lua_isstring()
329 const TValue *o = index2value(L, idx); in lua_isuserdata()
335 const TValue *o1 = index2value(L, index1); in lua_rawequal()
[all …]
H A Dldebug.c301 TValue v; in collectvalidlines()
391 TValue *func; in lua_getinfo()
432 TValue *kvalue = &p->k[c]; in kname()
668 static int instack (CallInfo *ci, const TValue *o) { in instack()
684 static const char *getupvalname (CallInfo *ci, const TValue *o, in getupvalname()
710 static const char *varinfo (lua_State *L, const TValue *o) { in varinfo()
729 static l_noret typeerror (lua_State *L, const TValue *o, const char *op, in typeerror()
740 l_noret luaG_typeerror (lua_State *L, const TValue *o, const char *op) { in luaG_typeerror()
750 l_noret luaG_callerror (lua_State *L, const TValue *o) { in luaG_callerror()
759 l_noret luaG_forerror (lua_State *L, const TValue *o, const char *what) { in luaG_forerror()
[all …]
H A Dlobject.c95 int luaO_rawarith (lua_State *L, int op, const TValue *p1, const TValue *p2, in luaO_rawarith()
96 TValue *res) { in luaO_rawarith()
142 void luaO_arith (lua_State *L, int op, const TValue *p1, const TValue *p2, in luaO_arith()
326 size_t luaO_str2num (const char *s, TValue *o) { in luaO_str2num()
379 static int tostringbuff (TValue *obj, char *buff) { in tostringbuff()
403 void luaO_tostring (lua_State *L, TValue *obj) { in luaO_tostring()
498 static void addnum2buff (BuffFS *buff, TValue *num) { in addnum2buff()
529 TValue num; in luaO_pushvfstring()
535 TValue num; in luaO_pushvfstring()
542 TValue num; in luaO_pushvfstring()
H A Dlfunc.c111 static void callclosemethod (lua_State *L, TValue *obj, TValue *err, int yy) { in callclosemethod()
113 const TValue *tm = luaT_gettmbyobj(L, obj, TM_CLOSE); in callclosemethod()
130 const TValue *tm = luaT_gettmbyobj(L, s2v(level), TM_CLOSE); in checkclosemth()
148 TValue *uv = s2v(level); /* value being closed */ in prepcallclosemth()
149 TValue *errobj; in prepcallclosemth()
201 TValue *slot = &uv->u.value; /* new position for value */ in luaF_closeupval()
H A Dlcode.c60 static int tonumeral (const expdesc *e, TValue *v) { in tonumeral()
80 static TValue *const2val (FuncState *fs, const expdesc *e) { in const2val()
90 int luaK_exp2const (FuncState *fs, const expdesc *e, TValue *v) { in luaK_exp2const()
549 static int addk (FuncState *fs, TValue *key, TValue *v) { in addk()
550 TValue val; in addk()
553 const TValue *idx = luaH_get(fs->ls->h, key); /* query scanner table */ in addk()
569 luaM_growvector(L, f->k, k, f->sizek, TValue, MAXARG_Ax, "constants"); in addk()
582 TValue o; in stringK()
592 TValue o; in luaK_intK()
611 TValue o; in luaK_numberK()
[all …]
/netbsd-src/external/gpl3/binutils/dist/gprofng/src/
H A DHist_data.h58 TValue *value; // numeric values
116 TValue *get_real_value (TValue *res, int met_index, int row);
117 TValue *get_value (TValue *res, int met_index, int row);
118 TValue *get_value (TValue *res, int met_index, HistItem *hi);
195 size_t time_len (TValue *value, int clock);
199 HistItem *new_hist_item (Histable *obj, int itype, TValue *value);
200 HistItem *update_hist_item (HistItem *hi, TValue *value);
262 TValue *value; // numeric values
H A Ddbe_structs.h75 struct TValue struct
94 void make_delta (TValue *v1, TValue *v2); argument
95 void make_ratio (TValue *v1, TValue *v2);
96 int compare (TValue *v);
H A DModule.h134 Histable::Type type, TValue *ftotal, SourceFile *srcFile,
261 TValue *total;
262 TValue *maximum;
263 TValue *maximum_inc;
264 TValue *empty;
H A DPathTree.h48 static void make_deltas (int vtype, TValue *v1, TValue *v2);
49 static void make_ratios (int vtype, TValue *v1, TValue *v2);
263 ASN_METRIC_VAL (TValue& v, Slot& slot, NodeIdx idx) in ASN_METRIC_VAL()
286 ADD_METRIC_VAL (TValue& v, Slot& slot, NodeIdx idx) in ADD_METRIC_VAL()
308 SUB_METRIC_VAL (TValue& v, Slot& slot, NodeIdx idx) in SUB_METRIC_VAL()
H A DHist_data.cc50 value = new TValue[n]; in HistItem()
51 memset (value, 0, sizeof (TValue) * n); in HistItem()
189 TValue v1, v2; in sort_compare()
688 Hist_data::new_hist_item (Histable *obj, int itype, TValue *value) in new_hist_item()
781 TValue *thresh = &threshold->value[index]; in set_threshold()
782 TValue *mtotal = &total->value[index]; in set_threshold()
904 TValue res; in print_row()
917 TValue *v = get_value (&res, hist_metrics[i].indTimeVal, row); in print_row()
923 TValue *v = get_value (&res, i, row); in print_row()
948 TValue *v = get_real_value (&res, met_ind, row); in print_row()
[all …]
H A Dutil.cc103 TValue::to_double () in to_double()
126 TValue::to_int () in to_int()
149 TValue::get_len () in get_len()
156 TValue::to_str (char *str, size_t strsz) in to_str()
205 TValue::make_delta (TValue *v1, TValue *v2) in make_delta()
236 TValue::make_ratio (TValue *v1, TValue *v2) in make_ratio()
270 TValue::compare (TValue *v) in compare()
/netbsd-src/external/gpl3/binutils.old/dist/gprofng/src/
H A DHist_data.h58 TValue *value; // numeric values
116 TValue *get_real_value (TValue *res, int met_index, int row);
117 TValue *get_value (TValue *res, int met_index, int row);
118 TValue *get_value (TValue *res, int met_index, HistItem *hi);
195 size_t time_len (TValue *value, int clock);
199 HistItem *new_hist_item (Histable *obj, int itype, TValue *value);
200 HistItem *update_hist_item (HistItem *hi, TValue *value);
262 TValue *value; // numeric values
H A Ddbe_structs.h75 struct TValue struct
94 void make_delta (TValue *v1, TValue *v2); argument
95 void make_ratio (TValue *v1, TValue *v2);
96 int compare (TValue *v);
H A DModule.h134 Histable::Type type, TValue *ftotal, SourceFile *srcFile,
261 TValue *total;
262 TValue *maximum;
263 TValue *maximum_inc;
264 TValue *empty;
H A DPathTree.h48 static void make_deltas (int vtype, TValue *v1, TValue *v2);
49 static void make_ratios (int vtype, TValue *v1, TValue *v2);
263 ASN_METRIC_VAL (TValue& v, Slot& slot, NodeIdx idx) in ASN_METRIC_VAL()
286 ADD_METRIC_VAL (TValue& v, Slot& slot, NodeIdx idx) in ADD_METRIC_VAL()
308 SUB_METRIC_VAL (TValue& v, Slot& slot, NodeIdx idx) in SUB_METRIC_VAL()
H A DHist_data.cc50 value = new TValue[n]; in HistItem()
51 memset (value, 0, sizeof (TValue) * n); in HistItem()
189 TValue v1, v2; in sort_compare()
688 Hist_data::new_hist_item (Histable *obj, int itype, TValue *value) in new_hist_item()
781 TValue *thresh = &threshold->value[index]; in set_threshold()
782 TValue *mtotal = &total->value[index]; in set_threshold()
904 TValue res; in print_row()
917 TValue *v = get_value (&res, hist_metrics[i].indTimeVal, row); in print_row()
923 TValue *v = get_value (&res, i, row); in print_row()
948 TValue *v = get_real_value (&res, met_ind, row); in print_row()
[all …]
H A Dutil.cc103 TValue::to_double () in to_double()
126 TValue::to_int () in to_int()
149 TValue::get_len () in get_len()
156 TValue::to_str (char *str, size_t strsz) in to_str()
205 TValue::make_delta (TValue *v1, TValue *v2) in make_delta()
236 TValue::make_ratio (TValue *v1, TValue *v2) in make_ratio()
270 TValue::compare (TValue *v) in compare()

123