Branch: Tag:

2008-02-28

2008-02-28 10:35:59 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Updated to new Pike_fp->context.

Rev: src/code/ia32.c:1.47
Rev: src/code/ppc32.c:1.42
Rev: src/code/ppc64.c:1.2
Rev: src/code/sparc.c:1.49

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: sparc.c,v 1.48 2006/09/08 17:20:46 grubba Exp $ + || $Id: sparc.c,v 1.49 2008/02/28 10:35:59 grubba Exp $   */      /*
517:    OFFSETOF(object, refs), 1);    /* add %i0, 1, %i0 */    SPARC_ADD(SPARC_REG_I0, SPARC_REG_I0, 1, 1); +  /* lduw [ %pike_fp, %offset(pike_frame, context) ], %i1 */ +  PIKE_LDPTR(SPARC_REG_PIKE_OBJ, SPARC_REG_PIKE_I1, +  OFFSETOF(pike_frame, context), 1);    /* stw %i0, [ %pike_obj, %offset(object, refs) ] */    SPARC_STW(SPARC_REG_I0, SPARC_REG_PIKE_OBJ,    OFFSETOF(object, refs), 1); -  /* lduh [ %pike_fp, %offset(pike_frame, context.identifier_level ], %i1 */ -  SPARC_LDUH(SPARC_REG_I1, SPARC_REG_PIKE_FP, -  OFFSETOF(pike_frame, context.identifier_level), 1); +  /* lduh [ %pike_fp, %offset(inherit, identifier_level ], %i1 */ +  SPARC_LDUH(SPARC_REG_I1, SPARC_REG_I1, +  OFFSETOF(inherit, identifier_level), 1);    SET_REG(SPARC_REG_I2, (no & 0xffff) | (PIKE_T_FUNCTION << 16));    /* add %i1, %i2, %i1 */    SPARC_ADD(SPARC_REG_I1, SPARC_REG_I1, SPARC_REG_I2, 0);