pike.git / src / interpret.c

version» Context lines:

pike.git/src/interpret.c:2089:    * Application types:    *    * APPLY_STACK: Apply Pike_sp[-args] with args-1 arguments.    *    * APPLY_SVALUE: Apply the svalue at arg1, and adjust the stack    * to leave a return value.    *    * APPLY_SVALUE_STRICT: Apply the svalue at arg1, and don't adjust the    * stack for functions that return void.    * -  * APPLY_LOW: Apply function #arg2 in object arg1. -  * +     * Return values:    *    * Returns zero if the function was invalid or has been executed.    *    * Returns one if a frame has been set up to start the function    * with eval_instruction(Pike_fp->pc - ENTRY_PROLOGUE_SIZE). After    * eval_instruction() is done the frame needs to be removed by a call    * to low_return().    */   void* low_mega_apply(enum apply_type type, INT32 args, void *arg1, void *arg2)
pike.git/src/interpret.c:2116:    switch (type) {    case APPLY_STACK:    C.args--;    callsite_resolve_svalue(&C, Pike_sp - args);    break;    case APPLY_SVALUE_STRICT:    C.flags |= CALL_NEED_NO_RETVAL;    case APPLY_SVALUE:    callsite_resolve_svalue(&C, arg1);    break; -  case APPLY_LOW: -  Pike_fatal("Deprecated. Use lower_mega_apply instead.\n"); -  break; +     }       if (C.type == CALLTYPE_PIKEFUN) {    FAST_CHECK_THREADS_ON_CALL();    return C.ptr;    }       callsite_execute(&C);    callsite_free(&C);   
pike.git/src/interpret.c:2156:    switch (type) {    case APPLY_STACK:    C.args--;    callsite_resolve_svalue(&C, Pike_sp - args);    break;    case APPLY_SVALUE_STRICT:    C.flags |= CALL_NEED_NO_RETVAL;    case APPLY_SVALUE:    callsite_resolve_svalue(&C, arg1);    break; -  case APPLY_LOW: -  Pike_fatal("Deprecated. Use lower_mega_apply instead.\n"); -  break; +     }       /* If the same frame is still set, either    * - this is a pike function and we can just return    * the jmp target    * - or this is some other calltype which does not    * use a frame at all, so we just set it to NULL    */    if (C.frame == frame) {    if (C.type == CALLTYPE_PIKEFUN) {