pike.git / src / interpret_functions.h

version» Context lines:

pike.git/src/interpret_functions.h: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: interpret_functions.h,v 1.167 2004/04/03 21:53:49 mast Exp $ + || $Id: interpret_functions.h,v 1.168 2004/05/20 20:13:38 grubba Exp $   */      /*    * Opcode definitions for the interpreter.    */      #include "global.h"      #undef CJUMP   #undef AUTO_BIGNUM_LOOP_TEST
pike.git/src/interpret_functions.h:2243:    SET_PROG_COUNTER(addr); \    new_frame->fun=Pike_fp->fun; \    DO_IF_PROFILING( new_frame->ident=Pike_fp->ident ); \    new_frame->current_storage=Pike_fp->current_storage; \    if(Pike_fp->scope) add_ref(new_frame->scope=Pike_fp->scope); \    add_ref(new_frame->current_object=Pike_fp->current_object); \    new_frame->context=Pike_fp->context; \    add_ref(new_frame->context.prog); \    if(new_frame->context.parent) \    add_ref(new_frame->context.parent); \ +  \ +  DO_IF_PROFILING({ \ +  new_frame->start_time = \ +  get_cpu_time() - Pike_interpreter.unlocked_time; \ +  new_frame->ident = Pike_fp->ident; \ +  new_frame->children_base = Pike_interpreter.accounted_time; \ +  new_frame->context.prog->identifiers[new_frame->ident].num_calls++; \ +  DO_IF_PROFILING_DEBUG({ \ +  fprintf(stderr, "%p{: Push at %" PRINT_CPU_TIME \ +  " %" PRINT_CPU_TIME "\n", \ +  Pike_interpreter.thread_state, new_frame->start_time, \ +  new_frame->children_base); \ +  }); \ +  }); \ +  \    Pike_fp=new_frame; \    new_frame->flags=PIKE_FRAME_RETURN_INTERNAL | XFLAGS; \    \    DO_IF_SECURITY(if(!CHECK_DATA_SECURITY(Pike_fp->current_object, \    SECURITY_BIT_NOT_SETUID)) \    SET_CURRENT_CREDS(Pike_fp->current_object->prot)); \    \    FETCH; \    JUMP_DONE; \   }while(0)