Lines Matching defs:b_instr

241     struct instr *b_instr;
247 /* length of instruction array (b_instr) */
696 if (block->b_instr != NULL) {
716 if (b->b_instr)
717 PyObject_Free((void *)b->b_instr);
853 result->b_instr[n] = block->b_instr[i];
861 b_instr array. Resizes the b_instr as necessary.
869 if (b->b_instr == NULL) {
870 b->b_instr = (struct instr *)PyObject_Calloc(
872 if (b->b_instr == NULL) {
895 (void *)b->b_instr, newsize);
900 b->b_instr = tmp;
901 memset((char *)b->b_instr + oldsize, 0, newsize - oldsize);
1263 struct instr *i = &b->b_instr[off];
1508 struct instr *i = &b->b_instr[off];
1550 struct instr *i = &b->b_instr[off];
7184 struct instr *instr = &b->b_instr[i];
7277 size += instr_size(&b->b_instr[i]);
7361 struct instr *instr = &b->b_instr[i];
7431 struct instr *instr = &b->b_instr[i];
7508 struct instr *instr = &b->b_instr[i];
7708 struct instr *last = &b->b_instr[b->b_iused-1];
7776 struct instr *instr = &b->b_instr[i];
8100 if (b->b_instr) {
8104 dump_instr(b->b_instr + i);
8166 block->b_instr[i] = block->b_instr[i-1];
8168 block->b_instr[pos] = *instr;
8280 struct instr *last = &b->b_instr[b->b_iused-1];
8284 assert(b->b_instr[i].i_lineno < 0);
8286 b->b_instr[i].i_lineno = lineno;
8319 struct instr *inst = &b->b_instr[i];
8399 if (entryblock->b_instr && entryblock->b_instr->i_lineno) {
8400 c->u->u_firstlineno = entryblock->b_instr->i_lineno;
8464 if (!assemble_emit(&a, &b->b_instr[j]))
8472 if (!assemble_emit_location(&a, &b->b_instr[j]))
8605 struct instr *instructions = &block->b_instr[*ix];
8709 struct instr *instruction = &block->b_instr[i];
8735 struct instr *swap = &block->b_instr[i];
8749 int lineno = block->b_instr[j].i_lineno;
8759 int store_j = STORES_TO(block->b_instr[j]);
8760 int store_k = STORES_TO(block->b_instr[k]);
8766 int store_idx = STORES_TO(block->b_instr[idx]);
8775 struct instr temp = block->b_instr[j];
8776 block->b_instr[j] = block->b_instr[k];
8777 block->b_instr[k] = temp;
8814 struct instr *inst = &bb->b_instr[i];
8816 int nextop = i+1 < bb->b_iused ? bb->b_instr[i+1].i_opcode : 0;
8822 target = &inst->i_target->b_instr[0];
8851 bb->b_instr[i+1].i_opcode = JUMP;
8855 bb->b_instr[i+1].i_opcode = NOP;
8871 bb->b_instr[i+1].i_opcode = JUMP;
8876 bb->b_instr[i+1].i_opcode = NOP;
8884 int jump_op = i+2 < bb->b_iused ? bb->b_instr[i+2].i_opcode : 0;
8886 unsigned char nextarg = bb->b_instr[i+1].i_oparg;
8888 bb->b_instr[i+1].i_opcode = NOP;
8889 bb->b_instr[i+2].i_opcode = nextarg ^ (jump_op == POP_JUMP_IF_FALSE) ?
8903 if (nextop == UNPACK_SEQUENCE && oparg == bb->b_instr[i+1].i_oparg) {
8907 bb->b_instr[i+1].i_opcode = NOP;
8912 bb->b_instr[i+1].i_opcode = SWAP;
9050 if (bb->b_instr[i].i_lineno > 0) {
9065 struct instr *last = &bb->b_instr[bb->b_iused-1];
9083 bb->b_instr[index] = to_copy->b_instr[i];
9096 int lineno = bb->b_instr[src].i_lineno;
9097 if (bb->b_instr[src].i_opcode == NOP) {
9108 int next_lineno = bb->b_instr[src+1].i_lineno;
9113 COPY_INSTR_LOC(bb->b_instr[src], bb->b_instr[src+1]);
9124 if (lineno == next->b_instr[0].i_lineno) {
9132 bb->b_instr[dest] = bb->b_instr[src];
9146 assert(!IS_ASSEMBLER_OPCODE(bb->b_instr[i].i_opcode));
9147 switch(bb->b_instr[i].i_opcode) {
9170 while (bb->b_instr[i].i_target->b_iused == 0) {
9171 bb->b_instr[i].i_target = bb->b_instr[i].i_target->b_next;
9198 struct instr *instr = &b->b_instr[i];
9228 if (is_jump(&b->b_instr[b->b_iused-1])) {
9229 basicblock *target = b->b_instr[b->b_iused-1].i_target;
9233 b->b_instr[b->b_iused-1].i_target = target;
9262 if (b->b_instr[i].i_lineno < 0) {
9263 COPY_INSTR_LOC(prev_instr, b->b_instr[i]);
9266 COPY_INSTR_LOC(b->b_instr[i], prev_instr);
9271 if (b->b_next->b_instr[0].i_lineno < 0) {
9272 COPY_INSTR_LOC(prev_instr, b->b_next->b_instr[0]);
9275 if (is_jump(&b->b_instr[b->b_iused-1])) {
9276 basicblock *target = b->b_instr[b->b_iused-1].i_target;
9278 if (target->b_instr[0].i_lineno < 0) {
9279 COPY_INSTR_LOC(prev_instr, target->b_instr[0]);
9332 struct instr *b_last_instr = &b->b_instr[b->b_iused - 1];
9361 if ((b->b_instr[i].i_opcode == LOAD_CONST ||
9362 b->b_instr[i].i_opcode == KW_NAMES) &&
9363 b->b_instr[i].i_oparg > max_const_index) {
9364 max_const_index = b->b_instr[i].i_oparg;
9385 if (b->b_instr[i].i_lineno >= 0) {
9407 if (b->b_iused > 0 && is_jump(&b->b_instr[b->b_iused-1])) {
9408 basicblock *target = b->b_instr[b->b_iused-1].i_target;
9414 COPY_INSTR_LOC(b->b_instr[b->b_iused-1], new_target->b_instr[0]);
9415 b->b_instr[b->b_iused-1].i_target = new_target;
9435 COPY_INSTR_LOC(b->b_instr[b->b_iused-1], b->b_next->b_instr[0]);