pike.git / src / opcodes.c

version» Context lines:

pike.git/src/opcodes.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: opcodes.c,v 1.168 2007/01/10 17:15:30 grubba Exp $ + || $Id: opcodes.c,v 1.169 2008/01/28 18:06:16 grubba Exp $   */      #include "global.h"   #include "constants.h"   #include "interpret.h"   #include "opcodes.h"   #include "pike_embed.h"      #ifdef INSTR_PROFILING   
pike.git/src/opcodes.c:277:   { "for", F_FOR,0 NULLADDR },      { "pointer", F_POINTER, I_ISPOINTER NULLADDR },   { "data", F_DATA, I_DATA NULLADDR },   { "byte", F_BYTE, I_DATA NULLADDR },   { "lvalue_list", F_LVALUE_LIST,0 NULLADDR },   { "label", F_LABEL,I_HASARG NULLADDR },   { "align", F_ALIGN, I_HASARG NULLADDR },   { "nop", F_NOP,0 NULLADDR },   { "entry", F_ENTRY,0 NULLADDR }, + { "filename", F_FILENAME, 0 NULLADDR }, + { "line", F_LINE, 0 NULLADDR }, + { "get/set", F_GET_SET, 0 NULLADDR },   { "function start", F_START_FUNCTION,0 NULLADDR },   { "notreached!", F_NOTREACHED, 0 NULLADDR },   };      struct instr instrs[F_MAX_INSTR - F_OFFSET];   #ifdef PIKE_USE_MACHINE_CODE   size_t instrs_checksum;   #endif /* PIKE_USE_MACHINE_CODE */      const char *low_get_f_name(int n, struct program *p)   {    static char buf[30];       if (n<F_MAX_OPCODE)    { -  if ((n >= 0) && instrs[n-F_OFFSET].name) +  if ((n >= F_OFFSET) && instrs[n-F_OFFSET].name)    return instrs[n-F_OFFSET].name;    sprintf(buf, "<OTHER %d>", n);    return buf;    }       if(p &&    (int)p->num_constants > (int)(n-F_MAX_OPCODE) &&    p->constants[n-F_MAX_OPCODE].sval.type==T_FUNCTION &&    (p->constants[n-F_MAX_OPCODE].sval.subtype == FUNCTION_BUILTIN) &&    p->constants[n-F_MAX_OPCODE].sval.u.efun) {