pike.git / src / opcodes.c

version» Context lines:

pike.git/src/opcodes.c:322:   #define OPCODE0_TAILBRANCH(OP,DESC,FLAGS) OPCODE0_BRANCH(OP,DESC,FLAGS)   #define OPCODE1_TAILBRANCH(OP,DESC,FLAGS) OPCODE1_BRANCH(OP,DESC,FLAGS)   #define OPCODE2_TAILBRANCH(OP,DESC,FLAGS) OPCODE2_BRANCH(OP,DESC,FLAGS)      #define OPCODE_NOCODE(DESC, OP, FLAGS) { DESC, FLAGS NULLADDR },      const struct instr instrs[] = {    { "offset", 0 NULLADDR },   #include "opcode_list.h"   }; - #ifdef PIKE_USE_MACHINE_CODE - size_t instrs_checksum; - #endif /* PIKE_USE_MACHINE_CODE */ +       #ifdef PIKE_DEBUG   unsigned long pike_instrs_compiles[F_MAX_OPCODE-F_OFFSET];      const char *low_get_f_name(int n, struct program *p)   {    static char buf[30];       if (n<F_MAX_OPCODE)    {
pike.git/src/opcodes.c:426: Inside #if defined(PIKE_DEBUG)
   Pike_fatal("Instruction out of bounds.\n");    }       name = instrs[token].name;       if (name && name != word) {    Pike_fatal("Wrong instruction name: %s vs. %s\n", name, word);    }    }   #endif -  - #ifdef PIKE_USE_MACHINE_CODE -  instrs_checksum = hashmem((const unsigned char*)instrs, sizeof(instrs), -  sizeof(struct instr)); -  /* fprintf(stderr, "Instruction checksum: %d\n", instrs_checksum); */ - #endif /* PIKE_USE_MACHINE_CODE */ +    }      void exit_opcodes(void)   {   #ifdef PIKE_DEBUG    if(p_flag)    {    extern void present_constant_profiling(void);    int e;    present_constant_profiling();