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.194 2001/05/11 11:39:04 grubba Exp $"); + RCSID("$Id: interpret.c,v 1.195 2001/05/11 12:11:05 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:1124: Inside #if defined(PIKE_DEBUG)
   ref = p->identifier_references + fun;   #ifdef PIKE_DEBUG    if(ref->inherit_offset>=p->num_inherits)    fatal("Inherit offset out of range in program.\n");   #endif       /* init a new evaluation pike_frame */    new_frame=alloc_pike_frame();   #ifdef PROFILING   #ifdef HAVE_GETHRTIME -  new_frame->>children_base = Pike_interpreter.accounted_time; +  new_frame->children_base = Pike_interpreter.accounted_time;    new_frame->start_time = gethrtime() - Pike_interpreter.time_base;   #endif   #endif    debug_malloc_touch(new_frame);       new_frame->next = Pike_fp;    new_frame->current_object = o;    new_frame->context = p->inherits[ ref->inherit_offset ];       function = new_frame->context.prog->identifiers + ref->identifier_offset;
pike.git/src/interpret.c:1380:    Pike_mark_sp=Pike_fp->save_mark_sp;      #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_interpreter.accounted_time+=self_time; + #if 0 +  /* FIXME: How to get at function? */    function->total_time=Pike_fp->self_time_base + (INT32)(time_passed /1000);    function->self_time+=(INT32)( self_time /1000); -  + #endif /* 0 */    }   #endif   #endif       POP_PIKE_FRAME();       if(save_sp+1 < Pike_sp)    {    assign_svalue(save_sp,Pike_sp-1);    pop_n_elems(Pike_sp-save_sp-1);