Lines Matching refs:ip
435 BcInstPtr ip;
474 ip.func = BC_PROG_READ;
475 ip.idx = 0;
476 ip.len = p->results.len;
482 bc_vec_push(&p->stack, &ip);
1069 BcInstPtr ip;
1077 ip.idx = 0;
1078 ip.func = bc_program_index(code, idx);
1079 f = bc_vec_item(&p->fns, ip.func);
1084 ip.len = p->results.len - nparams;
1131 bc_vec_push(&p->stack, &ip);
1140 BcInstPtr *ip = bc_vec_top(&p->stack);
1141 size_t i, nops = p->results.len - ip->len;
1144 assert(BC_PROG_STACK(&p->results, ip->len + (inst == BC_INST_RET)));
1146 f = bc_vec_item(&p->fns, ip->func);
1491 BcInstPtr ip;
1571 ip.idx = 0;
1572 ip.len = p->results.len;
1573 ip.func = fidx;
1583 else bc_vec_push(&p->tail_calls, &ip.idx);
1585 bc_vec_push(&p->stack, &ip);
1638 BcInstPtr *ip;
1647 ip = bc_vec_top(&p->stack);
1648 bc_program_setVecs(p, (BcFunc*) bc_vec_item(&p->fns, ip->func));
1727 BcInstPtr ip;
1735 memset(&ip, 0, sizeof(BcInstPtr));
1787 bc_vec_push(&p->stack, &ip);
1797 BcInstPtr *ip;
1810 ip = bc_vec_top(&p->stack);
1812 memset(ip, 0, sizeof(BcInstPtr));
1826 BcInstPtr *ip = bc_vec_top(&p->stack);
1827 BcFunc *func = (BcFunc*) bc_vec_item(&p->fns, ip->func);
1843 while (ip->idx < func->code.len) {
1847 uchar inst = (uchar) code[(ip->idx)++];
1863 idx = bc_program_index(code, &ip->idx);
1871 ip->idx = *addr;
1881 bc_program_call(p, code, &ip->idx);
1883 ip = bc_vec_top(&p->stack);
1884 func = bc_vec_item(&p->fns, ip->func);
1912 ip = bc_vec_top(&p->stack);
1913 func = bc_vec_item(&p->fns, ip->func);
1943 ip = bc_vec_top(&p->stack);
1944 func = bc_vec_item(&p->fns, ip->func);
1974 bc_program_pushVar(p, code, &ip->idx, false, false);
1983 bc_program_pushArray(p, code, &ip->idx, inst);
2017 bc_program_const(p, code, &ip->idx);
2044 r.d.loc.loc = bc_program_index(code, &ip->idx);
2127 ip = bc_vec_top(&p->stack);
2128 func = bc_vec_item(&p->fns, ip->func);
2150 bc_program_execStr(p, code, &ip->idx, cond, func->code.len);
2151 ip = bc_vec_top(&p->stack);
2152 func = bc_vec_item(&p->fns, ip->func);
2216 ip = bc_vec_top(&p->stack);
2217 func = bc_vec_item(&p->fns, ip->func);
2233 bc_program_pushVar(p, code, &ip->idx, true, copy);
2239 idx = bc_program_index(code, &ip->idx);
2248 ip = bc_vec_top(&p->stack);
2249 func = bc_vec_item(&p->fns, ip->func);
2337 BcInstPtr ip;
2342 ip.idx = ip.len = 0;
2343 ip.func = i;
2345 f = bc_vec_item(&p->fns, ip.func);
2348 bc_vm_printf("func[%zu]:\n", ip.func);
2349 while (ip.idx < f->code.len) bc_program_printInst(p, code, &ip.idx);