Branch: Tag:

2001-08-31

2001-08-31 07:19:19 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

new opcodes: mark&const0, mark&const1 (FIXME: machine code generators should probably inline these opcodes)

Rev: src/interpret_functions.h:1.90
Rev: src/peep.in:1.61

1:   /* -  * $Id: interpret_functions.h,v 1.89 2001/08/30 18:30:42 hubbe Exp $ +  * $Id: interpret_functions.h,v 1.90 2001/08/31 07:19:18 hubbe Exp $    *    * Opcode definitions for the interpreter.    */
166:    push_int(1);   });    +  + OPCODE0(F_MARK_AND_CONST0, "mark & 0", { +  *(Pike_mark_sp++)=Pike_sp; +  push_int(0); + }); +  + OPCODE0(F_MARK_AND_CONST1, "mark & 1", { +  *(Pike_mark_sp++)=Pike_sp; +  push_int(1); + }); +    OPCODE0(F_CONST_1,"push -1", {    push_int(-1);   });