Lines Matching full:compiler
2 * Stack-less Just-In-Time compiler
184 static sljit_si push_inst16(struct sljit_compiler *compiler, sljit_ins inst) in push_inst16() argument
189 ptr = (sljit_uh*)ensure_buf(compiler, sizeof(sljit_uh)); in push_inst16()
192 compiler->size++; in push_inst16()
196 static sljit_si push_inst32(struct sljit_compiler *compiler, sljit_ins inst) in push_inst32() argument
198 sljit_uh *ptr = (sljit_uh*)ensure_buf(compiler, sizeof(sljit_ins)); in push_inst32()
202 compiler->size += 2; in push_inst32()
206 static SLJIT_INLINE sljit_si emit_imm32_const(struct sljit_compiler *compiler, sljit_si dst, sljit_… in emit_imm32_const() argument
208 FAIL_IF(push_inst32(compiler, MOVW | RD4(dst) | in emit_imm32_const()
210 return push_inst32(compiler, MOVT | RD4(dst) | in emit_imm32_const()
342 SLJIT_API_FUNC_ATTRIBUTE void* sljit_generate_code(struct sljit_compiler *compiler) in sljit_generate_code() argument
356 check_sljit_generate_code(compiler); in sljit_generate_code()
357 reverse_buf(compiler); in sljit_generate_code()
359 code = (sljit_uh*)SLJIT_MALLOC_EXEC(compiler->size * sizeof(sljit_uh)); in sljit_generate_code()
361 buf = compiler->buf; in sljit_generate_code()
365 label = compiler->labels; in sljit_generate_code()
366 jump = compiler->jumps; in sljit_generate_code()
367 const_ = compiler->consts; in sljit_generate_code()
408 SLJIT_ASSERT(code_ptr - code <= (sljit_sw)compiler->size); in sljit_generate_code()
410 jump = compiler->jumps; in sljit_generate_code()
416 compiler->error = SLJIT_ERR_COMPILED; in sljit_generate_code()
417 compiler->executable_size = (code_ptr - code) * sizeof(sljit_uh); in sljit_generate_code()
477 static sljit_si load_immediate(struct sljit_compiler *compiler, sljit_si dst, sljit_uw imm) in load_immediate() argument
484 return push_inst32(compiler, MOV_WI | RD4(dst) | tmp); in load_immediate()
487 return push_inst32(compiler, MVN_WI | RD4(dst) | tmp); in load_immediate()
491 FAIL_IF(push_inst32(compiler, MOVW | RD4(dst) | in load_immediate()
496 return push_inst32(compiler, MOVT | RD4(dst) | in load_immediate()
511 static sljit_si emit_op_imm(struct sljit_compiler *compiler, sljit_si flags, sljit_si dst, sljit_uw… in emit_op_imm() argument
522 FAIL_IF(load_immediate(compiler, TMP_REG1, arg1)); in emit_op_imm()
537 return load_immediate(compiler, dst, imm); in emit_op_imm()
540 return load_immediate(compiler, dst, ~imm); in emit_op_imm()
548 return push_inst16(compiler, ADDSI3 | IMM3(imm) | RD3(dst) | RN3(reg)); in emit_op_imm()
550 return push_inst16(compiler, SUBSI3 | IMM3(nimm) | RD3(dst) | RN3(reg)); in emit_op_imm()
553 return push_inst16(compiler, ADDSI8 | IMM8(imm) | RDN3(dst)); in emit_op_imm()
555 return push_inst16(compiler, SUBSI8 | IMM8(nimm) | RDN3(dst)); in emit_op_imm()
560 return push_inst32(compiler, ADDWI | RD4(dst) | RN4(reg) | IMM12(imm)); in emit_op_imm()
562 return push_inst32(compiler, SUBWI | RD4(dst) | RN4(reg) | IMM12(nimm)); in emit_op_imm()
566 return push_inst32(compiler, ADD_WI | (flags & SET_FLAGS) | RD4(dst) | RN4(reg) | imm); in emit_op_imm()
571 return push_inst32(compiler, ADCI | (flags & SET_FLAGS) | RD4(dst) | RN4(reg) | imm); in emit_op_imm()
576 return push_inst16(compiler, RSBSI | RD3(dst) | RN3(reg)); in emit_op_imm()
579 return push_inst32(compiler, RSB_WI | (flags & SET_FLAGS) | RD4(dst) | RN4(reg) | imm); in emit_op_imm()
585 return push_inst16(compiler, SUBSI3 | IMM3(imm) | RD3(dst) | RN3(reg)); in emit_op_imm()
587 return push_inst16(compiler, ADDSI3 | IMM3(nimm) | RD3(dst) | RN3(reg)); in emit_op_imm()
590 return push_inst16(compiler, SUBSI8 | IMM8(imm) | RDN3(dst)); in emit_op_imm()
592 return push_inst16(compiler, ADDSI8 | IMM8(nimm) | RDN3(dst)); in emit_op_imm()
595 return push_inst16(compiler, CMPI | IMM8(imm) | RDN3(reg)); in emit_op_imm()
599 return push_inst32(compiler, SUBWI | RD4(dst) | RN4(reg) | IMM12(imm)); in emit_op_imm()
601 return push_inst32(compiler, ADDWI | RD4(dst) | RN4(reg) | IMM12(nimm)); in emit_op_imm()
605 return push_inst32(compiler, SUB_WI | (flags & SET_FLAGS) | RD4(dst) | RN4(reg) | imm); in emit_op_imm()
612 return push_inst32(compiler, SBCI | (flags & SET_FLAGS) | RD4(dst) | RN4(reg) | imm); in emit_op_imm()
617 return push_inst32(compiler, ANDI | (flags & SET_FLAGS) | RD4(dst) | RN4(reg) | nimm); in emit_op_imm()
620 return push_inst32(compiler, BICI | (flags & SET_FLAGS) | RD4(dst) | RN4(reg) | imm); in emit_op_imm()
625 return push_inst32(compiler, ORRI | (flags & SET_FLAGS) | RD4(dst) | RN4(reg) | nimm); in emit_op_imm()
628 return push_inst32(compiler, ORNI | (flags & SET_FLAGS) | RD4(dst) | RN4(reg) | imm); in emit_op_imm()
633 return push_inst32(compiler, EORI | (flags & SET_FLAGS) | RD4(dst) | RN4(reg) | imm); in emit_op_imm()
643 return push_inst16(compiler, MOV | SET_REGS44(dst, reg)); in emit_op_imm()
645 return push_inst16(compiler, MOVS | RD3(dst) | RN3(reg)); in emit_op_imm()
646 return push_inst32(compiler, MOV_W | SET_FLAGS | RD4(dst) | RM4(reg)); in emit_op_imm()
651 return push_inst16(compiler, LSLSI | RD3(dst) | RN3(reg) | (imm << 6)); in emit_op_imm()
652 return push_inst32(compiler, LSL_WI | (flags & SET_FLAGS) | RD4(dst) | RM4(reg) | IMM5(imm)); in emit_op_imm()
655 return push_inst16(compiler, LSRSI | RD3(dst) | RN3(reg) | (imm << 6)); in emit_op_imm()
656 return push_inst32(compiler, LSR_WI | (flags & SET_FLAGS) | RD4(dst) | RM4(reg) | IMM5(imm)); in emit_op_imm()
659 return push_inst16(compiler, ASRSI | RD3(dst) | RN3(reg) | (imm << 6)); in emit_op_imm()
660 return push_inst32(compiler, ASR_WI | (flags & SET_FLAGS) | RD4(dst) | RM4(reg) | IMM5(imm)); in emit_op_imm()
668 FAIL_IF(load_immediate(compiler, TMP_REG2, arg2)); in emit_op_imm()
672 FAIL_IF(load_immediate(compiler, TMP_REG1, arg1)); in emit_op_imm()
690 return push_inst16(compiler, MOV | SET_REGS44(dst, arg2)); in emit_op_imm()
695 return push_inst16(compiler, UXTB | RD3(dst) | RN3(arg2)); in emit_op_imm()
696 return push_inst32(compiler, UXTB_W | RD4(dst) | RM4(arg2)); in emit_op_imm()
701 return push_inst16(compiler, SXTB | RD3(dst) | RN3(arg2)); in emit_op_imm()
702 return push_inst32(compiler, SXTB_W | RD4(dst) | RM4(arg2)); in emit_op_imm()
707 return push_inst16(compiler, UXTH | RD3(dst) | RN3(arg2)); in emit_op_imm()
708 return push_inst32(compiler, UXTH_W | RD4(dst) | RM4(arg2)); in emit_op_imm()
713 return push_inst16(compiler, SXTH | RD3(dst) | RN3(arg2)); in emit_op_imm()
714 return push_inst32(compiler, SXTH_W | RD4(dst) | RM4(arg2)); in emit_op_imm()
718 return push_inst16(compiler, MVNS | RD3(dst) | RN3(arg2)); in emit_op_imm()
719 return push_inst32(compiler, MVN_W | (flags & SET_FLAGS) | RD4(dst) | RM4(arg2)); in emit_op_imm()
722 FAIL_IF(push_inst32(compiler, CLZ | RN4(arg2) | RD4(dst) | RM4(arg2))); in emit_op_imm()
725 return push_inst16(compiler, CMPI | RDN3(dst)); in emit_op_imm()
726 return push_inst32(compiler, ADD_WI | SET_FLAGS | RN4(dst) | RD4(dst)); in emit_op_imm()
731 return push_inst16(compiler, ADDS | RD3(dst) | RN3(arg1) | RM3(arg2)); in emit_op_imm()
733 return push_inst16(compiler, ADD | SET_REGS44(dst, arg2)); in emit_op_imm()
734 return push_inst32(compiler, ADD_W | (flags & SET_FLAGS) | RD4(dst) | RN4(arg1) | RM4(arg2)); in emit_op_imm()
737 return push_inst16(compiler, ADCS | RD3(dst) | RN3(arg2)); in emit_op_imm()
738 return push_inst32(compiler, ADC_W | (flags & SET_FLAGS) | RD4(dst) | RN4(arg1) | RM4(arg2)); in emit_op_imm()
741 return push_inst16(compiler, SUBS | RD3(dst) | RN3(arg1) | RM3(arg2)); in emit_op_imm()
742 return push_inst32(compiler, SUB_W | (flags & SET_FLAGS) | RD4(dst) | RN4(arg1) | RM4(arg2)); in emit_op_imm()
745 return push_inst16(compiler, SBCS | RD3(dst) | RN3(arg2)); in emit_op_imm()
746 return push_inst32(compiler, SBC_W | (flags & SET_FLAGS) | RD4(dst) | RN4(arg1) | RM4(arg2)); in emit_op_imm()
749 return push_inst32(compiler, MUL | RD4(dst) | RN4(arg1) | RM4(arg2)); in emit_op_imm()
751 FAIL_IF(push_inst32(compiler, SMULL | RT4(dst) | RD4(TMP_REG2) | RN4(arg1) | RM4(arg2))); in emit_op_imm()
753 return push_inst32(compiler, CMP_W | RN4(TMP_REG2) | 0x70e0 | RM4(dst)); in emit_op_imm()
757 return push_inst16(compiler, ANDS | RD3(dst) | RN3(arg2)); in emit_op_imm()
759 return push_inst16(compiler, TST | RD3(arg1) | RN3(arg2)); in emit_op_imm()
761 return push_inst32(compiler, AND_W | (flags & SET_FLAGS) | RD4(dst) | RN4(arg1) | RM4(arg2)); in emit_op_imm()
764 return push_inst16(compiler, ORRS | RD3(dst) | RN3(arg2)); in emit_op_imm()
765 return push_inst32(compiler, ORR_W | (flags & SET_FLAGS) | RD4(dst) | RN4(arg1) | RM4(arg2)); in emit_op_imm()
768 return push_inst16(compiler, EORS | RD3(dst) | RN3(arg2)); in emit_op_imm()
769 return push_inst32(compiler, EOR_W | (flags & SET_FLAGS) | RD4(dst) | RN4(arg1) | RM4(arg2)); in emit_op_imm()
772 return push_inst16(compiler, LSLS | RD3(dst) | RN3(arg2)); in emit_op_imm()
773 return push_inst32(compiler, LSL_W | (flags & SET_FLAGS) | RD4(dst) | RN4(arg1) | RM4(arg2)); in emit_op_imm()
776 return push_inst16(compiler, LSRS | RD3(dst) | RN3(arg2)); in emit_op_imm()
777 return push_inst32(compiler, LSR_W | (flags & SET_FLAGS) | RD4(dst) | RN4(arg1) | RM4(arg2)); in emit_op_imm()
780 return push_inst16(compiler, ASRS | RD3(dst) | RN3(arg2)); in emit_op_imm()
781 return push_inst32(compiler, ASR_W | (flags & SET_FLAGS) | RD4(dst) | RN4(arg1) | RM4(arg2)); in emit_op_imm()
870 static sljit_si emit_set_delta(struct sljit_compiler *compiler, sljit_si dst, sljit_si reg, sljit_s… in emit_set_delta() argument
874 return push_inst32(compiler, ADDWI | RD4(dst) | RN4(reg) | IMM12(value)); in emit_set_delta()
877 return push_inst32(compiler, ADD_WI | RD4(dst) | RN4(reg) | value); in emit_set_delta()
882 return push_inst32(compiler, SUBWI | RD4(dst) | RN4(reg) | IMM12(value)); in emit_set_delta()
885 return push_inst32(compiler, SUB_WI | RD4(dst) | RN4(reg) | value); in emit_set_delta()
891 static sljit_si getput_arg_fast(struct sljit_compiler *compiler, sljit_si flags, sljit_si reg, slji… in getput_arg_fast() argument
911 …FAIL_IF(push_inst32(compiler, sljit_mem32[flags] | MEM_IMM8 | RT4(reg) | RN4(arg) | 0x100 | argw)); in getput_arg_fast()
926 FAIL_IF(push_inst16(compiler, sljit_mem16[flags] | RD3(reg) | RN3(arg) | RM3(other_r))); in getput_arg_fast()
928 …FAIL_IF(push_inst32(compiler, sljit_mem32[flags] | RT4(reg) | RN4(arg) | RM4(other_r) | (argw << 4… in getput_arg_fast()
957 …FAIL_IF(push_inst16(compiler, sljit_mem16_imm5[flags] | RD3(reg) | RN3(arg) | (argw << (6 - shift)… in getput_arg_fast()
964 FAIL_IF(push_inst16(compiler, STR_SP | ((flags & STORE) ? 0 : 0x800) | RDN3(reg) | (argw >> 2))); in getput_arg_fast()
969 FAIL_IF(push_inst32(compiler, sljit_mem32[flags] | MEM_IMM12 | RT4(reg) | RN4(arg) | argw)); in getput_arg_fast()
971 FAIL_IF(push_inst32(compiler, sljit_mem32[flags] | MEM_IMM8 | RT4(reg) | RN4(arg) | -argw)); in getput_arg_fast()
1002 static sljit_si getput_arg(struct sljit_compiler *compiler, sljit_si flags, sljit_si reg, in getput_arg() argument
1025 FAIL_IF(push_inst32(compiler, sljit_mem32[flags] | MEM_IMM12 | RT4(reg) | RN4(arg) | argw)); in getput_arg()
1026 return push_inst32(compiler, ADDWI | RD4(arg) | RN4(arg) | IMM12(argw)); in getput_arg()
1029 if (compiler->cache_arg == SLJIT_MEM) { in getput_arg()
1030 if (argw == compiler->cache_argw) { in getput_arg()
1034 …else if (emit_set_delta(compiler, TMP_REG3, TMP_REG3, argw - compiler->cache_argw) != SLJIT_ERR_UN… in getput_arg()
1035 FAIL_IF(compiler->error); in getput_arg()
1036 compiler->cache_argw = argw; in getput_arg()
1043 FAIL_IF(load_immediate(compiler, TMP_REG3, argw)); in getput_arg()
1044 compiler->cache_arg = SLJIT_MEM; in getput_arg()
1045 compiler->cache_argw = argw; in getput_arg()
1053 FAIL_IF(push_inst16(compiler, sljit_mem16[flags] | RD3(reg) | RN3(arg) | RM3(other_r))); in getput_arg()
1054 return push_inst16(compiler, ADD | SET_REGS44(arg, other_r)); in getput_arg()
1056 …FAIL_IF(push_inst32(compiler, sljit_mem32[flags] | RT4(reg) | RN4(arg) | RM4(other_r) | (argw << 4… in getput_arg()
1057 return push_inst32(compiler, ADD_W | RD4(arg) | RN4(arg) | RM4(other_r) | (argw << 6)); in getput_arg()
1063 if (compiler->cache_arg == arg) { in getput_arg()
1064 diff = argw - compiler->cache_argw; in getput_arg()
1066 return push_inst32(compiler, sljit_mem32[flags] | MEM_IMM12 | RT4(reg) | RN4(TMP_REG3) | diff); in getput_arg()
1067 if (!((compiler->cache_argw - argw) & ~0xff)) in getput_arg()
1068 …return push_inst32(compiler, sljit_mem32[flags] | MEM_IMM8 | RT4(reg) | RN4(TMP_REG3) | (compiler-… in getput_arg()
1069 if (emit_set_delta(compiler, TMP_REG3, TMP_REG3, diff) != SLJIT_ERR_UNSUPPORTED) { in getput_arg()
1070 FAIL_IF(compiler->error); in getput_arg()
1071 return push_inst32(compiler, sljit_mem32[flags] | MEM_IMM12 | RT4(reg) | RN4(TMP_REG3) | 0); in getput_arg()
1077 if (arg && compiler->cache_arg == SLJIT_MEM) { in getput_arg()
1078 if (compiler->cache_argw == argw) in getput_arg()
1079 return push_inst32(compiler, sljit_mem32[flags] | RT4(reg) | RN4(arg) | RM4(TMP_REG3)); in getput_arg()
1080 …if (emit_set_delta(compiler, TMP_REG3, TMP_REG3, argw - compiler->cache_argw) != SLJIT_ERR_UNSUPPO… in getput_arg()
1081 FAIL_IF(compiler->error); in getput_arg()
1082 compiler->cache_argw = argw; in getput_arg()
1083 return push_inst32(compiler, sljit_mem32[flags] | RT4(reg) | RN4(arg) | RM4(TMP_REG3)); in getput_arg()
1087 compiler->cache_argw = argw; in getput_arg()
1088 if (next_arg && emit_set_delta(compiler, TMP_REG3, arg, argw) != SLJIT_ERR_UNSUPPORTED) { in getput_arg()
1089 FAIL_IF(compiler->error); in getput_arg()
1090 compiler->cache_arg = SLJIT_MEM | arg; in getput_arg()
1094 FAIL_IF(load_immediate(compiler, TMP_REG3, argw)); in getput_arg()
1095 compiler->cache_arg = SLJIT_MEM; in getput_arg()
1099 FAIL_IF(push_inst16(compiler, ADD | SET_REGS44(TMP_REG3, arg))); in getput_arg()
1100 compiler->cache_arg = SLJIT_MEM | arg; in getput_arg()
1106 return push_inst32(compiler, sljit_mem32[flags] | RT4(reg) | RN4(arg) | RM4(TMP_REG3)); in getput_arg()
1107 return push_inst32(compiler, sljit_mem32[flags] | MEM_IMM12 | RT4(reg) | RN4(TMP_REG3) | 0); in getput_arg()
1110 static SLJIT_INLINE sljit_si emit_op_mem(struct sljit_compiler *compiler, sljit_si flags, sljit_si … in emit_op_mem() argument
1112 if (getput_arg_fast(compiler, flags, reg, arg, argw)) in emit_op_mem()
1113 return compiler->error; in emit_op_mem()
1114 compiler->cache_arg = 0; in emit_op_mem()
1115 compiler->cache_argw = 0; in emit_op_mem()
1116 return getput_arg(compiler, flags, reg, arg, argw, 0, 0); in emit_op_mem()
1119 static SLJIT_INLINE sljit_si emit_op_mem2(struct sljit_compiler *compiler, sljit_si flags, sljit_si… in emit_op_mem2() argument
1121 if (getput_arg_fast(compiler, flags, reg, arg1, arg1w)) in emit_op_mem2()
1122 return compiler->error; in emit_op_mem2()
1123 return getput_arg(compiler, flags, reg, arg1, arg1w, arg2, arg2w); in emit_op_mem2()
1130 SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_emit_enter(struct sljit_compiler *compiler, in sljit_emit_enter() argument
1138 …check_sljit_emit_enter(compiler, options, args, scratches, saveds, fscratches, fsaveds, local_size… in sljit_emit_enter()
1140 compiler->options = options; in sljit_emit_enter()
1141 compiler->scratches = scratches; in sljit_emit_enter()
1142 compiler->saveds = saveds; in sljit_emit_enter()
1143 compiler->fscratches = fscratches; in sljit_emit_enter()
1144 compiler->fsaveds = fsaveds; in sljit_emit_enter()
1146 compiler->logical_local_size = local_size; in sljit_emit_enter()
1159 ? push_inst32(compiler, PUSH_W | (1 << 14) | push) in sljit_emit_enter()
1160 : push_inst16(compiler, PUSH | (1 << 8) | push)); in sljit_emit_enter()
1165 compiler->local_size = local_size; in sljit_emit_enter()
1168 FAIL_IF(push_inst16(compiler, SUB_SP | (local_size >> 2))); in sljit_emit_enter()
1170 FAIL_IF(emit_op_imm(compiler, SLJIT_SUB | ARG2_IMM, SLJIT_SP, SLJIT_SP, local_size)); in sljit_emit_enter()
1174 FAIL_IF(push_inst16(compiler, MOV | SET_REGS44(SLJIT_S0, SLJIT_R0))); in sljit_emit_enter()
1176 FAIL_IF(push_inst16(compiler, MOV | SET_REGS44(SLJIT_S1, SLJIT_R1))); in sljit_emit_enter()
1178 FAIL_IF(push_inst16(compiler, MOV | SET_REGS44(SLJIT_S2, SLJIT_R2))); in sljit_emit_enter()
1183 SLJIT_API_FUNC_ATTRIBUTE void sljit_set_context(struct sljit_compiler *compiler, in sljit_set_context() argument
1190 …check_sljit_set_context(compiler, options, args, scratches, saveds, fscratches, fsaveds, local_siz… in sljit_set_context()
1192 compiler->options = options; in sljit_set_context()
1193 compiler->scratches = scratches; in sljit_set_context()
1194 compiler->saveds = saveds; in sljit_set_context()
1195 compiler->fscratches = fscratches; in sljit_set_context()
1196 compiler->fsaveds = fsaveds; in sljit_set_context()
1198 compiler->logical_local_size = local_size; in sljit_set_context()
1202 compiler->local_size = ((size + local_size + 7) & ~7) - size; in sljit_set_context()
1205 SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_emit_return(struct sljit_compiler *compiler, sljit_si op, s… in sljit_emit_return() argument
1211 check_sljit_emit_return(compiler, op, src, srcw); in sljit_emit_return()
1213 FAIL_IF(emit_mov_before_return(compiler, op, src, srcw)); in sljit_emit_return()
1215 if (compiler->local_size > 0) { in sljit_emit_return()
1216 if (compiler->local_size <= (127 << 2)) in sljit_emit_return()
1217 FAIL_IF(push_inst16(compiler, ADD_SP | (compiler->local_size >> 2))); in sljit_emit_return()
1219 FAIL_IF(emit_op_imm(compiler, SLJIT_ADD | ARG2_IMM, SLJIT_SP, SLJIT_SP, compiler->local_size)); in sljit_emit_return()
1224 …tmp = compiler->saveds < SLJIT_NUMBER_OF_SAVED_REGISTERS ? (SLJIT_S0 + 1 - compiler->saveds) : SLJ… in sljit_emit_return()
1228 for (i = compiler->scratches; i >= SLJIT_FIRST_SAVED_REG; i--) in sljit_emit_return()
1232 ? push_inst32(compiler, POP_W | (1 << 15) | pop) in sljit_emit_return()
1233 : push_inst16(compiler, POP | (1 << 8) | pop); in sljit_emit_return()
1255 SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_emit_op0(struct sljit_compiler *compiler, sljit_si op) in sljit_emit_op0() argument
1258 check_sljit_emit_op0(compiler, op); in sljit_emit_op0()
1263 return push_inst16(compiler, BKPT); in sljit_emit_op0()
1265 return push_inst16(compiler, NOP); in sljit_emit_op0()
1268 return push_inst32(compiler, (op == SLJIT_UMUL ? UMULL : SMULL) in sljit_emit_op0()
1275 if (compiler->scratches >= 4) { in sljit_emit_op0()
1276 FAIL_IF(push_inst32(compiler, 0xf84d2d04 /* str r2, [sp, #-4]! */)); in sljit_emit_op0()
1277 FAIL_IF(push_inst32(compiler, 0xf84dcd04 /* str ip, [sp, #-4]! */)); in sljit_emit_op0()
1278 } else if (compiler->scratches >= 3) in sljit_emit_op0()
1279 FAIL_IF(push_inst32(compiler, 0xf84d2d08 /* str r2, [sp, #-8]! */)); in sljit_emit_op0()
1281 FAIL_IF(sljit_emit_ijump(compiler, SLJIT_FAST_CALL, SLJIT_IMM, in sljit_emit_op0()
1286 if (compiler->scratches >= 4) { in sljit_emit_op0()
1287 FAIL_IF(push_inst32(compiler, 0xf85dcb04 /* ldr ip, [sp], #4 */)); in sljit_emit_op0()
1288 return push_inst32(compiler, 0xf85d2b04 /* ldr r2, [sp], #4 */); in sljit_emit_op0()
1289 } else if (compiler->scratches >= 3) in sljit_emit_op0()
1290 return push_inst32(compiler, 0xf85d2b08 /* ldr r2, [sp], #8 */); in sljit_emit_op0()
1297 SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_emit_op1(struct sljit_compiler *compiler, sljit_si op, in sljit_emit_op1() argument
1305 check_sljit_emit_op1(compiler, op, dst, dstw, src, srcw); in sljit_emit_op1()
1309 compiler->cache_arg = 0; in sljit_emit_op1()
1310 compiler->cache_argw = 0; in sljit_emit_op1()
1376 FAIL_IF(emit_op_imm(compiler, SLJIT_MOV | ARG2_IMM, dst_r, TMP_REG1, srcw)); in sljit_emit_op1()
1378 if (getput_arg_fast(compiler, flags, dst_r, src, srcw)) in sljit_emit_op1()
1379 FAIL_IF(compiler->error); in sljit_emit_op1()
1381 FAIL_IF(getput_arg(compiler, flags, dst_r, src, srcw, dst, dstw)); in sljit_emit_op1()
1384 return emit_op_imm(compiler, op, dst_r, TMP_REG1, src); in sljit_emit_op1()
1389 if (getput_arg_fast(compiler, flags | STORE, dst_r, dst, dstw)) in sljit_emit_op1()
1390 return compiler->error; in sljit_emit_op1()
1392 return getput_arg(compiler, flags | STORE, dst_r, dst, dstw, 0, 0); in sljit_emit_op1()
1399 compiler->skip_checks = 1; in sljit_emit_op1()
1401 return sljit_emit_op2(compiler, SLJIT_SUB | op_flags, dst, dstw, SLJIT_IMM, 0, src, srcw); in sljit_emit_op1()
1406 if (getput_arg_fast(compiler, WORD_SIZE, TMP_REG2, src, srcw)) in sljit_emit_op1()
1407 FAIL_IF(compiler->error); in sljit_emit_op1()
1409 FAIL_IF(getput_arg(compiler, WORD_SIZE, TMP_REG2, src, srcw, dst, dstw)); in sljit_emit_op1()
1418 emit_op_imm(compiler, flags | op, dst_r, TMP_REG1, srcw); in sljit_emit_op1()
1421 if (getput_arg_fast(compiler, flags | STORE, dst_r, dst, dstw)) in sljit_emit_op1()
1422 return compiler->error; in sljit_emit_op1()
1424 return getput_arg(compiler, flags | STORE, dst_r, dst, dstw, 0, 0); in sljit_emit_op1()
1429 SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_emit_op2(struct sljit_compiler *compiler, sljit_si op, in sljit_emit_op2() argument
1437 check_sljit_emit_op2(compiler, op, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_op2()
1442 compiler->cache_arg = 0; in sljit_emit_op2()
1443 compiler->cache_argw = 0; in sljit_emit_op2()
1448 …if ((dst & SLJIT_MEM) && !getput_arg_fast(compiler, WORD_SIZE | STORE | ARG_TEST, TMP_REG1, dst, d… in sljit_emit_op2()
1452 if (getput_arg_fast(compiler, WORD_SIZE, TMP_REG1, src1, src1w)) in sljit_emit_op2()
1453 FAIL_IF(compiler->error); in sljit_emit_op2()
1458 if (getput_arg_fast(compiler, WORD_SIZE, TMP_REG2, src2, src2w)) in sljit_emit_op2()
1459 FAIL_IF(compiler->error); in sljit_emit_op2()
1466 FAIL_IF(getput_arg(compiler, WORD_SIZE, TMP_REG2, src2, src2w, src1, src1w)); in sljit_emit_op2()
1467 FAIL_IF(getput_arg(compiler, WORD_SIZE, TMP_REG1, src1, src1w, dst, dstw)); in sljit_emit_op2()
1470 FAIL_IF(getput_arg(compiler, WORD_SIZE, TMP_REG1, src1, src1w, src2, src2w)); in sljit_emit_op2()
1471 FAIL_IF(getput_arg(compiler, WORD_SIZE, TMP_REG2, src2, src2w, dst, dstw)); in sljit_emit_op2()
1475 FAIL_IF(getput_arg(compiler, WORD_SIZE, TMP_REG1, src1, src1w, dst, dstw)); in sljit_emit_op2()
1477 FAIL_IF(getput_arg(compiler, WORD_SIZE, TMP_REG2, src2, src2w, dst, dstw)); in sljit_emit_op2()
1496 emit_op_imm(compiler, flags | GET_OPCODE(op), dst_r, src1w, src2w); in sljit_emit_op2()
1500 getput_arg_fast(compiler, WORD_SIZE | STORE, dst_r, dst, dstw); in sljit_emit_op2()
1501 return compiler->error; in sljit_emit_op2()
1503 return getput_arg(compiler, WORD_SIZE | STORE, TMP_REG1, dst, dstw, 0, 0); in sljit_emit_op2()
1520 SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_emit_op_custom(struct sljit_compiler *compiler, in sljit_emit_op_custom() argument
1524 check_sljit_emit_op_custom(compiler, instruction, size); in sljit_emit_op_custom()
1528 return push_inst16(compiler, *(sljit_uh*)instruction); in sljit_emit_op_custom()
1529 return push_inst32(compiler, *(sljit_ins*)instruction); in sljit_emit_op_custom()
1548 static sljit_si emit_fop_mem(struct sljit_compiler *compiler, sljit_si flags, sljit_si reg, sljit_s… in emit_fop_mem() argument
1558 …FAIL_IF(push_inst32(compiler, ADD_W | RD4(TMP_REG2) | RN4(arg & REG_MASK) | RM4(OFFS_REG(arg)) | (… in emit_fop_mem()
1565 return push_inst32(compiler, inst | 0x800000 | RN4(arg & REG_MASK) | DD4(reg) | (argw >> 2)); in emit_fop_mem()
1567 return push_inst32(compiler, inst | RN4(arg & REG_MASK) | DD4(reg) | (-argw >> 2)); in emit_fop_mem()
1572 if (compiler->cache_arg == arg) { in emit_fop_mem()
1573 tmp = argw - compiler->cache_argw; in emit_fop_mem()
1575 return push_inst32(compiler, inst | 0x800000 | RN4(TMP_REG3) | DD4(reg) | (tmp >> 2)); in emit_fop_mem()
1577 return push_inst32(compiler, inst | RN4(TMP_REG3) | DD4(reg) | (-tmp >> 2)); in emit_fop_mem()
1578 if (emit_set_delta(compiler, TMP_REG3, TMP_REG3, tmp) != SLJIT_ERR_UNSUPPORTED) { in emit_fop_mem()
1579 FAIL_IF(compiler->error); in emit_fop_mem()
1580 compiler->cache_argw = argw; in emit_fop_mem()
1581 return push_inst32(compiler, inst | 0x800000 | RN4(TMP_REG3) | DD4(reg)); in emit_fop_mem()
1586 if (emit_set_delta(compiler, TMP_REG1, arg & REG_MASK, argw) != SLJIT_ERR_UNSUPPORTED) { in emit_fop_mem()
1587 FAIL_IF(compiler->error); in emit_fop_mem()
1588 return push_inst32(compiler, inst | 0x800000 | RN4(TMP_REG1) | DD4(reg)); in emit_fop_mem()
1592 FAIL_IF(push_inst32(compiler, ADD_WI | RD4(TMP_REG1) | RN4(arg & REG_MASK) | imm)); in emit_fop_mem()
1593 return push_inst32(compiler, inst | 0x800000 | RN4(TMP_REG1) | DD4(reg) | ((argw & 0x3fc) >> 2)); in emit_fop_mem()
1598 FAIL_IF(push_inst32(compiler, SUB_WI | RD4(TMP_REG1) | RN4(arg & REG_MASK) | imm)); in emit_fop_mem()
1599 return push_inst32(compiler, inst | RN4(TMP_REG1) | DD4(reg) | ((argw & 0x3fc) >> 2)); in emit_fop_mem()
1603 compiler->cache_arg = arg; in emit_fop_mem()
1604 compiler->cache_argw = argw; in emit_fop_mem()
1606 FAIL_IF(load_immediate(compiler, TMP_REG3, argw)); in emit_fop_mem()
1608 FAIL_IF(push_inst16(compiler, ADD | SET_REGS44(TMP_REG3, (arg & REG_MASK)))); in emit_fop_mem()
1609 return push_inst32(compiler, inst | 0x800000 | RN4(TMP_REG3) | DD4(reg)); in emit_fop_mem()
1612 static SLJIT_INLINE sljit_si sljit_emit_fop1_convw_fromd(struct sljit_compiler *compiler, sljit_si … in sljit_emit_fop1_convw_fromd() argument
1617 FAIL_IF(emit_fop_mem(compiler, (op & SLJIT_SINGLE_OP) | FPU_LOAD, TMP_FREG1, src, srcw)); in sljit_emit_fop1_convw_fromd()
1621 FAIL_IF(push_inst32(compiler, VCVT_S32_F32 | (op & SLJIT_SINGLE_OP) | DD4(TMP_FREG1) | DM4(src))); in sljit_emit_fop1_convw_fromd()
1627 return push_inst32(compiler, VMOV | (1 << 20) | RT4(dst) | DN4(TMP_FREG1)); in sljit_emit_fop1_convw_fromd()
1630 return emit_fop_mem(compiler, 0, TMP_FREG1, dst, dstw); in sljit_emit_fop1_convw_fromd()
1633 static SLJIT_INLINE sljit_si sljit_emit_fop1_convd_fromw(struct sljit_compiler *compiler, sljit_si … in sljit_emit_fop1_convd_fromw() argument
1640 FAIL_IF(push_inst32(compiler, VMOV | RT4(src) | DN4(TMP_FREG1))); in sljit_emit_fop1_convd_fromw()
1643 FAIL_IF(emit_fop_mem(compiler, FPU_LOAD, TMP_FREG1, src, srcw)); in sljit_emit_fop1_convd_fromw()
1646 FAIL_IF(load_immediate(compiler, TMP_REG1, srcw)); in sljit_emit_fop1_convd_fromw()
1647 FAIL_IF(push_inst32(compiler, VMOV | RT4(TMP_REG1) | DN4(TMP_FREG1))); in sljit_emit_fop1_convd_fromw()
1650 …FAIL_IF(push_inst32(compiler, VCVT_F32_S32 | (op & SLJIT_SINGLE_OP) | DD4(dst_r) | DM4(TMP_FREG1))… in sljit_emit_fop1_convd_fromw()
1653 return emit_fop_mem(compiler, (op & SLJIT_SINGLE_OP), TMP_FREG1, dst, dstw); in sljit_emit_fop1_convd_fromw()
1657 static SLJIT_INLINE sljit_si sljit_emit_fop1_cmp(struct sljit_compiler *compiler, sljit_si op, in sljit_emit_fop1_cmp() argument
1662 emit_fop_mem(compiler, (op & SLJIT_SINGLE_OP) | FPU_LOAD, TMP_FREG1, src1, src1w); in sljit_emit_fop1_cmp()
1667 emit_fop_mem(compiler, (op & SLJIT_SINGLE_OP) | FPU_LOAD, TMP_FREG2, src2, src2w); in sljit_emit_fop1_cmp()
1671 FAIL_IF(push_inst32(compiler, VCMP_F32 | (op & SLJIT_SINGLE_OP) | DD4(src1) | DM4(src2))); in sljit_emit_fop1_cmp()
1672 return push_inst32(compiler, VMRS); in sljit_emit_fop1_cmp()
1675 SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_emit_fop1(struct sljit_compiler *compiler, sljit_si op, in sljit_emit_fop1() argument
1682 compiler->cache_arg = 0; in sljit_emit_fop1()
1683 compiler->cache_argw = 0; in sljit_emit_fop1()
1688 SELECT_FOP1_OPERATION_WITH_CHECKS(compiler, op, dst, dstw, src, srcw); in sljit_emit_fop1()
1693 emit_fop_mem(compiler, (op & SLJIT_SINGLE_OP) | FPU_LOAD, dst_r, src, srcw); in sljit_emit_fop1()
1701 FAIL_IF(push_inst32(compiler, VMOV_F32 | (op & SLJIT_SINGLE_OP) | DD4(dst_r) | DM4(src))); in sljit_emit_fop1()
1707 FAIL_IF(push_inst32(compiler, VNEG_F32 | (op & SLJIT_SINGLE_OP) | DD4(dst_r) | DM4(src))); in sljit_emit_fop1()
1710 FAIL_IF(push_inst32(compiler, VABS_F32 | (op & SLJIT_SINGLE_OP) | DD4(dst_r) | DM4(src))); in sljit_emit_fop1()
1713 FAIL_IF(push_inst32(compiler, VCVT_F64_F32 | (op & SLJIT_SINGLE_OP) | DD4(dst_r) | DM4(src))); in sljit_emit_fop1()
1719 return emit_fop_mem(compiler, (op & SLJIT_SINGLE_OP), dst_r, dst, dstw); in sljit_emit_fop1()
1723 SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_emit_fop2(struct sljit_compiler *compiler, sljit_si op, in sljit_emit_fop2() argument
1731 check_sljit_emit_fop2(compiler, op, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_fop2()
1736 compiler->cache_arg = 0; in sljit_emit_fop2()
1737 compiler->cache_argw = 0; in sljit_emit_fop2()
1742 emit_fop_mem(compiler, (op & SLJIT_SINGLE_OP) | FPU_LOAD, TMP_FREG1, src1, src1w); in sljit_emit_fop2()
1746 emit_fop_mem(compiler, (op & SLJIT_SINGLE_OP) | FPU_LOAD, TMP_FREG2, src2, src2w); in sljit_emit_fop2()
1752 …FAIL_IF(push_inst32(compiler, VADD_F32 | (op & SLJIT_SINGLE_OP) | DD4(dst_r) | DN4(src1) | DM4(src… in sljit_emit_fop2()
1755 …FAIL_IF(push_inst32(compiler, VSUB_F32 | (op & SLJIT_SINGLE_OP) | DD4(dst_r) | DN4(src1) | DM4(src… in sljit_emit_fop2()
1758 …FAIL_IF(push_inst32(compiler, VMUL_F32 | (op & SLJIT_SINGLE_OP) | DD4(dst_r) | DN4(src1) | DM4(src… in sljit_emit_fop2()
1761 …FAIL_IF(push_inst32(compiler, VDIV_F32 | (op & SLJIT_SINGLE_OP) | DD4(dst_r) | DN4(src1) | DM4(src… in sljit_emit_fop2()
1767 return emit_fop_mem(compiler, (op & SLJIT_SINGLE_OP), TMP_FREG1, dst, dstw); in sljit_emit_fop2()
1776 SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_emit_fast_enter(struct sljit_compiler *compiler, sljit_si d… in sljit_emit_fast_enter() argument
1779 check_sljit_emit_fast_enter(compiler, dst, dstw); in sljit_emit_fast_enter()
1787 return push_inst16(compiler, MOV | SET_REGS44(dst, TMP_REG3)); in sljit_emit_fast_enter()
1790 if (getput_arg_fast(compiler, WORD_SIZE | STORE, TMP_REG3, dst, dstw)) in sljit_emit_fast_enter()
1791 return compiler->error; in sljit_emit_fast_enter()
1793 FAIL_IF(push_inst16(compiler, MOV | SET_REGS44(TMP_REG2, TMP_REG3))); in sljit_emit_fast_enter()
1794 compiler->cache_arg = 0; in sljit_emit_fast_enter()
1795 compiler->cache_argw = 0; in sljit_emit_fast_enter()
1796 return getput_arg(compiler, WORD_SIZE | STORE, TMP_REG2, dst, dstw, 0, 0); in sljit_emit_fast_enter()
1799 SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_emit_fast_return(struct sljit_compiler *compiler, sljit_si … in sljit_emit_fast_return() argument
1802 check_sljit_emit_fast_return(compiler, src, srcw); in sljit_emit_fast_return()
1806 FAIL_IF(push_inst16(compiler, MOV | SET_REGS44(TMP_REG3, src))); in sljit_emit_fast_return()
1808 if (getput_arg_fast(compiler, WORD_SIZE, TMP_REG3, src, srcw)) in sljit_emit_fast_return()
1809 FAIL_IF(compiler->error); in sljit_emit_fast_return()
1811 compiler->cache_arg = 0; in sljit_emit_fast_return()
1812 compiler->cache_argw = 0; in sljit_emit_fast_return()
1813 FAIL_IF(getput_arg(compiler, WORD_SIZE, TMP_REG2, src, srcw, 0, 0)); in sljit_emit_fast_return()
1814 FAIL_IF(push_inst16(compiler, MOV | SET_REGS44(TMP_REG3, TMP_REG2))); in sljit_emit_fast_return()
1818 FAIL_IF(load_immediate(compiler, TMP_REG3, srcw)); in sljit_emit_fast_return()
1819 return push_inst16(compiler, BLX | RN3(TMP_REG3)); in sljit_emit_fast_return()
1880 SLJIT_API_FUNC_ATTRIBUTE struct sljit_label* sljit_emit_label(struct sljit_compiler *compiler) in sljit_emit_label() argument
1885 check_sljit_emit_label(compiler); in sljit_emit_label()
1887 if (compiler->last_label && compiler->last_label->size == compiler->size) in sljit_emit_label()
1888 return compiler->last_label; in sljit_emit_label()
1890 label = (struct sljit_label*)ensure_abuf(compiler, sizeof(struct sljit_label)); in sljit_emit_label()
1892 set_label(label, compiler); in sljit_emit_label()
1896 SLJIT_API_FUNC_ATTRIBUTE struct sljit_jump* sljit_emit_jump(struct sljit_compiler *compiler, sljit_… in sljit_emit_jump() argument
1902 check_sljit_emit_jump(compiler, type); in sljit_emit_jump()
1904 jump = (struct sljit_jump*)ensure_abuf(compiler, sizeof(struct sljit_jump)); in sljit_emit_jump()
1906 set_jump(jump, compiler, type & SLJIT_REWRITABLE_JUMP); in sljit_emit_jump()
1910 PTR_FAIL_IF(emit_imm32_const(compiler, TMP_REG1, 0)); in sljit_emit_jump()
1915 PTR_FAIL_IF(push_inst16(compiler, IT | (cc << 4) | 0x8)); in sljit_emit_jump()
1918 jump->addr = compiler->size; in sljit_emit_jump()
1920 PTR_FAIL_IF(push_inst16(compiler, BX | RN3(TMP_REG1))); in sljit_emit_jump()
1923 PTR_FAIL_IF(push_inst16(compiler, BLX | RN3(TMP_REG1))); in sljit_emit_jump()
1929 SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_emit_ijump(struct sljit_compiler *compiler, sljit_si type, … in sljit_emit_ijump() argument
1934 check_sljit_emit_ijump(compiler, type, src, srcw); in sljit_emit_ijump()
1940 return push_inst16(compiler, (type <= SLJIT_JUMP ? BX : BLX) | RN3(src)); in sljit_emit_ijump()
1942 FAIL_IF(emit_op_mem(compiler, WORD_SIZE, type <= SLJIT_JUMP ? TMP_PC : TMP_REG1, src, srcw)); in sljit_emit_ijump()
1944 return push_inst16(compiler, BLX | RN3(TMP_REG1)); in sljit_emit_ijump()
1947 jump = (struct sljit_jump*)ensure_abuf(compiler, sizeof(struct sljit_jump)); in sljit_emit_ijump()
1949 set_jump(jump, compiler, JUMP_ADDR | ((type >= SLJIT_FAST_CALL) ? IS_BL : 0)); in sljit_emit_ijump()
1952 FAIL_IF(emit_imm32_const(compiler, TMP_REG1, 0)); in sljit_emit_ijump()
1953 jump->addr = compiler->size; in sljit_emit_ijump()
1954 return push_inst16(compiler, (type <= SLJIT_JUMP ? BX : BLX) | RN3(TMP_REG1)); in sljit_emit_ijump()
1957 SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_emit_op_flags(struct sljit_compiler *compiler, sljit_si op, in sljit_emit_op_flags() argument
1966 check_sljit_emit_op_flags(compiler, op, dst, dstw, src, srcw, type); in sljit_emit_op_flags()
1978 FAIL_IF(push_inst16(compiler, IT | (cc << 4) | (((cc & 0x1) ^ 0x1) << 3) | 0x4)); in sljit_emit_op_flags()
1980 FAIL_IF(push_inst32(compiler, MOV_WI | RD4(dst_r) | 1)); in sljit_emit_op_flags()
1981 FAIL_IF(push_inst32(compiler, MOV_WI | RD4(dst_r) | 0)); in sljit_emit_op_flags()
1983 FAIL_IF(push_inst16(compiler, MOVSI | RDN3(dst_r) | 1)); in sljit_emit_op_flags()
1984 FAIL_IF(push_inst16(compiler, MOVSI | RDN3(dst_r) | 0)); in sljit_emit_op_flags()
1988 return emit_op_mem(compiler, WORD_SIZE | STORE, TMP_REG2, dst, dstw); in sljit_emit_op_flags()
1994 FAIL_IF(push_inst16(compiler, IT | (cc << 4) | 0x8)); in sljit_emit_op_flags()
1995 FAIL_IF(push_inst32(compiler, ins | RN4(src) | RD4(dst) | 1)); in sljit_emit_op_flags()
1999 return push_inst16(compiler, MOVS | RD3(TMP_REG1) | RN3(dst)); in sljit_emit_op_flags()
2000 return push_inst32(compiler, MOV_W | SET_FLAGS | RD4(TMP_REG1) | RM4(dst)); in sljit_emit_op_flags()
2005 compiler->cache_arg = 0; in sljit_emit_op_flags()
2006 compiler->cache_argw = 0; in sljit_emit_op_flags()
2008 FAIL_IF(emit_op_mem2(compiler, WORD_SIZE, TMP_REG2, src, srcw, dst, dstw)); in sljit_emit_op_flags()
2012 FAIL_IF(load_immediate(compiler, TMP_REG2, srcw)); in sljit_emit_op_flags()
2018 FAIL_IF(push_inst16(compiler, IT | (cc << 4) | (((cc & 0x1) ^ 0x1) << 3) | 0x4)); in sljit_emit_op_flags()
2019 FAIL_IF(push_inst32(compiler, ins | RN4(src) | RD4(dst_r) | 1)); in sljit_emit_op_flags()
2020 FAIL_IF(push_inst32(compiler, ins | RN4(src) | RD4(dst_r) | 0)); in sljit_emit_op_flags()
2023 FAIL_IF(push_inst16(compiler, IT | (cc << 4) | 0x8)); in sljit_emit_op_flags()
2024 FAIL_IF(push_inst32(compiler, ins | RN4(src) | RD4(dst_r) | 1)); in sljit_emit_op_flags()
2028 FAIL_IF(emit_op_mem2(compiler, WORD_SIZE | STORE, TMP_REG2, dst, dstw, 0, 0)); in sljit_emit_op_flags()
2033 return push_inst16(compiler, MOVS | RD3(TMP_REG1) | RN3(dst_r)); in sljit_emit_op_flags()
2034 return push_inst32(compiler, MOV_W | SET_FLAGS | RD4(TMP_REG1) | RM4(dst_r)); in sljit_emit_op_flags()
2039 SLJIT_API_FUNC_ATTRIBUTE struct sljit_const* sljit_emit_const(struct sljit_compiler *compiler, slji… in sljit_emit_const() argument
2045 check_sljit_emit_const(compiler, dst, dstw, init_value); in sljit_emit_const()
2048 const_ = (struct sljit_const*)ensure_abuf(compiler, sizeof(struct sljit_const)); in sljit_emit_const()
2050 set_const(const_, compiler); in sljit_emit_const()
2053 PTR_FAIL_IF(emit_imm32_const(compiler, dst_r, init_value)); in sljit_emit_const()
2056 PTR_FAIL_IF(emit_op_mem(compiler, WORD_SIZE | STORE, dst_r, dst, dstw)); in sljit_emit_const()