Lines Matching refs:local_size

543 	sljit_si fscratches, sljit_si fsaveds, sljit_si local_size)  in sljit_emit_enter()  argument
549 …eck_sljit_emit_enter(compiler, options, args, scratches, saveds, fscratches, fsaveds, local_size)); in sljit_emit_enter()
550 set_emit_enter(compiler, options, args, scratches, saveds, fscratches, fsaveds, local_size); in sljit_emit_enter()
552 local_size += GET_SAVED_REGISTERS_SIZE(scratches, saveds, 1) + SLJIT_LOCALS_OFFSET; in sljit_emit_enter()
554 local_size = (local_size + 15) & ~0xf; in sljit_emit_enter()
556 local_size = (local_size + 31) & ~0x1f; in sljit_emit_enter()
558 compiler->local_size = local_size; in sljit_emit_enter()
560 if (local_size <= SIMM_MAX) { in sljit_emit_enter()
562 …FAIL_IF(push_inst(compiler, ADDIU_W | S(SLJIT_SP) | T(SLJIT_SP) | IMM(-local_size), DR(SLJIT_SP))); in sljit_emit_enter()
566 FAIL_IF(load_immediate(compiler, DR(TMP_REG1), local_size)); in sljit_emit_enter()
570 local_size = 0; in sljit_emit_enter()
573 offs = local_size - (sljit_sw)(sizeof(sljit_sw)); in sljit_emit_enter()
599 sljit_si fscratches, sljit_si fsaveds, sljit_si local_size) in sljit_set_context() argument
602 …ck_sljit_set_context(compiler, options, args, scratches, saveds, fscratches, fsaveds, local_size)); in sljit_set_context()
603 set_set_context(compiler, options, args, scratches, saveds, fscratches, fsaveds, local_size); in sljit_set_context()
605 local_size += GET_SAVED_REGISTERS_SIZE(scratches, saveds, 1) + SLJIT_LOCALS_OFFSET; in sljit_set_context()
607 compiler->local_size = (local_size + 15) & ~0xf; in sljit_set_context()
609 compiler->local_size = (local_size + 31) & ~0x1f; in sljit_set_context()
616 sljit_si local_size, i, tmp, offs; in sljit_emit_return() local
624 local_size = compiler->local_size; in sljit_emit_return()
625 if (local_size <= SIMM_MAX) in sljit_emit_return()
628 FAIL_IF(load_immediate(compiler, DR(TMP_REG1), local_size)); in sljit_emit_return()
631 local_size = 0; in sljit_emit_return()
634 …FAIL_IF(push_inst(compiler, STACK_LOAD | base | TA(RETURN_ADDR_REG) | IMM(local_size - (sljit_si)s… in sljit_emit_return()
635 offs = local_size - (sljit_si)GET_SAVED_REGISTERS_SIZE(compiler->scratches, compiler->saveds, 1); in sljit_emit_return()
649 SLJIT_ASSERT(offs == local_size - (sljit_sw)(sizeof(sljit_sw))); in sljit_emit_return()
652 if (compiler->local_size <= SIMM_MAX) in sljit_emit_return()
653 …return push_inst(compiler, ADDIU_W | S(SLJIT_SP) | T(SLJIT_SP) | IMM(compiler->local_size), UNMOVA… in sljit_emit_return()