Branch: Tag:

2014-08-07

2014-08-07 16:24:31 by Per Hedbor <ph@opera.com>

Only set IDENTIFIER_NO_THIS_REF for object and function variables

5468:    INT32 flags)   {    int n, run_time_type; +  int no_this = 0;      #ifdef PIKE_DEBUG    if(name!=debug_findstring(name))
5597:       switch(run_time_type)    { -  case T_INT: +     case T_OBJECT:    /* Make place for the object subtype. */    case T_FUNCTION: -  +  no_this = 1; +  case T_INT:    case T_PROGRAM:    run_time_type = T_MIXED;    }
5611:    alignof_variable(run_time_type),0),    run_time_type);    +  if( no_this )    ID_FROM_INT(Pike_compiler->new_program, n)->identifier_flags |= IDENTIFIER_NO_THIS_REF;       return n;