pike.git / src / interpret.c

version» Context lines:

pike.git/src/interpret.c:1:   /*\   ||| This file a part of Pike, and is copyright by Fredrik Hubinette   ||| Pike is distributed as GPL (General Public License)   ||| See the files COPYING and DISCLAIMER for more information.   \*/   /**/   #include "global.h" - RCSID("$Id: interpret.c,v 1.231 2001/07/24 12:33:48 grubba Exp $"); + RCSID("$Id: interpret.c,v 1.232 2001/07/24 17:26:40 grubba Exp $");   #include "interpret.h"   #include "object.h"   #include "program.h"   #include "svalue.h"   #include "array.h"   #include "mapping.h"   #include "pike_error.h"   #include "language.h"   #include "stralloc.h"   #include "constants.h"
pike.git/src/interpret.c:1486:       if(num_locals > args)    clear_svalues(Pike_sp, num_locals - args);    Pike_sp += num_locals - args;       new_frame->num_locals=num_locals;    new_frame->num_args=num_args;    new_frame->save_mark_sp=Pike_mark_sp;    new_frame->mark_sp_base=Pike_mark_sp;    check_threads_etc(); -  new_frame->pc = pc; +  new_frame->pc = pc + #ifdef ENTRY_PROLOGUE_SIZE +  + ENTRY_PROLOGUE_SIZE + #endif /* ENTRY_PROLOGUE_SIZE */ +  ;    return 1;    }    }   #ifdef PROFILING   #ifdef HAVE_GETHRTIME    {    long long time_passed, time_in_children, self_time;    time_in_children= Pike_interpreter.accounted_time - Pike_fp->children_base;    time_passed = gethrtime() - Pike_interpreter.time_base - Pike_fp->start_time;    self_time=time_passed - time_in_children;
pike.git/src/interpret.c:1650:    fp->mark_sp_base-=freespace;    Pike_mark_sp-=freespace;    }   }         void mega_apply(enum apply_type type, INT32 args, void *arg1, void *arg2)   {    if(low_mega_apply(type, args, arg1, arg2))    { -  eval_instruction(Pike_fp->pc); +  eval_instruction(Pike_fp->pc + #ifdef ENTRY_PROLOGUE_SIZE +  - ENTRY_PROLOGUE_SIZE + #endif /* ENTRY_PROLOGUE_SIZE */ +  );    low_return();    }   }         /* Put catch outside of eval_instruction, so    * the setjmp won't affect the optimization of    * eval_instruction    */   static int o_catch(PIKE_OPCODE_T *pc)