Lines Matching defs:local_size
543 sljit_s32 fscratches, sljit_s32 fsaveds, sljit_s32 local_size)
549 CHECK(check_sljit_emit_enter(compiler, options, args, scratches, saveds, fscratches, fsaveds, local_size));
550 local_size);
552 local_size += GET_SAVED_REGISTERS_SIZE(scratches, saveds, 1) + SLJIT_LOCALS_OFFSET;
554 local_size = (local_size + 15) & ~0xf;
556 local_size = (local_size + 31) & ~0x1f;
558 compiler->local_size = local_size;
560 if (local_size <= SIMM_MAX) {
562 FAIL_IF(push_inst(compiler, ADDIU_W | S(SLJIT_SP) | T(SLJIT_SP) | IMM(-local_size), DR(SLJIT_SP)));
566 FAIL_IF(load_immediate(compiler, DR(TMP_REG1), local_size));
570 local_size = 0;
573 offs = local_size - (sljit_sw)(sizeof(sljit_sw));
599 sljit_s32 fscratches, sljit_s32 fsaveds, sljit_s32 local_size)
602 CHECK(check_sljit_set_context(compiler, options, args, scratches, saveds, fscratches, fsaveds, local_size));
603 set_set_context(compiler, options, args, scratches, saveds, fscratches, fsaveds, local_size);
605 local_size += GET_SAVED_REGISTERS_SIZE(scratches, saveds, 1) + SLJIT_LOCALS_OFFSET;
607 compiler->local_size = (local_size + 15) & ~0xf;
609 compiler->local_size = (local_size + 31) & ~0x1f;
616 sljit_s32 local_size, i, tmp, offs;
624 local_size = compiler->local_size;
625 if (local_size <= SIMM_MAX)
628 FAIL_IF(load_immediate(compiler, DR(TMP_REG1), local_size));
631 local_size = 0;
634 FAIL_IF(push_inst(compiler, STACK_LOAD | base | TA(RETURN_ADDR_REG) | IMM(local_size - (sljit_s32)sizeof(sljit_sw)), RETURN_ADDR_REG));
635 offs = local_size - (sljit_s32)GET_SAVED_REGISTERS_SIZE(compiler->scratches, compiler->saveds, 1);
649 SLJIT_ASSERT(offs == local_size - (sljit_sw)(sizeof(sljit_sw)));
652 if (compiler->local_size <= SIMM_MAX)
653 return push_inst(compiler, ADDIU_W | S(SLJIT_SP) | T(SLJIT_SP) | IMM(compiler->local_size), UNMOVABLE_INS);