| /plan9/sys/src/cmd/gs/src/ |
| H A D | istack.c | 33 private void init_block(ref_stack_t *pstack, const ref *pblock_array, 35 private int ref_stack_push_block(ref_stack_t *pstack, uint keep, uint add); 76 ref_stack_init(ref_stack_t *pstack, const ref *pblock_array, in ref_stack_init() argument 93 pstack->bot = body + bot_guard; in ref_stack_init() 94 pstack->p = pstack->bot - 1; in ref_stack_init() 95 pstack->top = pstack->p + avail; in ref_stack_init() 96 pstack->current = *pblock_array; in ref_stack_init() 97 pstack->extension_size = 0; in ref_stack_init() 98 pstack->extension_used = 0; in ref_stack_init() 100 make_int(&pstack->max_stack, avail); in ref_stack_init() [all …]
|
| H A D | istack.h | 66 int ref_stack_init(ref_stack_t *pstack, const ref *pblock_array, 72 void ref_stack_allow_expansion(ref_stack_t *pstack, bool expand); 75 void ref_stack_set_error_codes(ref_stack_t *pstack, int underflow_error, 82 int ref_stack_set_max_count(ref_stack_t *pstack, long nmax); 88 int ref_stack_set_margin(ref_stack_t *pstack, uint margin); 91 uint ref_stack_count(const ref_stack_t *pstack); 104 ref *ref_stack_index(const ref_stack_t *pstack, long index); 110 uint ref_stack_counttomark(const ref_stack_t *pstack); 116 int ref_stack_store_check(const ref_stack_t *pstack, ref *parray, 129 int ref_stack_store(const ref_stack_t *pstack, ref *parray, uint count, [all …]
|
| H A D | iscan.c | 440 #define pstack sstate.s_pstack in scan_token() macro 488 pstack = pstate->s_pstack; in scan_token() 600 if (pstack == 0) { /* outermost procedure */ in scan_token() 608 make_int(osp, pstack); in scan_token() 609 pstack = ref_stack_count_inline(&o_stack); in scan_token() 611 pdepth, (int)osp->value.intval, pstack); in scan_token() 624 if (pstack == 0) in scan_token() 628 uint size = ref_stack_count_inline(&o_stack) - pstack; in scan_token() 632 pdepth, pstack, in scan_token() 633 (pstack == pdepth ? 0 : in scan_token() [all …]
|
| H A D | iparam.c | 369 ref_stack_t *pstack = splist->pstack; in stack_param_write() local 370 s_ptr p = pstack->p; in stack_param_write() 372 if (pstack->top - p < 2) { in stack_param_write() 373 int code = ref_stack_push(pstack, 2); in stack_param_write() 377 *ref_stack_index(pstack, 1) = *pkey; in stack_param_write() 378 p = pstack->p; in stack_param_write() 380 pstack->p = p += 2; in stack_param_write() 400 ref_stack_index(splist->pstack, index + 1 + splist->skip); in stack_param_enumerate() 411 stack_param_list_write(stack_param_list * plist, ref_stack_t * pstack, in stack_param_list_write() argument 417 plist->pstack = pstack; in stack_param_list_write() [all …]
|
| H A D | zpacked.c | 85 make_packed_array(ref * parr, ref_stack_t * pstack, uint size, in make_packed_array() argument 105 pref = ref_stack_index(pstack, i - 1); in make_packed_array() 173 pref = ref_stack_index(pstack, i - 1); in make_packed_array() 242 ref_stack_pop(pstack, size); in make_packed_array()
|
| H A D | zvmem.c | 198 restore_check_stack(const ref_stack_t * pstack, const alloc_save_t * asave, in restore_check_stack() argument 203 ref_stack_enum_begin(&rsenum, pstack); in restore_check_stack() 234 if (alloc_name_is_since_save((const gs_memory_t *)pstack->memory, in restore_check_stack() 279 restore_fix_stack(ref_stack_t * pstack, const alloc_save_t * asave, in restore_fix_stack() argument 284 ref_stack_enum_begin(&rsenum, pstack); in restore_fix_stack()
|
| H A D | idebug.c | 259 const ref_stack_t * pstack, const char *msg) in debug_dump_stack() argument 264 for (i = ref_stack_count(pstack); i != 0;) { in debug_dump_stack() 265 const ref *p = ref_stack_index(pstack, --i); in debug_dump_stack() 268 dprintf2("%s at 0x%lx:\n", m, (ulong) pstack); in debug_dump_stack()
|
| H A D | idebug.h | 41 const ref_stack_t * pstack, const char *msg);
|
| H A D | iparam.h | 81 ref_stack_t *pstack; member
|
| H A D | zcontext.c | 525 values_older_than(const ref_stack_t * pstack, uint first, uint last, 732 values_older_than(const ref_stack_t * pstack, uint first, uint last, in values_older_than() argument 738 if (r_space(ref_stack_index(pstack, (long)i)) >= next_space) in values_older_than()
|
| H A D | interp.c | 675 copy_stack(i_ctx_t *i_ctx_p, const ref_stack_t * pstack, ref * arr) in copy_stack() argument 677 uint size = ref_stack_count(pstack); in copy_stack() 684 code = ref_stack_store(pstack, arr, size, 0, 1, true, idmemory, in copy_stack()
|