Branch: Tag:

2017-03-20

2017-03-20 21:34:13 by Arne Goedeke <el@laramies.com>

Interpreter: reactivate destructive apply_array

3435:    }    break;    case T_ARRAY: -  c->type = CALLTYPE_ARRAY; +  c->type = (s >= Pike_interpreter.evaluator_stack && s < Pike_sp) +  ? CALLTYPE_ARRAY_ON_STACK +  : CALLTYPE_ARRAY;    c->ptr = s->u.array;    break;    case PIKE_T_TYPE:
3567:    o_cast(c->ptr, compile_type_to_runtime_type(c->ptr));    break;    case CALLTYPE_ARRAY: -  /* TODO: reenable destructive operation */ -  apply_array(c->ptr, c->args, 0); +  case CALLTYPE_ARRAY_ON_STACK: +  apply_array(c->ptr, c->args, c->type == CALLTYPE_ARRAY_ON_STACK);    break;    case CALLTYPE_CLONE:    push_object(clone_object(c->ptr, c->args));