pike.git / src / encode.c

version» Context lines:

pike.git/src/encode.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: encode.c,v 1.288 2009/08/09 13:09:58 grubba Exp $ + || $Id: encode.c,v 1.289 2009/08/17 11:42:15 grubba Exp $   */      #include "global.h"   #include "stralloc.h"   #include "pike_macros.h"   #include "object.h"   #include "constants.h"   #include "interpret.h"   #include "svalue.h"   #include "mapping.h"
pike.git/src/encode.c:3979: Inside #if defined(PIKE_USE_MACHINE_CODE)
   Pike_error("Bad instruction checksum: %d (expected %d)\n",    csum, instrs_checksum);    }    }   #endif /* PIKE_USE_MACHINE_CODE */       /* Decode program */    if (data->ptr + (int)local_num_program >= data->len) {    Pike_error("Failed to decode program. (string too short)\n");    } -  for (e=0; e<(int)local_num_program; e++) { -  PIKE_OPCODE_T opcode; -  MEMCPY(&opcode, data->data + data->ptr, sizeof(PIKE_OPCODE_T)); -  data->ptr += sizeof(PIKE_OPCODE_T); -  add_to_program(opcode); -  } +  low_add_many_to_program(Pike_compiler, +  (PIKE_OPCODE_T *)data->data + data->ptr, +  local_num_program);       /* Decode relocations */    for (e=0; e<(int)local_num_relocations; e++) {    size_t reloc;    decode_number(reloc, data);    CHECK_RELOC(reloc, (size_t) local_num_program);    add_to_relocations(reloc);    }       /* Perform relocation. */