Branch: Tag:

2003-02-16

2003-02-16 04:05:16 by Martin Stjernholm <mast@lysator.liu.se>

Cleaned up and wrote some helpful notes about the lvalue handling.

Rev: src/builtin.cmod:1.120
Rev: src/code/ia32.c:1.24
Rev: src/interpret.c:1.291
Rev: src/interpret_functions.h:1.138
Rev: src/object.c:1.225
Rev: src/pike_types.c:1.207
Rev: src/svalue.c:1.159
Rev: src/svalue.h:1.116

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.137 2003/02/15 14:59:35 grubba Exp $ + || $Id: interpret_functions.h,v 1.138 2003/02/16 03:59:57 mast Exp $   */      /*
408:          ref_push_object(loc.o); -  Pike_sp->type=T_LVALUE; +  Pike_sp->type=T_OBJ_INDEX;    Pike_sp->u.integer=arg1 + loc.inherit->identifier_level;    Pike_sp++;   });
450:   });      OPCODE1(F_LOCAL_LVALUE, "& local", 0, { -  Pike_sp[0].type = T_LVALUE; +  Pike_sp[0].type = T_SVALUE_PTR;    Pike_sp[0].u.lval = Pike_fp->locals + arg1;    Pike_sp[1].type = T_VOID;    Pike_sp += 2;
474:    f=f->scope;    if(!f) Pike_error("Lexical scope error.\n");    } -  Pike_sp[0].type=T_LVALUE; +  Pike_sp[0].type=T_SVALUE_PTR;    Pike_sp[0].u.lval=f->locals+arg1;    Pike_sp[1].type=T_VOID;    Pike_sp+=2;
724:   OPCODE1(F_GLOBAL_LVALUE, "& global", 0, {    ref_push_object(Pike_fp->current_object);    push_int(arg1 + Pike_fp->context.identifier_level); -  Pike_sp[-1].type = T_LVALUE; +  Pike_sp[-1].type = T_OBJ_INDEX;   });      OPCODE0(F_INC, "++x", 0, {