Branch: Tag:

2019-09-13

2019-09-13 12:32:20 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler: Use F_SWAP_STACK_LOCAL in some more places.

2586:    }       /* Call the resumption callback. */ -  emit1(F_MARK_AND_LOCAL, +  emit0(F_MARK); +  emit0(F_UNDEFINED); +  emit1(F_SWAP_STACK_LOCAL,    Pike_compiler->compiler_frame->generator_local + 3);    tmp1 = do_jump(F_BRANCH_AND_POP_WHEN_ZERO, -1);    emit1(F_LOCAL,
3044:    Pike_compiler->compiler_frame->generator_local + 1);       /* Emit the state-machine switch for the generator. */ -  emit1(F_LOCAL, Pike_compiler->compiler_frame->generator_local); +     emit1(F_NUMBER, -1); -  emit1(F_ASSIGN_LOCAL_AND_POP, -  Pike_compiler->compiler_frame->generator_local); +  emit1(F_SWAP_STACK_LOCAL, Pike_compiler->compiler_frame->generator_local);    generator_switch = emit1(F_SWITCH, 0);    emit1(F_ALIGN, sizeof(INT32));