pike.git / src / opcodes.c

version» Context lines:

pike.git/src/opcodes.c:49: Inside #if defined(INSTR_PROFILING)
  {    int e;    struct instr_counter **tmp=&instr_counter_storage;       for(e=0;e<p_flag;e++)    {    tmp[0]->runned++;    tmp=tmp[0]->next + last_instruction[e];    last_instruction[e]=last_instruction[e+1];    } - #ifndef HAVE_COMPUTED_GOTO +     ((char **)(tmp))[0]++; - #endif /* !HAVE_COMPUTED_GOTO */ +     last_instruction[e]=instr;   }      void present_runned(struct instr_counter *d, int depth, int maxdepth)   {    int e;    if(depth == maxdepth)    {    long runned = depth < p_flag ? d->runned : (long)d;    if(!runned) return;
pike.git/src/opcodes.c:271: Inside #if defined(PIKE_DEBUG)
   return buf;   }      const char *get_f_name(int n)   {    if (Pike_fp && Pike_fp->context)    return low_get_f_name(n, Pike_fp->context->prog);    return low_get_f_name(n, NULL);   }    - #ifdef HAVE_COMPUTED_GOTO - const char *get_opcode_name(PIKE_INSTR_T n) - { -  int fcode; -  int low = 0; -  int high = F_MAX_OPCODE - F_OFFSET; -  static char buf[64]; -  -  if (!n) { -  return "<NULL opcode!>"; -  } -  -  while (low < high) { -  int mid = (low+high)/2; -  if (opcode_to_fcode[mid].opcode < n) { -  low = mid + 1; -  } else if (opcode_to_fcode[mid].opcode > n) { -  high = mid; -  } else { -  return get_f_name(opcode_to_fcode[mid].fcode); -  } -  } -  -  sprintf(buf, "<Unknown opcode 0x%p>", n); -  return buf; - } - #endif /* HAVE_COMPUTED_GOTO */ +    #endif /* PIKE_DEBUG */      const char *get_token_name(int n)   {    static char buf[30];    if (n<F_MAX_INSTR && instrs[n-F_OFFSET].name)    {    return instrs[n-F_OFFSET].name;    }else{    sprintf(buf, "<OTHER %d>", n);