Branch: Tag:

2008-06-28

2008-06-28 03:25:51 by Martin Stjernholm <mast@lysator.liu.se>

Don't flush the instruction cache over and over again for the same area in
eval_low when machine code is used. This should speed up constant evaluation
a bit (benchmarks run about 8% faster overall for ia32).

Rev: src/las.c:1.421
Rev: src/program.c:1.723
Rev: src/program.h:1.254

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: program.h,v 1.253 2008/06/27 11:29:50 grubba Exp $ + || $Id: program.h,v 1.254 2008/06/28 03:25:51 mast Exp $   */      #ifndef PROGRAM_H
605:    unsigned INT32 num_clones;   #endif /* PROFILING */    +  /* Normally the total allocated size. In Pike_compiler-> +  * malloc_size_program this is the number of elements in +  * Pike_compiler->program which have been made executable so far. */    size_t total_size;      #define FOO(NUMTYPE,TYPE,ARGTYPE,NAME) TYPE * NAME ;
975:    struct program *a, struct program *b);   PMOD_EXPORT void *parent_storage(int depth);   PMOD_EXPORT void change_compiler_compatibility(int major, int minor); + void make_area_executable (char *start, size_t len);   void make_program_executable(struct program *p);   /* Prototypes end here */