Home
last modified time | relevance | path

Searched refs:SLJIT_ASSERT (Results 1 – 23 of 23) sorted by relevance

/third_party/pcre2/pcre2/src/sljit/
DsljitNativePPC_32.c55 SLJIT_ASSERT(src1 == TMP_REG1); in emit_single_op()
62 SLJIT_ASSERT(src1 == TMP_REG1); in emit_single_op()
71 SLJIT_ASSERT(dst == src2); in emit_single_op()
77 SLJIT_ASSERT(src1 == TMP_REG1); in emit_single_op()
84 SLJIT_ASSERT(dst == src2); in emit_single_op()
89 SLJIT_ASSERT(src1 == TMP_REG1); in emit_single_op()
93 SLJIT_ASSERT(src1 == TMP_REG1); in emit_single_op()
97 SLJIT_ASSERT(src1 == TMP_REG1); in emit_single_op()
114 SLJIT_ASSERT(src2 == TMP_REG2); in emit_single_op()
129 SLJIT_ASSERT(src2 == TMP_REG2); in emit_single_op()
[all …]
DsljitNativePPC_64.c63 SLJIT_ASSERT(shift > 0); in load_immediate()
155 SLJIT_ASSERT(src1 == TMP_REG1); in emit_single_op()
162 SLJIT_ASSERT(src1 == TMP_REG1); in emit_single_op()
169 SLJIT_ASSERT(dst == src2); in emit_single_op()
175 SLJIT_ASSERT(src1 == TMP_REG1); in emit_single_op()
184 SLJIT_ASSERT(dst == src2); in emit_single_op()
190 SLJIT_ASSERT(src1 == TMP_REG1); in emit_single_op()
197 SLJIT_ASSERT(dst == src2); in emit_single_op()
202 SLJIT_ASSERT(src1 == TMP_REG1); in emit_single_op()
207 SLJIT_ASSERT(src1 == TMP_REG1); in emit_single_op()
[all …]
DsljitNativeRISCV_64.c31 SLJIT_ASSERT(dst_r != tmp_r); in load_immediate()
38 SLJIT_ASSERT((imm & 0x800) != 0); in load_immediate()
63 SLJIT_ASSERT((high & 0x800) != 0); in load_immediate()
105 SLJIT_ASSERT((imm & 0x800) != 0); in load_immediate()
171 SLJIT_ASSERT((inst[0] & 0x7f) == LUI); in sljit_set_jump_addr()
173 SLJIT_ASSERT((inst[1] & 0x707f) == ADDI); in sljit_set_jump_addr()
175 SLJIT_ASSERT((inst[2] & 0x7f) == LUI); in sljit_set_jump_addr()
177 SLJIT_ASSERT((inst[5] & 0x707f) == ADDI || (inst[5] & 0x707f) == JALR); in sljit_set_jump_addr()
DsljitNativeARM_32.c164 SLJIT_ASSERT(compiler->cpool_fill > 0 && compiler->cpool_fill <= CPOOL_SIZE); in push_cpool()
241 SLJIT_ASSERT((inst & 0xfff) == 0); in push_inst_with_literal()
260 SLJIT_ASSERT(compiler->cpool_fill < CPOOL_SIZE && (inst & 0xfff) == 0); in push_inst_with_unique_literal()
285SLJIT_ASSERT(compiler->cpool_diff == CONST_POOL_EMPTY || compiler->size - compiler->cpool_diff < M… in emit_blx()
286 SLJIT_ASSERT(reg_map[TMP_REG1] != 14); in emit_blx()
299 SLJIT_ASSERT(const_pool - code_ptr <= CONST_POOL_ALIGNMENT); in patch_pc_relative_loads()
313 SLJIT_ASSERT(ind < cpool_size && !(*last_pc_patch & (1 << 25)) && (*last_pc_patch & (1 << 20))); in patch_pc_relative_loads()
322 SLJIT_ASSERT(diff >= 1); in patch_pc_relative_loads()
325 SLJIT_ASSERT(diff <= 0xfff); in patch_pc_relative_loads()
431 SLJIT_ASSERT(jump->flags & JUMP_LABEL); in detect_jump_type()
[all …]
DsljitNativeARM_T2_32.c218 SLJIT_ASSERT(!(inst & 0xffff0000)); in push_inst16()
248SLJIT_ASSERT(((inst[0] & 0xfbf0) == (MOVW >> 16)) && ((inst[2] & 0xfbf0) == (MOVT >> 16)) && dst =… in modify_imm32_const()
269 SLJIT_ASSERT(jump->flags & JUMP_LABEL); in detect_jump_type()
274 SLJIT_ASSERT(!(jump->flags & IS_BL)); in detect_jump_type()
323 SLJIT_ASSERT(jump->u.target & 0x1); in set_jump_instruction()
327 SLJIT_ASSERT(jump->u.label->addr & 0x1); in set_jump_instruction()
335 SLJIT_ASSERT(diff <= 127 && diff >= -128 && (jump->flags & IS_COND)); in set_jump_instruction()
340 SLJIT_ASSERT(diff <= 524287 && diff >= -524288 && (jump->flags & IS_COND)); in set_jump_instruction()
345 SLJIT_ASSERT(jump->flags & IS_COND); in set_jump_instruction()
352 SLJIT_ASSERT(diff <= 1023 && diff >= -1024 && !(jump->flags & IS_COND)); in set_jump_instruction()
[all …]
DsljitNativeX86_64.c75 SLJIT_ASSERT(!(a & SLJIT_IMM) || compiler->mode32 || IS_HALFWORD(imma)); in emit_x86_instruction()
77 SLJIT_ASSERT((flags & (EX86_BIN_INS | EX86_SHIFT_INS)) != (EX86_BIN_INS | EX86_SHIFT_INS)); in emit_x86_instruction()
79SLJIT_ASSERT(!(flags & (EX86_BIN_INS | EX86_SHIFT_INS)) || (flags & (EX86_BYTE_ARG | EX86_HALF_ARG… in emit_x86_instruction()
81 SLJIT_ASSERT((flags & (EX86_BYTE_ARG | EX86_HALF_ARG)) != (EX86_BYTE_ARG | EX86_HALF_ARG)); in emit_x86_instruction()
83 SLJIT_ASSERT(!(a & SLJIT_IMM) || !(flags & EX86_SSE2)); in emit_x86_instruction()
84 SLJIT_ASSERT((flags & (EX86_PREF_F2 | EX86_PREF_F3)) != (EX86_PREF_F2 | EX86_PREF_F3) in emit_x86_instruction()
160 SLJIT_ASSERT(imma <= (compiler->mode32 ? 0x1f : 0x3f)); in emit_x86_instruction()
173 SLJIT_ASSERT(!(flags & EX86_SHIFT_INS) || a == SLJIT_PREF_SHIFT_REG); in emit_x86_instruction()
295 SLJIT_ASSERT(reg_map[TMP_REG2] >= 8); in generate_far_jump_code()
335 SLJIT_ASSERT((code_ptr[0] & 0xf8) == REX_W); in generate_put_label_code()
[all …]
DsljitNativeRISCV_32.c30 SLJIT_ASSERT(dst_r != tmp_r); in load_immediate()
65 SLJIT_ASSERT((inst[0] & 0x7f) == LUI); in sljit_set_jump_addr()
67 SLJIT_ASSERT((inst[1] & 0x707f) == ADDI || (inst[1] & 0x707f) == JALR); in sljit_set_jump_addr()
DsljitNativeARM_64.c174 SLJIT_ASSERT(jump->flags & JUMP_LABEL); in detect_jump_type()
273 SLJIT_ASSERT(!label || label->size >= word_count); in sljit_generate_code()
274 SLJIT_ASSERT(!jump || jump->addr >= word_count); in sljit_generate_code()
275 SLJIT_ASSERT(!const_ || const_->addr >= word_count); in sljit_generate_code()
276 SLJIT_ASSERT(!put_label || put_label->addr >= word_count); in sljit_generate_code()
294 SLJIT_ASSERT(put_label->label); in sljit_generate_code()
314 SLJIT_ASSERT(!label); in sljit_generate_code()
315 SLJIT_ASSERT(!jump); in sljit_generate_code()
316 SLJIT_ASSERT(!const_); in sljit_generate_code()
317 SLJIT_ASSERT(!put_label); in sljit_generate_code()
[all …]
DsljitConfigInternal.h31 || (defined SLJIT_DEBUG && SLJIT_DEBUG && (!defined(SLJIT_ASSERT) || !defined(SLJIT_UNREACHABLE)))
36 && (!defined(SLJIT_ASSERT) || !defined(SLJIT_UNREACHABLE) || !defined(SLJIT_HALT_PROCESS)))
794 #if !defined(SLJIT_ASSERT) || !defined(SLJIT_UNREACHABLE)
805 #ifndef SLJIT_ASSERT
807 #define SLJIT_ASSERT(x) \ macro
830 #undef SLJIT_ASSERT
833 #define SLJIT_ASSERT(x) \ macro
DsljitNativeX86_32.c59 SLJIT_ASSERT((flags & (EX86_BIN_INS | EX86_SHIFT_INS)) != (EX86_BIN_INS | EX86_SHIFT_INS)); in emit_x86_instruction()
61SLJIT_ASSERT(!(flags & (EX86_BIN_INS | EX86_SHIFT_INS)) || (flags & (EX86_BYTE_ARG | EX86_HALF_ARG… in emit_x86_instruction()
63 SLJIT_ASSERT((flags & (EX86_BYTE_ARG | EX86_HALF_ARG)) != (EX86_BYTE_ARG | EX86_HALF_ARG)); in emit_x86_instruction()
65 SLJIT_ASSERT(!(a & SLJIT_IMM) || !(flags & EX86_SSE2)); in emit_x86_instruction()
66 SLJIT_ASSERT((flags & (EX86_PREF_F2 | EX86_PREF_F3)) != (EX86_PREF_F2 | EX86_PREF_F3) in emit_x86_instruction()
117 SLJIT_ASSERT(imma <= 0x1f); in emit_x86_instruction()
130 SLJIT_ASSERT(!(flags & EX86_SHIFT_INS) || a == SLJIT_PREF_SHIFT_REG); in emit_x86_instruction()
388SLJIT_ASSERT(word_arg_count <= 3 || (word_arg_count == 4 && !(status & (ENTER_TMP_TO_R4 | ENTER_TM… in sljit_emit_enter()
409 SLJIT_ASSERT(SLJIT_LOCALS_OFFSET > 0); in sljit_emit_enter()
412 SLJIT_ASSERT(r2_offset == -1 || local_size > 4 * 4096); in sljit_emit_enter()
[all …]
DsljitNativeRISCV_common.c180 SLJIT_ASSERT(jump->flags & JUMP_LABEL); in detect_jump_type()
321 SLJIT_ASSERT(addr <= S32_MAX); in load_addr_to_reg()
325 SLJIT_ASSERT((sljit_uw)high <= 0x7fffffff); in load_addr_to_reg()
328 SLJIT_ASSERT((high & 0x800) != 0); in load_addr_to_reg()
351 SLJIT_ASSERT(addr <= S52_MAX); in load_addr_to_reg()
367 SLJIT_ASSERT((inst[1] & 0x707f) == JALR); in load_addr_to_reg()
414 SLJIT_ASSERT(!label || label->size >= word_count); in sljit_generate_code()
415 SLJIT_ASSERT(!jump || jump->addr >= word_count); in sljit_generate_code()
416 SLJIT_ASSERT(!const_ || const_->addr >= word_count); in sljit_generate_code()
417 SLJIT_ASSERT(!put_label || put_label->addr >= word_count); in sljit_generate_code()
[all …]
DsljitNativeS390X.c140 SLJIT_ASSERT(r >= 0 && r < (sljit_s32)(sizeof(reg_map) / sizeof(reg_map[0]))); in gpr()
146 SLJIT_ASSERT(r >= 0 && r < (sljit_s32)(sizeof(freg_map) / sizeof(freg_map[0]))); in fgpr()
182 SLJIT_ASSERT((size & 6) == size); in encode_inst()
378 SLJIT_ASSERT(hwcap != 0); in get_hwcap()
403 SLJIT_ASSERT(x < size * 8); in have_facility_dynamic()
415 SLJIT_ASSERT(cpu_features.bits[0] != 0); in have_facility_dynamic()
457 SLJIT_ASSERT(is_s20(d)); in HAVE_FACILITY()
594 SLJIT_ASSERT(have_eimm()); \
630 SLJIT_ASSERT((d & 0xfff) == d); \
662 SLJIT_ASSERT(cond); \
[all …]
DsljitNativeMIPS_32.c53 SLJIT_ASSERT((inst[0] & 0xffe00000) == LUI && (inst[1] & 0xfc000000) == ORI); in sljit_set_jump_addr()
78 SLJIT_ASSERT(reg_map[TMP_REG1] == 4 && freg_map[TMP_FREG1] == 12); in call_with_args()
119 SLJIT_ASSERT(offset <= 8 * sizeof(sljit_sw)); in call_with_args()
147 SLJIT_ASSERT((*offsets_ptr >> 2) == 2); in call_with_args()
215 SLJIT_ASSERT(DR(PIC_ADDR_REG) == 25 && PIC_ADDR_REG == TMP_REG2); in sljit_emit_call()
286 SLJIT_ASSERT(DR(PIC_ADDR_REG) == 25 && PIC_ADDR_REG == TMP_REG2); in sljit_emit_icall()
DsljitWXExecAllocator.c146 SLJIT_ASSERT(start < end); in sljit_update_wx_flags()
178 SLJIT_ASSERT(!(start & page_mask)); in sljit_free_exec()
191 SLJIT_ASSERT(start < end); in sljit_update_wx_flags()
DsljitNativeMIPS_64.c74SLJIT_ASSERT(((uimm & 0xc000000000000000l) == 0x4000000000000000l) && (shift > 0) && (shift <= 32)… in load_immediate()
111 SLJIT_ASSERT((uimm & 0x8000000000000000l) && (shift2 > 0) && (shift2 <= 16)); in load_immediate()
160 SLJIT_ASSERT(reg_map[TMP_REG1] == 4 && freg_map[TMP_FREG1] == 12); in call_with_args()
244 SLJIT_ASSERT(DR(PIC_ADDR_REG) == 25 && PIC_ADDR_REG == TMP_REG2); in sljit_emit_call()
301 SLJIT_ASSERT(DR(PIC_ADDR_REG) == 25 && PIC_ADDR_REG == TMP_REG2); in sljit_emit_icall()
DsljitNativeMIPS_common.c330 SLJIT_ASSERT(delay_slot == MOVABLE_INS || delay_slot >= UNMOVABLE_INS in push_inst()
371 SLJIT_ASSERT(jump->flags & JUMP_LABEL); in detect_jump_type()
547 SLJIT_ASSERT(addr < 0x80000000l); in load_addr_to_reg()
551 SLJIT_ASSERT(addr < 0x800000000000l); in load_addr_to_reg()
611 SLJIT_ASSERT(!label || label->size >= word_count); in sljit_generate_code()
612 SLJIT_ASSERT(!jump || jump->addr >= word_count); in sljit_generate_code()
613 SLJIT_ASSERT(!const_ || const_->addr >= word_count); in sljit_generate_code()
614 SLJIT_ASSERT(!put_label || put_label->addr >= word_count); in sljit_generate_code()
637 SLJIT_ASSERT(put_label->label); in sljit_generate_code()
663 SLJIT_ASSERT(!label); in sljit_generate_code()
[all …]
DsljitNativePPC_common.c301 SLJIT_ASSERT(jump->flags & JUMP_LABEL); in detect_jump_type()
380 SLJIT_ASSERT(addr < 0x100000000l); in put_label_set()
385 SLJIT_ASSERT(addr < 0x1000000000000l); in put_label_set()
452 SLJIT_ASSERT(!label || label->size >= word_count); in sljit_generate_code()
453 SLJIT_ASSERT(!jump || jump->addr >= word_count); in sljit_generate_code()
454 SLJIT_ASSERT(!const_ || const_->addr >= word_count); in sljit_generate_code()
455 SLJIT_ASSERT(!put_label || put_label->addr >= word_count); in sljit_generate_code()
485 SLJIT_ASSERT((code_ptr[-3] & 0xfc00ffff) == 0x780007c6); in sljit_generate_code()
510 SLJIT_ASSERT(put_label->label); in sljit_generate_code()
533 SLJIT_ASSERT(!label); in sljit_generate_code()
[all …]
DsljitNativeX86_common.c651 SLJIT_ASSERT(*buf_ptr == 3); in sljit_generate_code()
652 SLJIT_ASSERT(put_label->label); in sljit_generate_code()
663 SLJIT_ASSERT(buf_ptr == buf_end); in sljit_generate_code()
667 SLJIT_ASSERT(!label); in sljit_generate_code()
668 SLJIT_ASSERT(!jump); in sljit_generate_code()
669 SLJIT_ASSERT(!const_); in sljit_generate_code()
670 SLJIT_ASSERT(!put_label); in sljit_generate_code()
671 SLJIT_ASSERT(code_ptr <= code + compiler->size); in sljit_generate_code()
685 SLJIT_ASSERT((sljit_sw)jump_addr >= -128 && (sljit_sw)jump_addr <= 127); in sljit_generate_code()
692 SLJIT_ASSERT((sljit_sw)jump_addr >= HALFWORD_MIN && (sljit_sw)jump_addr <= HALFWORD_MAX); in sljit_generate_code()
[all …]
DsljitProtExecAllocator.c147 SLJIT_ASSERT(tmp_name_len > 0 && tmp_name_len < sizeof(tmp_name)); in create_tempfile()
310 SLJIT_ASSERT(free_blocks == free_block); in sljit_remove_free_block()
467 SLJIT_ASSERT((total_size && free_blocks) || (!total_size && !free_blocks)); in sljit_free_unused_memory_exec()
DsljitExecAllocator.c264 SLJIT_ASSERT(free_blocks == free_block); in sljit_remove_free_block()
408 SLJIT_ASSERT((total_size && free_blocks) || (!total_size && !free_blocks)); in sljit_free_unused_memory_exec()
DsljitLir.c338 #define CHECK_ARGUMENT(x) SLJIT_ASSERT(x)
573 SLJIT_ASSERT(size <= 256); in ensure_buf()
592 SLJIT_ASSERT(size <= 256); in ensure_abuf()
/third_party/pcre2/pcre2/src/
Dpcre2_jit_compile.c839 SLJIT_ASSERT((*cc >= OP_ASSERT && *cc <= OP_ASSERTBACK_NA) || (*cc >= OP_ONCE && *cc <= OP_SCOND)); in bracketend()
841 SLJIT_ASSERT(*cc >= OP_KET && *cc <= OP_KETRPOS); in bracketend()
849 SLJIT_ASSERT((*cc >= OP_ASSERT && *cc <= OP_ASSERTBACK_NA) || (*cc >= OP_ONCE && *cc <= OP_SCOND)); in no_alternatives()
856 SLJIT_ASSERT(*cc >= OP_KET && *cc <= OP_KETRPOS); in no_alternatives()
1255 SLJIT_ASSERT(*cc == OP_ONCE || *cc == OP_BRA || *cc == OP_CBRA); in detect_early_fail()
1256 SLJIT_ASSERT(*cc != OP_CBRA || common->optimized_cbracket[GET2(cc, 1 + LINK_SIZE)] != 0); in detect_early_fail()
1257 SLJIT_ASSERT(start < EARLY_FAIL_ENHANCE_MAX); in detect_early_fail()
1510 SLJIT_ASSERT(PRIVATE_DATA(cc) == 0); in detect_early_fail()
1897 SLJIT_ASSERT(cc != NULL); in set_private_data_ptrs()
1948 SLJIT_ASSERT(common->control_head_ptr != 0); in get_framesize()
[all …]
Dpcre2_jit_simd_inc.h106 SLJIT_ASSERT(dst_xmm_reg < 8); in load_from_mem_sse2()
107 SLJIT_ASSERT(src_general_reg < 8); in load_from_mem_sse2()
133 SLJIT_ASSERT(step >= 0 && step <= 3); in fast_forward_char_pair_sse2_compare()
247 SLJIT_ASSERT(tmp1_reg_ind < 8); in fast_forward_char_simd()
351 SLJIT_ASSERT(common->mode == PCRE2_JIT_COMPLETE); in fast_forward_char_simd()
406 SLJIT_ASSERT(tmp1_reg_ind < 8); in fast_requested_char_simd()
529 SLJIT_ASSERT(common->mode == PCRE2_JIT_COMPLETE && offs1 > offs2); in fast_forward_char_pair_simd()
530 SLJIT_ASSERT(diff <= IN_UCHARS(max_fast_forward_char_pair_offset())); in fast_forward_char_pair_simd()
531 SLJIT_ASSERT(tmp1_reg_ind < 8 && tmp2_reg_ind == 1); in fast_forward_char_pair_simd()
992 SLJIT_ASSERT(0 < n && n < VECTOR_FACTOR); in shift_left_n_lanes()
[all …]