Branch: Tag:

2014-08-14

2014-08-14 10:22:53 by Per Hedbor <ph@opera.com>

Added F_PRIVATE_TYPED_GLOBAL.

Much like PRIVATE_GLOBAL, but handles typed svalues
(everything but int, function and object).

No assign yet.

688:    && !(id->identifier_flags & IDENTIFIER_NO_THIS_REF)    && !IDENTIFIER_IS_ALIAS(id->identifier_flags)    && IDENTIFIER_IS_VARIABLE(id->identifier_flags) -  && !ref->inherit_offset -  && id->run_time_type == PIKE_T_MIXED ) +  && !ref->inherit_offset)    {    /* fprintf( stderr, "private global %d\n", (INT32)id->func.offset ); */ -  +  if( id->run_time_type == PIKE_T_MIXED )    emit1(F_PRIVATE_GLOBAL, id->func.offset); -  +  else +  emit2(F_PRIVATE_TYPED_GLOBAL, id->func.offset, id->run_time_type);    }    else    emit1(F_GLOBAL, n);