Branch: Tag:

2016-09-05

2016-09-05 19:23:37 by Arne Goedeke <el@laramies.com>

Interpreter: set current_storage for pike functions

Currently, Pike_fp->current_storage was only initialized
for C functions. Initialize it for pike functions, aswell, to allow
the generated machine code to use it.

2122:    my_strcat(function->name->str);    do_trace_call(args, &save_buf);    } +  new_frame->current_storage = o->storage+context->storage_offset;    if( type == IDENTIFIER_C_FUNCTION )    {    new_frame->num_args = args;    new_frame->num_locals = args; -  new_frame->current_storage = o->storage+context->storage_offset; +     new_frame->pc = 0;   #ifndef PIKE_USE_MACHINE_CODE    FAST_CHECK_THREADS_ON_CALL();