Branch: Tag:

2008-02-27

2008-02-27 23:59:24 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Changed the definition of Pike_fp->context to a pointer.
This should reduce the overhead for apply() somewhat.

Rev: src/apply_low.h:1.33
Rev: src/builtin.cmod:1.194
Rev: src/interpret.c:1.386
Rev: src/interpret.h:1.171
Rev: src/interpret_functions.h:1.200
Rev: src/modules/Gmp/mpz_glue.c:1.171
Rev: src/object.c:1.282
Rev: src/object.h:1.93
Rev: src/opcodes.c:1.170
Rev: src/operators.c:1.227
Rev: src/program.c:1.653

2:   || 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.169 2008/01/28 18:06:16 grubba Exp $ + || $Id: opcodes.c,v 1.170 2008/02/27 23:59:16 grubba Exp $   */      #include "global.h"
322:      const char *get_f_name(int n)   { -  if (Pike_fp && Pike_fp->context.prog) -  return low_get_f_name(n, Pike_fp->context.prog); +  if (Pike_fp && Pike_fp->context) +  return low_get_f_name(n, Pike_fp->context->prog);    return low_get_f_name(n, NULL);   }