Branch: Tag:

2017-03-19

2017-03-19 15:41:09 by Arne Goedeke <el@laramies.com>

Interpreter: merged callsite_set_args into callsite_init

2071:   void *lower_mega_apply( INT32 args, struct object *o, ptrdiff_t fun )   {    struct pike_callsite C; -  callsite_init(&C); -  callsite_set_args(&C, args); +  callsite_init(&C, args);    callsite_resolve_fun(&C, o, fun);    if (C.type == CALLTYPE_PIKEFUN) {    FAST_CHECK_THREADS_ON_CALL();
2113:   {    struct pike_callsite C;    -  callsite_init(&C); -  callsite_set_args(&C, args); +  callsite_init(&C, args);       switch (type) {    case APPLY_STACK:
2148:    struct pike_frame *frame = Pike_fp;    struct pike_callsite C;    -  callsite_init(&C); -  callsite_set_args(&C, args); +  callsite_init(&C, args);       /* We can reuse the current frame, so we set it into C here    * to allow callsite_resolve_* to pick it up
2199:    struct pike_frame *frame = Pike_fp;    struct pike_callsite C;    -  callsite_init(&C); -  callsite_set_args(&C, args); +  callsite_init(&C, args);       if (!(frame->flags & PIKE_FRAME_NO_REUSE) && frame->refs == 1) {    C.frame = Pike_fp;
2772:    ptrdiff_t expected_stack=Pike_sp-args+1 - Pike_interpreter.evaluator_stack;    struct pike_callsite C;    -  callsite_init(&C); -  callsite_set_args(&C, args); +  callsite_init(&C, args);    callsite_resolve_svalue(&C, s);    callsite_prepare(&C);    callsite_execute(&C);