Home
last modified time | relevance | path

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

/third_party/pcre2/pcre2/src/sljit/
DsljitNativePPC_32.c52 SLJIT_ASSERT(src1 == TMP_REG1); in emit_single_op()
59 SLJIT_ASSERT(src1 == TMP_REG1); in emit_single_op()
68 SLJIT_ASSERT(dst == src2); in emit_single_op()
74 SLJIT_ASSERT(src1 == TMP_REG1); in emit_single_op()
81 SLJIT_ASSERT(dst == src2); in emit_single_op()
86 SLJIT_ASSERT(src1 == TMP_REG1); in emit_single_op()
90 SLJIT_ASSERT(src1 == TMP_REG1); in emit_single_op()
101 SLJIT_ASSERT(src2 == TMP_REG2); in emit_single_op()
114 SLJIT_ASSERT(src2 == TMP_REG2); in emit_single_op()
117 SLJIT_ASSERT(!(flags & ALT_FORM4)); in emit_single_op()
[all …]
DsljitNativePPC_64.c62 SLJIT_ASSERT(shift > 0); in load_immediate()
151 SLJIT_ASSERT(src1 == TMP_REG1); in emit_single_op()
158 SLJIT_ASSERT(src1 == TMP_REG1); in emit_single_op()
165 SLJIT_ASSERT(dst == src2); in emit_single_op()
171 SLJIT_ASSERT(src1 == TMP_REG1); in emit_single_op()
180 SLJIT_ASSERT(dst == src2); in emit_single_op()
186 SLJIT_ASSERT(src1 == TMP_REG1); in emit_single_op()
193 SLJIT_ASSERT(dst == src2); in emit_single_op()
198 SLJIT_ASSERT(src1 == TMP_REG1); in emit_single_op()
203 SLJIT_ASSERT(src1 == TMP_REG1); in emit_single_op()
[all …]
DsljitNativeARM_32.c160 SLJIT_ASSERT(compiler->cpool_fill > 0 && compiler->cpool_fill <= CPOOL_SIZE); in push_cpool()
237 SLJIT_ASSERT((inst & 0xfff) == 0); in push_inst_with_literal()
256 SLJIT_ASSERT(compiler->cpool_fill < CPOOL_SIZE && (inst & 0xfff) == 0); in push_inst_with_unique_literal()
281SLJIT_ASSERT(compiler->cpool_diff == CONST_POOL_EMPTY || compiler->size - compiler->cpool_diff < M… in emit_blx()
282 SLJIT_ASSERT(reg_map[TMP_REG1] != 14); in emit_blx()
295 SLJIT_ASSERT(const_pool - code_ptr <= CONST_POOL_ALIGNMENT); in patch_pc_relative_loads()
309 SLJIT_ASSERT(ind < cpool_size && !(*last_pc_patch & (1 << 25)) && (*last_pc_patch & (1 << 20))); in patch_pc_relative_loads()
318 SLJIT_ASSERT(diff >= 1); in patch_pc_relative_loads()
321 SLJIT_ASSERT(diff <= 0xfff); in patch_pc_relative_loads()
427 SLJIT_ASSERT(jump->flags & JUMP_LABEL); in detect_jump_type()
[all …]
DsljitNativeARM_T2_32.c213 SLJIT_ASSERT(!(inst & 0xffff0000)); in push_inst16()
243SLJIT_ASSERT(((inst[0] & 0xfbf0) == (MOVW >> 16)) && ((inst[2] & 0xfbf0) == (MOVT >> 16)) && dst =… in modify_imm32_const()
264 SLJIT_ASSERT(jump->flags & JUMP_LABEL); in detect_jump_type()
269 SLJIT_ASSERT(!(jump->flags & IS_BL)); in detect_jump_type()
318 SLJIT_ASSERT(jump->u.target & 0x1); in set_jump_instruction()
322 SLJIT_ASSERT(jump->u.label->addr & 0x1); in set_jump_instruction()
330 SLJIT_ASSERT(diff <= 127 && diff >= -128 && (jump->flags & IS_COND)); in set_jump_instruction()
335 SLJIT_ASSERT(diff <= 524287 && diff >= -524288 && (jump->flags & IS_COND)); in set_jump_instruction()
340 SLJIT_ASSERT(jump->flags & IS_COND); in set_jump_instruction()
347 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()
169 SLJIT_ASSERT(!(flags & EX86_SHIFT_INS) || a == SLJIT_PREF_SHIFT_REG); in emit_x86_instruction()
285 SLJIT_ASSERT(reg_map[TMP_REG2] >= 8); in generate_far_jump_code()
325 SLJIT_ASSERT((code_ptr[0] & 0xf8) == REX_W); in generate_put_label_code()
326 SLJIT_ASSERT((code_ptr[1] & 0xf8) == MOV_r_i32); in generate_put_label_code()
[all …]
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()
141 SLJIT_ASSERT(!(op & SLJIT_32)); \
168 SLJIT_ASSERT(src1 == TMP_REG1 && !(flags & SRC2_IMM)); in emit_single_op()
174 SLJIT_ASSERT(src1 == TMP_REG1 && !(flags & SRC2_IMM)); in emit_single_op()
177 SLJIT_ASSERT(dst == src2); in emit_single_op()
181 SLJIT_ASSERT(src1 == TMP_REG1 && !(flags & SRC2_IMM)); in emit_single_op()
190 SLJIT_ASSERT(dst == src2); in emit_single_op()
194 SLJIT_ASSERT(src1 == TMP_REG1 && !(flags & SRC2_IMM)); in emit_single_op()
197 SLJIT_ASSERT(dst == src2); in emit_single_op()
[all …]
DsljitNativeS390X.c143 SLJIT_ASSERT(r >= 0 && r < (sljit_s32)(sizeof(reg_map) / sizeof(reg_map[0]))); in gpr()
149 SLJIT_ASSERT(r >= 0 && r < (sljit_s32)(sizeof(freg_map) / sizeof(freg_map[0]))); in fgpr()
185 SLJIT_ASSERT((size & 6) == size); in encode_inst()
361 SLJIT_ASSERT(hwcap != 0); in get_hwcap()
386 SLJIT_ASSERT(x < size * 8); in have_facility_dynamic()
398 SLJIT_ASSERT(cpu_features.bits[0] != 0); in have_facility_dynamic()
440 SLJIT_ASSERT(is_s20(d)); in HAVE_FACILITY()
577 SLJIT_ASSERT(have_eimm()); \
613 SLJIT_ASSERT((d & 0xfff) == d); \
645 SLJIT_ASSERT(cond); \
[all …]
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()
123 SLJIT_ASSERT(!(flags & EX86_SHIFT_INS) || a == SLJIT_PREF_SHIFT_REG); in emit_x86_instruction()
408 SLJIT_ASSERT(word_arg_count <= 3 || (status & ENTER_TMP_TO_R4)); in sljit_emit_enter()
419 SLJIT_ASSERT(saved_arg_count <= 3 || (status & ENTER_TMP_TO_S)); in sljit_emit_enter()
447 SLJIT_ASSERT(SLJIT_LOCALS_OFFSET > 0); in sljit_emit_enter()
450 SLJIT_ASSERT(r2_offset == -1 || local_size > 4 * 4096); in sljit_emit_enter()
[all …]
DsljitNativeMIPS_32.c76 SLJIT_ASSERT(src1 == TMP_REG1 && !(flags & SRC2_IMM)); in emit_single_op()
82 SLJIT_ASSERT(src1 == TMP_REG1 && !(flags & SRC2_IMM)); in emit_single_op()
85 SLJIT_ASSERT(dst == src2); in emit_single_op()
89 SLJIT_ASSERT(src1 == TMP_REG1 && !(flags & SRC2_IMM)); in emit_single_op()
98 SLJIT_ASSERT(dst == src2); in emit_single_op()
102 SLJIT_ASSERT(src1 == TMP_REG1 && !(flags & SRC2_IMM)); in emit_single_op()
105 SLJIT_ASSERT(dst == src2); in emit_single_op()
109 SLJIT_ASSERT(src1 == TMP_REG1 && !(flags & SRC2_IMM)); in emit_single_op()
118 SLJIT_ASSERT(dst == src2); in emit_single_op()
122 SLJIT_ASSERT(src1 == TMP_REG1 && !(flags & SRC2_IMM)); in emit_single_op()
[all …]
DsljitNativeARM_64.c172 SLJIT_ASSERT(jump->flags & JUMP_LABEL); in detect_jump_type()
271 SLJIT_ASSERT(!label || label->size >= word_count); in sljit_generate_code()
272 SLJIT_ASSERT(!jump || jump->addr >= word_count); in sljit_generate_code()
273 SLJIT_ASSERT(!const_ || const_->addr >= word_count); in sljit_generate_code()
274 SLJIT_ASSERT(!put_label || put_label->addr >= word_count); in sljit_generate_code()
292 SLJIT_ASSERT(put_label->label); in sljit_generate_code()
312 SLJIT_ASSERT(!label); in sljit_generate_code()
313 SLJIT_ASSERT(!jump); in sljit_generate_code()
314 SLJIT_ASSERT(!const_); in sljit_generate_code()
315 SLJIT_ASSERT(!put_label); in sljit_generate_code()
[all …]
DsljitNativeSPARC_32.c45 SLJIT_ASSERT(src1 == TMP_REG1 && !(flags & SRC2_IMM)); in emit_single_op()
52 SLJIT_ASSERT(src1 == TMP_REG1 && !(flags & SRC2_IMM)); in emit_single_op()
59 SLJIT_ASSERT(dst == src2); in emit_single_op()
64 SLJIT_ASSERT(src1 == TMP_REG1 && !(flags & SRC2_IMM)); in emit_single_op()
69 SLJIT_ASSERT(dst == src2); in emit_single_op()
73 SLJIT_ASSERT(src1 == TMP_REG1 && !(flags & SRC2_IMM)); in emit_single_op()
77 SLJIT_ASSERT(src1 == TMP_REG1 && !(flags & SRC2_IMM)); in emit_single_op()
272 SLJIT_ASSERT(((inst[0] & 0xc1c00000) == 0x01000000) && ((inst[1] & 0xc1f82000) == 0x80102000)); in sljit_set_jump_addr()
DsljitConfigInternal.h31 || (defined SLJIT_DEBUG && SLJIT_DEBUG && (!defined(SLJIT_ASSERT) || !defined(SLJIT_UNREACHABLE)))
36 && (!defined(SLJIT_ASSERT) || !defined(SLJIT_UNREACHABLE) || !defined(SLJIT_HALT_PROCESS)))
820 #if !defined(SLJIT_ASSERT) || !defined(SLJIT_UNREACHABLE)
831 #ifndef SLJIT_ASSERT
833 #define SLJIT_ASSERT(x) \ macro
856 #undef SLJIT_ASSERT
859 #define SLJIT_ASSERT(x) \ macro
DsljitNativePPC_common.c281 SLJIT_ASSERT(jump->flags & JUMP_LABEL); in detect_jump_type()
360 SLJIT_ASSERT(addr < 0x100000000l); in put_label_set()
365 SLJIT_ASSERT(addr < 0x1000000000000l); in put_label_set()
432 SLJIT_ASSERT(!label || label->size >= word_count); in sljit_generate_code()
433 SLJIT_ASSERT(!jump || jump->addr >= word_count); in sljit_generate_code()
434 SLJIT_ASSERT(!const_ || const_->addr >= word_count); in sljit_generate_code()
435 SLJIT_ASSERT(!put_label || put_label->addr >= word_count); in sljit_generate_code()
465 SLJIT_ASSERT((code_ptr[-3] & 0xfc00ffff) == 0x780007c6); in sljit_generate_code()
490 SLJIT_ASSERT(put_label->label); in sljit_generate_code()
513 SLJIT_ASSERT(!label); in sljit_generate_code()
[all …]
DsljitNativeSPARC_common.c211 SLJIT_ASSERT((delay_slot & DST_INS_MASK) == UNMOVABLE_INS in push_inst()
235 SLJIT_ASSERT(jump->flags & JUMP_LABEL); in detect_jump_type()
338 SLJIT_ASSERT(!label || label->size >= word_count); in sljit_generate_code()
339 SLJIT_ASSERT(!jump || jump->addr >= word_count); in sljit_generate_code()
340 SLJIT_ASSERT(!const_ || const_->addr >= word_count); in sljit_generate_code()
341 SLJIT_ASSERT(!put_label || put_label->addr >= word_count); in sljit_generate_code()
365 SLJIT_ASSERT(put_label->label); in sljit_generate_code()
384 SLJIT_ASSERT(!label); in sljit_generate_code()
385 SLJIT_ASSERT(!jump); in sljit_generate_code()
386 SLJIT_ASSERT(!const_); in sljit_generate_code()
[all …]
DsljitNativeMIPS_common.c297 SLJIT_ASSERT(delay_slot == MOVABLE_INS || delay_slot >= UNMOVABLE_INS in push_inst()
336 SLJIT_ASSERT(jump->flags & JUMP_LABEL); in detect_jump_type()
482 SLJIT_ASSERT(addr < 0x80000000l); in put_label_set()
486 SLJIT_ASSERT(addr < 0x800000000000l); in put_label_set()
547 SLJIT_ASSERT(!label || label->size >= word_count); in sljit_generate_code()
548 SLJIT_ASSERT(!jump || jump->addr >= word_count); in sljit_generate_code()
549 SLJIT_ASSERT(!const_ || const_->addr >= word_count); in sljit_generate_code()
550 SLJIT_ASSERT(!put_label || put_label->addr >= word_count); in sljit_generate_code()
572 SLJIT_ASSERT(put_label->label); in sljit_generate_code()
595 SLJIT_ASSERT(!label); in sljit_generate_code()
[all …]
DsljitWXExecAllocator.c171 SLJIT_ASSERT(start < end); in sljit_update_wx_flags()
203 SLJIT_ASSERT(!(start & page_mask)); in sljit_free_exec()
216 SLJIT_ASSERT(start < end); in sljit_update_wx_flags()
DsljitNativeX86_common.c560 SLJIT_ASSERT(*buf_ptr == 3); in sljit_generate_code()
561 SLJIT_ASSERT(put_label->label); in sljit_generate_code()
572 SLJIT_ASSERT(buf_ptr == buf_end); in sljit_generate_code()
576 SLJIT_ASSERT(!label); in sljit_generate_code()
577 SLJIT_ASSERT(!jump); in sljit_generate_code()
578 SLJIT_ASSERT(!const_); in sljit_generate_code()
579 SLJIT_ASSERT(!put_label); in sljit_generate_code()
580 SLJIT_ASSERT(code_ptr <= code + compiler->size); in sljit_generate_code()
587SLJIT_ASSERT((sljit_sw)(jump->u.label->addr - (jump_addr + sizeof(sljit_s8))) >= -128 && (sljit_sw… in sljit_generate_code()
594SLJIT_ASSERT((sljit_sw)(jump->u.label->addr - (jump_addr + sizeof(sljit_s32))) >= HALFWORD_MIN && … 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.c334 #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 …]