Branch: Tag:

2003-04-27

2003-04-27 17:52:42 by Martin Stjernholm <mast@lysator.liu.se>

Use stack_pop_keep_top and stack_pop_2_elems_keep_top where possible.

Rev: src/builtin_functions.c:1.488
Rev: src/interpret_functions.h:1.150
Rev: src/iterators.cmod:1.40
Rev: src/modules/files/stat.c:1.28
Rev: src/opcodes.c:1.144
Rev: src/operators.c:1.176

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: interpret_functions.h,v 1.149 2003/04/18 15:49:46 mast Exp $ + || $Id: interpret_functions.h,v 1.150 2003/04/27 17:52:42 mast Exp $   */      /*
725:    * no need to reassign it.    */    pop_stack(); -  stack_pop_n_elems_keep_top(2); +  stack_pop_2_elems_keep_top();    goto add_to_done;    }    }    f_add(2);    assign_lvalue(Pike_sp-3,Pike_sp-1); -  stack_pop_n_elems_keep_top(2); +  stack_pop_2_elems_keep_top();    add_to_done:    ; /* make gcc happy */   });
813:    push_int(1);    f_add(2);    assign_lvalue(Pike_sp-3, Pike_sp-1); -  stack_unlink(2); +  stack_pop_2_elems_keep_top();    }   });   
833:    push_int(1);    o_subtract();    assign_lvalue(Pike_sp-3, Pike_sp-1); -  stack_unlink(2); +  stack_pop_2_elems_keep_top();    }   });   
893:    f_add(2);    assign_lvalue(Pike_sp-4, Pike_sp-1);    pop_stack(); -  stack_unlink(2); +  stack_pop_2_elems_keep_top();    print_return_value();    }   });
916:    o_subtract();    assign_lvalue(Pike_sp-4, Pike_sp-1);    pop_stack(); -  stack_unlink(2); +  stack_pop_2_elems_keep_top();    print_return_value();    }   });
1897:    Pike_fp->flags |= PIKE_FRAME_RETURN_INTERNAL;    DO_JUMP_TO(Pike_fp->pc);    } -  stack_unlink(1); +  stack_pop_keep_top();    DONE;    }    }
2004:    unlink_previous_frame();    DO_JUMP_TO(addr);    } -  stack_unlink(1); +  stack_pop_keep_top();    DO_DUMB_RETURN;    }    }