pike.git / src / interpret.h

version» Context lines:

pike.git/src/interpret.h:19:    struct catch_context *prev;    JMP_BUF recovery;    struct svalue *save_expendible;    PIKE_OPCODE_T *next_addr;    ptrdiff_t continue_reladdr;   #ifdef PIKE_DEBUG    struct pike_frame *frame;   #endif   };    - struct Pike_interpreter { + struct Pike_interpreter_struct {    /* Swapped variables */    struct svalue *stack_pointer;    struct svalue *evaluator_stack;    struct svalue **mark_stack_pointer;    struct svalue **mark_stack;    struct pike_frame *frame_pointer;    JMP_BUF *recoveries;   #ifdef PIKE_THREADS    struct thread_state *thread_state;   #endif
pike.git/src/interpret.h:750:    * for some corner cases with loops without calls - not relevant in    * ordinary code. */   #define FAST_CHECK_THREADS_ON_BRANCH() fast_check_threads_etc (8)      #include "block_alloc_h.h"   /* Prototypes begin here */   void push_sp_mark(void);   ptrdiff_t pop_sp_mark(void);   void gc_mark_stack_external (struct pike_frame *frame,    struct svalue *stack_p, struct svalue *stack); - PMOD_EXPORT int low_init_interpreter(struct Pike_interpreter *interpreter); + PMOD_EXPORT int low_init_interpreter(struct Pike_interpreter_struct *interpreter);   PMOD_EXPORT void init_interpreter(void);   void lvalue_to_svalue_no_free(struct svalue *to,struct svalue *lval);   PMOD_EXPORT void assign_lvalue(struct svalue *lval,struct svalue *from);   PMOD_EXPORT union anything *get_pointer_if_this_type(struct svalue *lval, TYPE_T t);   void print_return_value(void);   void reset_evaluator(void);   struct backlog;   void dump_backlog(void);   BLOCK_ALLOC (catch_context, 0);   BLOCK_ALLOC(pike_frame,128);
pike.git/src/interpret.h:819:    struct pike_string *fun,    int args);   PMOD_EXPORT void apply(struct object *o, const char *fun, int args);   PMOD_EXPORT void apply_svalue(struct svalue *s, INT32 args);   PMOD_EXPORT void safe_apply_svalue (struct svalue *s, INT32 args, int handle_errors);   PMOD_EXPORT void apply_external(int depth, int fun, INT32 args);   void slow_check_stack(void);   PMOD_EXPORT void custom_check_stack(ptrdiff_t amount, const char *fmt, ...)    ATTRIBUTE((format (printf, 2, 3)));   PMOD_EXPORT void cleanup_interpret(void); - PMOD_EXPORT void low_cleanup_interpret(struct Pike_interpreter *interpreter); + PMOD_EXPORT void low_cleanup_interpret(struct Pike_interpreter_struct *interpreter);   void really_clean_up_interpret(void);   /* Prototypes end here */      /* These need to be after the prototypes,    * to avoid implicit declaration of mega_apply().    */   #ifdef __ECL   static INLINE void apply_low(struct object *o, ptrdiff_t fun, INT32 args)   {    mega_apply(APPLY_LOW, args, (void*)o, (void*)fun);
pike.git/src/interpret.h:876:    * we could reduce thread swapping to a pointer operation if    * we do something like:    * #define Pike_interpreter (*Pike_interpreter_pointer)    *    * Since global variables are usually accessed through indirection    * anyways, it might not make any speed differance.    *    * The above define could also be used to facilitate dynamic loading    * on Win32..    */ - PMOD_EXPORT extern struct Pike_interpreter Pike_interpreter; + PMOD_EXPORT extern struct Pike_interpreter_struct *Pike_interpreter_pointer; + #define Pike_interpreter (*Pike_interpreter_pointer)      #define Pike_sp Pike_interpreter.stack_pointer   #define Pike_fp Pike_interpreter.frame_pointer   #define Pike_mark_sp Pike_interpreter.mark_stack_pointer         #define CURRENT_STORAGE (dmalloc_touch(struct pike_frame *,Pike_fp)->current_storage)         #define PIKE_STACK_MMAPPED