pike.git / src / program.c

version» Context lines:

pike.git/src/program.c:4010:    {    struct reference *refp;    refp = np->identifier_references + d;       if ((refp->inherit_offset == funp.inherit_offset) &&    (refp->identifier_offset == funp.identifier_offset) &&    ((refp->id_flags | ID_USED) == (funp.id_flags | ID_USED)))    return d;    }    +  funp.run_time_type = PIKE_T_UNKNOWN; +     if(q)    low_add_to_identifier_references(q,funp);    else    add_to_identifier_references(funp);    /* NOTE: np->num_identifier_references has been increased by one by    * {low_,}add_to_identifier_references().    */   #ifdef PIKE_DEBUG    if (num_id_refs != np->num_identifier_references-1) {    fatal("Unexpected number of identifier references: %d != %d\n",
pike.git/src/program.c:4836: Inside #if defined(PROFILING)
   dummy.self_time=0;    dummy.num_calls=0;    dummy.total_time=0;   #endif       if (flags & ID_PRIVATE) flags |= ID_INLINE;       ref.id_flags=flags;    ref.identifier_offset=Pike_compiler->new_program->num_identifiers;    ref.inherit_offset=0; +  ref.run_time_type = PIKE_T_UNKNOWN;       debug_add_to_identifiers(dummy);       n = Pike_compiler->new_program->num_identifier_references;    add_to_identifier_references(ref);       return n;   }      PMOD_EXPORT int define_alias(struct pike_string *name, struct pike_type *type,
pike.git/src/program.c:4967:    dummy.total_time=0;   #endif       if (run_time_type == PIKE_T_FREE) dummy.func.offset = -1;       if (flags & ID_PRIVATE) flags |= ID_INLINE;       ref.id_flags=flags;    ref.identifier_offset=Pike_compiler->new_program->num_identifiers;    ref.inherit_offset=0; +  ref.run_time_type = PIKE_T_UNKNOWN;       add_to_variable_index(ref.identifier_offset);       debug_add_to_identifiers(dummy);       n=Pike_compiler->new_program->num_identifier_references;    add_to_identifier_references(ref);       return n;   }
pike.git/src/program.c:5404: Inside #if 1
   dummy.func.const_info.offset = -1;    dummy.opt_flags=0;    }   #endif       if (flags & ID_PRIVATE) flags |= ID_INLINE;       ref.id_flags=flags;    ref.identifier_offset=Pike_compiler->new_program->num_identifiers;    ref.inherit_offset=0; +  ref.run_time_type = PIKE_T_UNKNOWN;      #ifdef PROFILING    dummy.self_time=0;    dummy.num_calls=0;    dummy.total_time=0;   #endif       debug_add_to_identifiers(dummy);       if(n != -1)
pike.git/src/program.c:5972:       debug_add_to_identifiers(fun);       if (flags & ID_PRIVATE) flags |= ID_INLINE;       ref.id_flags = flags;    ref.identifier_offset = i;    ref.inherit_offset = 0;    }    +  ref.run_time_type = PIKE_T_UNKNOWN; +     /* Add the reference. */       i=Pike_compiler->new_program->num_identifier_references;    add_to_identifier_references(ref);      #ifdef PROGRAM_BUILD_DEBUG    fprintf(stderr, "%.*sadded new definition #%d\n",    c->compilation_depth, "", i);   #endif   
pike.git/src/program.c:6014: Inside #if 0
   if (((r->id_flags & (ID_PARENT_REF|ID_PROTECTED|ID_PRIVATE|ID_HIDDEN)) ==    ID_PARENT_REF|ID_PROTECTED|ID_PRIVATE|ID_HIDDEN) &&    (r->identifier_offset == i) &&    (!(r->inherit_offset))) {    return j;    }    }    ref.id_flags = ID_PARENT_REF|ID_PROTECTED|ID_PRIVATE|ID_HIDDEN|ID_INLINE;    ref.identifier_offset = i;    ref.inherit_offset = 0; +  ref.run_time_type = PIKE_T_UNKNOWN;    add_to_identifier_references(ref);    state->new_program->flags |= PROGRAM_USES_PARENT | PROGRAM_NEEDS_PARENT;    return j;   }      #endif /* 0 */      /* Identifier lookup    *    * The search algorithm has changed several times during Pike 7.3.