Lines Matching refs:local_size

728 	sljit_s32 fscratches, sljit_s32 fsaveds, sljit_s32 local_size)  in sljit_emit_enter()  argument
734 …ljit_emit_enter(compiler, options, arg_types, scratches, saveds, fscratches, fsaveds, local_size)); in sljit_emit_enter()
735 set_emit_enter(compiler, options, arg_types, scratches, saveds, fscratches, fsaveds, local_size); in sljit_emit_enter()
737 local_size += GET_SAVED_REGISTERS_SIZE(scratches, saveds - saved_arg_count, 1); in sljit_emit_enter()
740 if ((local_size & SSIZE_OF(sw)) != 0) in sljit_emit_enter()
741 local_size += SSIZE_OF(sw); in sljit_emit_enter()
742 local_size += GET_SAVED_FLOAT_REGISTERS_SIZE(fscratches, fsaveds, f64); in sljit_emit_enter()
745 local_size += GET_SAVED_FLOAT_REGISTERS_SIZE(fscratches, fsaveds, f64); in sljit_emit_enter()
747 local_size = (local_size + SLJIT_LOCALS_OFFSET + 15) & ~0xf; in sljit_emit_enter()
748 compiler->local_size = local_size; in sljit_emit_enter()
750 if (local_size <= STACK_MAX_DISTANCE) { in sljit_emit_enter()
752 FAIL_IF(push_inst(compiler, ADDI | RD(SLJIT_SP) | RS1(SLJIT_SP) | IMM_I(-local_size))); in sljit_emit_enter()
753 offset = local_size - SSIZE_OF(sw); in sljit_emit_enter()
754 local_size = 0; in sljit_emit_enter()
757 local_size -= STACK_MAX_DISTANCE; in sljit_emit_enter()
759 if (local_size > STACK_MAX_DISTANCE) in sljit_emit_enter()
760 FAIL_IF(load_immediate(compiler, TMP_REG1, local_size, TMP_REG3)); in sljit_emit_enter()
794 if (local_size > STACK_MAX_DISTANCE) in sljit_emit_enter()
796 else if (local_size > 0) in sljit_emit_enter()
797 FAIL_IF(push_inst(compiler, ADDI | RD(SLJIT_SP) | RS1(SLJIT_SP) | IMM_I(-local_size))); in sljit_emit_enter()
825 sljit_s32 fscratches, sljit_s32 fsaveds, sljit_s32 local_size) in sljit_set_context() argument
828 …jit_set_context(compiler, options, arg_types, scratches, saveds, fscratches, fsaveds, local_size)); in sljit_set_context()
829 set_set_context(compiler, options, arg_types, scratches, saveds, fscratches, fsaveds, local_size); in sljit_set_context()
831 local_size += GET_SAVED_REGISTERS_SIZE(scratches, saveds - SLJIT_KEPT_SAVEDS_COUNT(options), 1); in sljit_set_context()
834 if ((local_size & SSIZE_OF(sw)) != 0) in sljit_set_context()
835 local_size += SSIZE_OF(sw); in sljit_set_context()
836 local_size += GET_SAVED_FLOAT_REGISTERS_SIZE(fscratches, fsaveds, f64); in sljit_set_context()
839 local_size += GET_SAVED_FLOAT_REGISTERS_SIZE(fscratches, fsaveds, f64); in sljit_set_context()
841 compiler->local_size = (local_size + SLJIT_LOCALS_OFFSET + 15) & ~0xf; in sljit_set_context()
851 sljit_s32 local_size = compiler->local_size; in emit_stack_frame_release() local
853 if (local_size > STACK_MAX_DISTANCE) { in emit_stack_frame_release()
854 local_size -= STACK_MAX_DISTANCE; in emit_stack_frame_release()
856 if (local_size > STACK_MAX_DISTANCE) { in emit_stack_frame_release()
857 FAIL_IF(load_immediate(compiler, TMP_REG2, local_size, TMP_REG3)); in emit_stack_frame_release()
860 FAIL_IF(push_inst(compiler, ADDI | RD(SLJIT_SP) | RS1(SLJIT_SP) | IMM_I(local_size))); in emit_stack_frame_release()
862 local_size = STACK_MAX_DISTANCE; in emit_stack_frame_release()
865 SLJIT_ASSERT(local_size > 0); in emit_stack_frame_release()
867 offset = local_size - SSIZE_OF(sw); in emit_stack_frame_release()
899 return push_inst(compiler, ADDI | RD(SLJIT_SP) | RS1(SLJIT_SP) | IMM_I(local_size)); in emit_stack_frame_release()
2190 …ompiler, WORD_DATA | LOAD_DATA, dst_r, SLJIT_MEM1(SLJIT_SP), compiler->local_size - SSIZE_OF(sw))); in sljit_emit_op_dst()