Lines Matching defs:v

63 #define DUK__TVAL_SET_TAGGEDPOINTER(v,h,tag)  do { \  argument
67 #define DUK__TVAL_SET_TAGGEDPOINTER(v,h,tag) do { \ argument
72 #define DUK__TVAL_SET_TAGGEDPOINTER(v,h,tag) do { \ argument
81 #define DUK__TVAL_SET_LIGHTFUNC(v,fp,flags) do { \ argument
87 #define DUK__TVAL_SET_LIGHTFUNC(v,fp,flags) do { \ argument
94 #define DUK__TVAL_SET_LIGHTFUNC(v,fp,flags) do { \ argument
103 #define DUK__TVAL_SET_FASTINT(v,i) do { \ argument
107 #define DUK__TVAL_SET_FASTINT_U32(v,i) do { \ argument
112 #define DUK__TVAL_SET_FASTINT(v,i) do { \ argument
115 #define DUK__TVAL_SET_FASTINT_U32(v,i) do { \ argument
120 #define DUK__TVAL_SET_FASTINT_I32(v,i) do { \ argument
127 #define DUK__TVAL_GET_FASTINT(v) (((duk_int64_t) ((((duk_uint64_t) (v)->ui[DUK_DBL_IDX_UI0]) <… argument
129 #define DUK__TVAL_GET_FASTINT(v) ((((duk_int64_t) (v)->ull[DUK_DBL_IDX_ULL0]) << 16) >> 16) argument
131 #define DUK__TVAL_GET_FASTINT_U32(v) ((v)->ui[DUK_DBL_IDX_UI1]) argument
132 #define DUK__TVAL_GET_FASTINT_I32(v) ((duk_int32_t) (v)->ui[DUK_DBL_IDX_UI1]) argument
135 #define DUK_TVAL_SET_UNDEFINED(v) do { \ argument
138 #define DUK_TVAL_SET_UNUSED(v) do { \ argument
141 #define DUK_TVAL_SET_NULL(v) do { \ argument
145 #define DUK_TVAL_SET_BOOLEAN(v,val) DUK_DBLUNION_SET_HIGH32((v), (((duk_uint32_t) DUK_TAG_B… argument
147 #define DUK_TVAL_SET_NAN(v) DUK_DBLUNION_SET_NAN_FULL((v)) argument
151 #define DUK_TVAL_SET_DOUBLE(v,d) do { \ argument
157 #define DUK_TVAL_SET_FASTINT(v,i) DUK__TVAL_SET_FASTINT((v), (i)) argument
158 #define DUK_TVAL_SET_FASTINT_I32(v,i) DUK__TVAL_SET_FASTINT_I32((v), (i)) argument
159 #define DUK_TVAL_SET_FASTINT_U32(v,i) DUK__TVAL_SET_FASTINT_U32((v), (i)) argument
160 #define DUK_TVAL_SET_NUMBER_CHKFAST(v,d) duk_tval_set_number_chkfast((v), (d)) argument
161 #define DUK_TVAL_SET_NUMBER(v,d) DUK_TVAL_SET_DOUBLE((v), (d)) argument
162 #define DUK_TVAL_CHKFAST_INPLACE(v) do { \ argument
172 #define DUK_TVAL_SET_DOUBLE(v,d) do { \ argument
178 #define DUK_TVAL_SET_FASTINT(v,i) DUK_TVAL_SET_DOUBLE((v), (duk_double_t) (i)) /* XXX: f… argument
179 #define DUK_TVAL_SET_FASTINT_I32(v,i) DUK_TVAL_SET_DOUBLE((v), (duk_double_t) (i)) argument
180 #define DUK_TVAL_SET_FASTINT_U32(v,i) DUK_TVAL_SET_DOUBLE((v), (duk_double_t) (i)) argument
181 #define DUK_TVAL_SET_NUMBER_CHKFAST(v,d) DUK_TVAL_SET_DOUBLE((v), (d)) argument
182 #define DUK_TVAL_SET_NUMBER(v,d) DUK_TVAL_SET_DOUBLE((v), (d)) argument
183 #define DUK_TVAL_CHKFAST_INPLACE(v) do { } while (0) argument
186 #define DUK_TVAL_SET_LIGHTFUNC(v,fp,flags) DUK__TVAL_SET_LIGHTFUNC((v), (fp), (flags)) argument
187 #define DUK_TVAL_SET_STRING(v,h) DUK__TVAL_SET_TAGGEDPOINTER((v), (h), DUK_TAG_STRING) argument
188 #define DUK_TVAL_SET_OBJECT(v,h) DUK__TVAL_SET_TAGGEDPOINTER((v), (h), DUK_TAG_OBJECT) argument
189 #define DUK_TVAL_SET_BUFFER(v,h) DUK__TVAL_SET_TAGGEDPOINTER((v), (h), DUK_TAG_BUFFER) argument
190 #define DUK_TVAL_SET_POINTER(v,p) DUK__TVAL_SET_TAGGEDPOINTER((v), (p), DUK_TAG_POINTER) argument
192 #define DUK_TVAL_SET_TVAL(v,x) do { *(v) = *(x); } while (0) argument
195 #define DUK_TVAL_GET_BOOLEAN(v) ((int) (v)->us[DUK_DBL_IDX_US1]) argument
197 #define DUK_TVAL_GET_DOUBLE(v) ((v)->d) argument
198 #define DUK_TVAL_GET_FASTINT(v) DUK__TVAL_GET_FASTINT((v)) argument
199 #define DUK_TVAL_GET_FASTINT_U32(v) DUK__TVAL_GET_FASTINT_U32((v)) argument
200 #define DUK_TVAL_GET_FASTINT_I32(v) DUK__TVAL_GET_FASTINT_I32((v)) argument
201 #define DUK_TVAL_GET_NUMBER(v) duk_tval_get_number_packed((v)) argument
203 #define DUK_TVAL_GET_NUMBER(v) ((v)->d) argument
204 #define DUK_TVAL_GET_DOUBLE(v) ((v)->d) argument
206 #define DUK_TVAL_GET_LIGHTFUNC(v,out_fp,out_flags) do { \ argument
210 #define DUK_TVAL_GET_LIGHTFUNC_FUNCPTR(v) ((duk_c_function) ((v)->ui[DUK_DBL_IDX_UI1])) argument
211 #define DUK_TVAL_GET_LIGHTFUNC_FLAGS(v) (((int) (v)->ui[DUK_DBL_IDX_UI0]) & 0xffffUL) argument
212 #define DUK_TVAL_GET_STRING(v) ((duk_hstring *) (v)->vp[DUK_DBL_IDX_VP1]) argument
213 #define DUK_TVAL_GET_OBJECT(v) ((duk_hobject *) (v)->vp[DUK_DBL_IDX_VP1]) argument
214 #define DUK_TVAL_GET_BUFFER(v) ((duk_hbuffer *) (v)->vp[DUK_DBL_IDX_VP1]) argument
215 #define DUK_TVAL_GET_POINTER(v) ((void *) (v)->vp[DUK_DBL_IDX_VP1]) argument
216 #define DUK_TVAL_GET_HEAPHDR(v) ((duk_heaphdr *) (v)->vp[DUK_DBL_IDX_VP1]) argument
219 #define DUK_TVAL_GET_TAG(v) ((duk_small_uint_t) (v)->us[DUK_DBL_IDX_US0]) argument
221 #define DUK_TVAL_IS_UNDEFINED(v) (DUK_TVAL_GET_TAG((v)) == DUK_TAG_UNDEFINED) argument
222 #define DUK_TVAL_IS_UNUSED(v) (DUK_TVAL_GET_TAG((v)) == DUK_TAG_UNUSED) argument
223 #define DUK_TVAL_IS_NULL(v) (DUK_TVAL_GET_TAG((v)) == DUK_TAG_NULL) argument
224 #define DUK_TVAL_IS_BOOLEAN(v) (DUK_TVAL_GET_TAG((v)) == DUK_TAG_BOOLEAN) argument
225 #define DUK_TVAL_IS_BOOLEAN_TRUE(v) ((v)->ui[DUK_DBL_IDX_UI0] == DUK_XTAG_BOOLEAN_TRUE) argument
226 #define DUK_TVAL_IS_BOOLEAN_FALSE(v) ((v)->ui[DUK_DBL_IDX_UI0] == DUK_XTAG_BOOLEAN_FALSE) argument
227 #define DUK_TVAL_IS_LIGHTFUNC(v) (DUK_TVAL_GET_TAG((v)) == DUK_TAG_LIGHTFUNC) argument
228 #define DUK_TVAL_IS_STRING(v) (DUK_TVAL_GET_TAG((v)) == DUK_TAG_STRING) argument
229 #define DUK_TVAL_IS_OBJECT(v) (DUK_TVAL_GET_TAG((v)) == DUK_TAG_OBJECT) argument
230 #define DUK_TVAL_IS_BUFFER(v) (DUK_TVAL_GET_TAG((v)) == DUK_TAG_BUFFER) argument
231 #define DUK_TVAL_IS_POINTER(v) (DUK_TVAL_GET_TAG((v)) == DUK_TAG_POINTER) argument
234 #define DUK_TVAL_IS_DOUBLE(v) (DUK_TVAL_GET_TAG((v)) <= 0xfff0UL) argument
235 #define DUK_TVAL_IS_FASTINT(v) (DUK_TVAL_GET_TAG((v)) == DUK_TAG_FASTINT) argument
236 #define DUK_TVAL_IS_NUMBER(v) (DUK_TVAL_GET_TAG((v)) <= 0xfff1UL) argument
238 #define DUK_TVAL_IS_NUMBER(v) (DUK_TVAL_GET_TAG((v)) <= 0xfff0UL) argument
239 #define DUK_TVAL_IS_DOUBLE(v) DUK_TVAL_IS_NUMBER((v)) argument
243 #define DUK_TVAL_IS_HEAP_ALLOCATED(v) (DUK_TVAL_GET_TAG((v)) >= DUK_TAG_STRING) argument
284 } v; member
346 #define DUK_TVAL_CHKFAST_INPLACE(v) do { \ argument
370 #define DUK_TVAL_CHKFAST_INPLACE(v) do { } while (0) argument
405 #define DUK_TVAL_SET_TVAL(v,x) do { *(v) = *(x); } while (0) argument
456 #define DUK_TVAL_IS_DOUBLE(v) DUK_TVAL_IS_NUMBER((v)) argument
487 #define DUK_TVAL_SET_BOOLEAN_TRUE(v) DUK_TVAL_SET_BOOLEAN(v, 1) argument
488 #define DUK_TVAL_SET_BOOLEAN_FALSE(v) DUK_TVAL_SET_BOOLEAN(v, 0) argument