/third_party/python/Lib/test/ |
H A D | test__opcode.py | 38 self.assertEqual(stack_effect(JUMP_IF_TRUE_OR_POP, 0, jump=True), 0) 39 self.assertEqual(stack_effect(JUMP_IF_TRUE_OR_POP, 0, jump=False), -1) 42 self.assertEqual(stack_effect(FOR_ITER, 0, jump=True), -1) 43 self.assertEqual(stack_effect(FOR_ITER, 0, jump=False), 1) 46 self.assertEqual(stack_effect(JUMP_FORWARD, 0, jump=True), 0) 47 self.assertEqual(stack_effect(JUMP_FORWARD, 0, jump=False), 0) 54 jump = stack_effect(code, jump=True) 55 nojump = stack_effect(code, jump=False) 58 jump [all...] |
/third_party/libphonenumber/metadata/src/test/java/com/google/i18n/phonenumbers/metadata/finitestatematcher/compiler/ |
H A D | MatcherCompilerTest.java | 84 // Each branch should jump to a 2 byte sequence between 10 and 28 bytes away (inclusive). in testMapOperation() 89 for (byte jump : new byte[] {0xA, 0xC, 0xE, 0x10, 0x12, 0x14, 0x16, 0x18, 0x1A, 0x1C}) { in testMapOperation() 90 Assert.assertTrue(jumpTable.contains(jump)); in testMapOperation() 91 int index = jumpTable.indexOf(jump); in testMapOperation() 92 // Subtract the length of the jump table to get relative offset in remaining code. in testMapOperation() 93 jump = (byte) (jump - 10); in testMapOperation() 94 // Each jump should end in 2 single-byte instructions (match corresponding digit, terminate). in testMapOperation() 95 Assert.assertEquals(single(index), remainder.get(jump)); in testMapOperation() 96 Assert.assertEquals(TERMINATOR, remainder.get(jump in testMapOperation() [all...] |
/third_party/python/Modules/ |
H A D | _opcode.c | 20 jump: object = None 27 PyObject *jump) in _opcode_stack_effect_impl() 49 if (jump == Py_None) { in _opcode_stack_effect_impl() 52 else if (jump == Py_True) { in _opcode_stack_effect_impl() 55 else if (jump == Py_False) { in _opcode_stack_effect_impl() 60 "stack_effect: jump must be False, True or None"); in _opcode_stack_effect_impl() 26 _opcode_stack_effect_impl(PyObject *module, int opcode, PyObject *oparg, PyObject *jump) _opcode_stack_effect_impl() argument
|
/third_party/pcre2/pcre2/src/sljit/ |
H A D | sljitNativeMIPS_common.c | 351 static SLJIT_INLINE sljit_ins* detect_jump_type(struct sljit_jump *jump, sljit_ins *code, sljit_sw executable_offset) in detect_jump_type() argument 358 inst = (sljit_ins *)jump->addr; in detect_jump_type() 361 if (jump->flags & (SLJIT_REWRITABLE_JUMP | IS_CALL)) in detect_jump_type() 364 if (jump->flags & SLJIT_REWRITABLE_JUMP) in detect_jump_type() 368 if (jump->flags & JUMP_ADDR) in detect_jump_type() 369 target_addr = jump->u.target; in detect_jump_type() 371 SLJIT_ASSERT(jump->flags & JUMP_LABEL); in detect_jump_type() 372 target_addr = (sljit_uw)(code + jump->u.label->size) + (sljit_uw)executable_offset; in detect_jump_type() 375 if (jump->flags & IS_COND) in detect_jump_type() 379 if (jump in detect_jump_type() 522 struct sljit_jump *jump; load_addr_to_reg() local 583 struct sljit_jump *jump; sljit_generate_code() local 2894 struct sljit_jump *jump; sljit_emit_jump() local 3010 struct sljit_jump *jump; sljit_emit_cmp() local 3150 struct sljit_jump *jump = NULL; sljit_emit_ijump() local [all...] |
H A D | sljitNativeARM_64.c | 161 static SLJIT_INLINE sljit_sw detect_jump_type(struct sljit_jump *jump, sljit_ins *code_ptr, sljit_ins *code, sljit_sw executable_offset) in detect_jump_type() argument 166 if (jump->flags & SLJIT_REWRITABLE_JUMP) { in detect_jump_type() 167 jump->flags |= PATCH_ABS64; in detect_jump_type() 171 if (jump->flags & JUMP_ADDR) in detect_jump_type() 172 target_addr = jump->u.target; in detect_jump_type() 174 SLJIT_ASSERT(jump->flags & JUMP_LABEL); in detect_jump_type() 175 target_addr = (sljit_uw)(code + jump->u.label->size) + (sljit_uw)executable_offset; in detect_jump_type() 180 if (jump->flags & IS_COND) { in detect_jump_type() 183 code_ptr[-5] ^= (jump->flags & IS_CBZ) ? (0x1 << 24) : 0x1; in detect_jump_type() 184 jump in detect_jump_type() 245 struct sljit_jump *jump; sljit_generate_code() local 1956 struct sljit_jump *jump; sljit_emit_jump() local 1999 struct sljit_jump *jump; emit_cmp_to0() local 2033 struct sljit_jump *jump; sljit_emit_ijump() local [all...] |
H A D | sljitNativePPC_common.c | 284 static SLJIT_INLINE sljit_s32 detect_jump_type(struct sljit_jump *jump, sljit_ins *code_ptr, sljit_ins *code, sljit_sw executable_offset) in detect_jump_type() argument 291 if (jump->flags & (SLJIT_REWRITABLE_JUMP | IS_CALL)) in detect_jump_type() 294 if (jump->flags & SLJIT_REWRITABLE_JUMP) in detect_jump_type() 298 if (jump->flags & JUMP_ADDR) in detect_jump_type() 299 target_addr = jump->u.target; in detect_jump_type() 301 SLJIT_ASSERT(jump->flags & JUMP_LABEL); in detect_jump_type() 302 target_addr = (sljit_uw)(code + jump->u.label->size) + (sljit_uw)executable_offset; in detect_jump_type() 306 if (jump->flags & IS_CALL) in detect_jump_type() 313 if (jump->flags & IS_COND) { in detect_jump_type() 315 jump in detect_jump_type() 417 struct sljit_jump *jump; sljit_generate_code() local 2291 struct sljit_jump *jump; sljit_emit_jump() local 2346 struct sljit_jump *jump = NULL; sljit_emit_ijump() local [all...] |
H A D | sljitNativeARM_32.c | 417 static SLJIT_INLINE sljit_s32 detect_jump_type(struct sljit_jump *jump, sljit_uw *code_ptr, sljit_uw *code, sljit_sw executable_offset) in detect_jump_type() argument 421 if (jump->flags & SLJIT_REWRITABLE_JUMP) in detect_jump_type() 425 if (jump->flags & IS_BL) in detect_jump_type() 428 if (jump->flags & JUMP_ADDR) in detect_jump_type() 429 diff = ((sljit_sw)jump->u.target - (sljit_sw)(code_ptr + 2) - executable_offset); in detect_jump_type() 431 SLJIT_ASSERT(jump->flags & JUMP_LABEL); in detect_jump_type() 432 diff = ((sljit_sw)(code + jump->u.label->size) - (sljit_sw)(code_ptr + 2)); in detect_jump_type() 439 if (jump->flags & IS_BL) { in detect_jump_type() 442 jump->flags |= PATCH_B; in detect_jump_type() 449 jump in detect_jump_type() 687 struct sljit_jump *jump; sljit_generate_code() local 2687 struct sljit_jump *jump; sljit_emit_jump() local 2912 struct sljit_jump *jump; sljit_emit_call() local 2966 struct sljit_jump *jump; sljit_emit_ijump() local [all...] |
H A D | sljitNativeMIPS_32.c | 198 struct sljit_jump *jump; in sljit_emit_call() local 205 jump = (struct sljit_jump*)ensure_abuf(compiler, sizeof(struct sljit_jump)); in sljit_emit_call() 206 PTR_FAIL_IF(!jump); in sljit_emit_call() 207 set_jump(jump, compiler, type & SLJIT_REWRITABLE_JUMP); in sljit_emit_call() 218 jump->flags |= IS_MOVABLE; in sljit_emit_call() 221 jump->flags |= IS_JAL; in sljit_emit_call() 224 jump->flags |= IS_CALL; in sljit_emit_call() 230 jump->addr = compiler->size; in sljit_emit_call() 237 return jump; in sljit_emit_call() 248 return jump; in sljit_emit_call() [all...] |
H A D | sljitNativeX86_common.c | 526 static sljit_u8* generate_far_jump_code(struct sljit_jump *jump, sljit_u8 *code_ptr, sljit_sw executable_offset); 528 static sljit_u8* generate_far_jump_code(struct sljit_jump *jump, sljit_u8 *code_ptr); 532 static sljit_u8* generate_near_jump_code(struct sljit_jump *jump, sljit_u8 *code_ptr, sljit_u8 *code, sljit_sw executable_offset) in generate_near_jump_code() argument 534 sljit_uw type = jump->flags >> TYPE_SHIFT; in generate_near_jump_code() 538 if (jump->flags & JUMP_LABEL) in generate_near_jump_code() 539 label_addr = (sljit_uw)(code + jump->u.label->size); in generate_near_jump_code() 541 label_addr = jump->u.target - (sljit_uw)executable_offset; in generate_near_jump_code() 544 if ((sljit_sw)(label_addr - (jump->addr + 1)) > HALFWORD_MAX || (sljit_sw)(label_addr - (jump->addr + 1)) < HALFWORD_MIN) in generate_near_jump_code() 545 return generate_far_jump_code(jump, code_pt in generate_near_jump_code() 595 struct sljit_jump *jump; sljit_generate_code() local 2993 struct sljit_jump *jump; global() local 3021 struct sljit_jump *jump; global() local [all...] |
H A D | sljitNativeARM_T2_32.c | 255 static SLJIT_INLINE sljit_s32 detect_jump_type(struct sljit_jump *jump, sljit_u16 *code_ptr, sljit_u16 *code, sljit_sw executable_offset) in detect_jump_type() argument 259 if (jump->flags & SLJIT_REWRITABLE_JUMP) in detect_jump_type() 262 if (jump->flags & JUMP_ADDR) { in detect_jump_type() 264 if (!(jump->u.target & 0x1)) in detect_jump_type() 266 diff = ((sljit_sw)jump->u.target - (sljit_sw)(code_ptr + 2) - executable_offset) >> 1; in detect_jump_type() 269 SLJIT_ASSERT(jump->flags & JUMP_LABEL); in detect_jump_type() 270 diff = ((sljit_sw)(code + jump->u.label->size) - (sljit_sw)(code_ptr + 2)) >> 1; in detect_jump_type() 273 if (jump->flags & IS_COND) { in detect_jump_type() 274 SLJIT_ASSERT(!(jump->flags & IS_BL)); in detect_jump_type() 276 jump in detect_jump_type() 310 set_jump_instruction(struct sljit_jump *jump, sljit_sw executable_offset) set_jump_instruction() argument 387 struct sljit_jump *jump; sljit_generate_code() local 2274 struct sljit_jump *jump; sljit_emit_jump() local 2486 struct sljit_jump *jump; sljit_emit_call() local 2541 struct sljit_jump *jump; sljit_emit_ijump() local [all...] |
H A D | sljitNativeMIPS_64.c | 228 struct sljit_jump *jump; in sljit_emit_call() local 234 jump = (struct sljit_jump*)ensure_abuf(compiler, sizeof(struct sljit_jump)); in sljit_emit_call() 235 PTR_FAIL_IF(!jump); in sljit_emit_call() 236 set_jump(jump, compiler, type & SLJIT_REWRITABLE_JUMP); in sljit_emit_call() 247 jump->flags |= IS_MOVABLE; in sljit_emit_call() 250 jump->flags |= IS_JAL; in sljit_emit_call() 253 jump->flags |= IS_CALL; in sljit_emit_call() 259 jump->addr = compiler->size; in sljit_emit_call() 264 return jump; in sljit_emit_call()
|
H A D | sljitNativeRISCV_common.c | 166 static SLJIT_INLINE sljit_ins* detect_jump_type(struct sljit_jump *jump, sljit_ins *code, sljit_sw executable_offset) in detect_jump_type() argument 172 inst = (sljit_ins *)jump->addr; in detect_jump_type() 174 if (jump->flags & SLJIT_REWRITABLE_JUMP) in detect_jump_type() 177 if (jump->flags & JUMP_ADDR) in detect_jump_type() 178 target_addr = jump->u.target; in detect_jump_type() 180 SLJIT_ASSERT(jump->flags & JUMP_LABEL); in detect_jump_type() 181 target_addr = (sljit_uw)(code + jump->u.label->size) + (sljit_uw)executable_offset; in detect_jump_type() 186 if (jump->flags & IS_COND) { in detect_jump_type() 191 jump->flags |= PATCH_B; in detect_jump_type() 193 jump in detect_jump_type() 289 struct sljit_jump *jump = NULL; load_addr_to_reg() local 386 struct sljit_jump *jump; sljit_generate_code() local 2292 struct sljit_jump *jump; sljit_emit_jump() local 2396 struct sljit_jump *jump; sljit_emit_cmp() local 2497 struct sljit_jump *jump; sljit_emit_ijump() local [all...] |
H A D | sljitNativeX86_32.c | 232 static sljit_u8* generate_far_jump_code(struct sljit_jump *jump, sljit_u8 *code_ptr, sljit_sw executable_offset) in generate_far_jump_code() argument 234 sljit_uw type = jump->flags >> TYPE_SHIFT; in generate_far_jump_code() 238 jump->addr++; in generate_far_jump_code() 242 jump->addr++; in generate_far_jump_code() 247 jump->addr += 2; in generate_far_jump_code() 250 if (jump->flags & JUMP_LABEL) in generate_far_jump_code() 251 jump->flags |= PATCH_MW; in generate_far_jump_code() 253 sljit_unaligned_store_sw(code_ptr, (sljit_sw)(jump->u.target - (jump->addr + 4) - (sljit_uw)executable_offset)); in generate_far_jump_code() 999 struct sljit_jump *jump; in sljit_emit_call() local [all...] |
H A D | sljitLir.c | 520 SLJIT_API_FUNC_ATTRIBUTE void sljit_set_label(struct sljit_jump *jump, struct sljit_label* label) in sljit_set_label() argument 522 if (SLJIT_LIKELY(!!jump) && SLJIT_LIKELY(!!label)) { in sljit_set_label() 523 jump->flags &= (sljit_uw)~JUMP_ADDR; in sljit_set_label() 524 jump->flags |= JUMP_LABEL; in sljit_set_label() 525 jump->u.label = label; in sljit_set_label() 529 SLJIT_API_FUNC_ATTRIBUTE void sljit_set_target(struct sljit_jump *jump, sljit_uw target) in sljit_set_target() argument 531 if (SLJIT_LIKELY(!!jump)) { in sljit_set_target() 532 jump->flags &= (sljit_uw)~JUMP_LABEL; in sljit_set_target() 533 jump->flags |= JUMP_ADDR; in sljit_set_target() 534 jump in sljit_set_target() 642 compute_next_addr(struct sljit_label *label, struct sljit_jump *jump, struct sljit_const *const_, struct sljit_put_label *put_label) compute_next_addr() argument 711 set_jump(struct sljit_jump *jump, struct sljit_compiler *compiler, sljit_u32 flags) set_jump() argument 1062 struct sljit_jump *jump; check_sljit_generate_code() local 2324 struct sljit_jump *jump; sljit_emit_cmov_generic() local 2978 sljit_set_label(struct sljit_jump *jump, struct sljit_label* label) sljit_set_label() argument 2985 sljit_set_target(struct sljit_jump *jump, sljit_uw target) sljit_set_target() argument [all...] |
/third_party/python/Modules/clinic/ |
H A D | _opcode.c.h | 6 "stack_effect($module, opcode, oparg=None, /, *, jump=None)\n" 16 PyObject *jump); 22 static const char * const _keywords[] = {"", "", "jump", NULL}; in _opcode_stack_effect() 28 PyObject *jump = Py_None; in _opcode_stack_effect() local 48 jump = args[2]; in _opcode_stack_effect() 50 _return_value = _opcode_stack_effect_impl(module, opcode, oparg, jump); in _opcode_stack_effect()
|
/third_party/python/Lib/turtledemo/ |
H A D | clock.py | 16 def jump(distanz, winkel=0): function 36 jump(-laenge*0.15) 47 jump(radius) 50 jump(-radius-25) 53 jump(-radius)
|
/third_party/pcre2/pcre2/src/ |
H A D | pcre2_jit_compile.c | 148 ')' backtrack path (If we arrived from "C" jump to the backtrack of "C") 151 jump to D matching path 158 whether there is a next alternative. If so, it needs to jump back to 206 struct sljit_jump *jump; member 386 /* Current position where a THEN must jump. */ 458 /* Labels and jump lists. */ 629 #define JUMPHERE(jump) \ 630 sljit_set_label((jump), sljit_emit_label(compiler)) 631 #define SET_LABEL(jump, label) \ 632 sljit_set_label((jump), (labe 3093 add_jump(struct sljit_compiler *compiler, jump_list **list, struct sljit_jump *jump) add_jump() argument 3492 struct sljit_jump *jump; check_start_used_ptr() local 3628 struct sljit_jump *jump = NULL; check_partial() local 3658 struct sljit_jump *jump; check_str_end() local 3687 struct sljit_jump *jump; detect_partial_match() local 3720 struct sljit_jump *jump; process_partial_match() local 3752 struct sljit_jump *jump; peek_char() local 3837 struct sljit_jump *jump; peek_char_back() local 3911 struct sljit_jump *jump; read_char() local 4122 struct sljit_jump *jump; read_char7_type() local 4158 struct sljit_jump *jump; read_char8_type() local 4280 struct sljit_jump *jump; move_back() local 4363 struct sljit_jump *jump; check_newlinechar() local 4400 struct sljit_jump *jump; do_utfreadchar() local 4445 struct sljit_jump *jump; do_utfreadtype8() local 4484 struct sljit_jump *jump; do_utfreadchar_invalid() local 4644 struct sljit_jump *jump[5]; do_utfreadnewline_invalid() local 4731 struct sljit_jump *jump; do_utfmoveback_invalid() local 4826 struct sljit_jump *jump[2]; do_utfpeakcharback() local 4865 struct sljit_jump *jump[2]; do_utfpeakcharback_invalid() local 5091 struct sljit_jump *jump; do_utfpeakcharback_invalid() local 5131 struct sljit_jump *jump; do_getucd() local 5171 struct sljit_jump *jump; do_getucdtype() local 5224 struct sljit_jump *jump; mainloop_entry() local 6567 struct sljit_jump *jump; do_revertframes() local 6629 struct sljit_jump *jump; check_wordboundary() local 7137 struct sljit_jump *jump; do_casefulcmp() local 7217 struct sljit_jump *jump; do_caselesscmp() local 7510 struct sljit_jump *jump = NULL; compile_xclass_matchingpath() local 8248 struct sljit_jump *jump[4]; compile_simple_assertion_matchingpath() local 8734 struct sljit_jump *jump[3]; compile_char1_matchingpath() local 9266 struct sljit_jump *jump = NULL; compile_ref_matchingpath() local 9435 struct sljit_jump *jump = NULL; compile_ref_iterator_matchingpath() local 9880 struct sljit_jump *jump; compile_assert_matchingpath() local 10463 struct sljit_jump *jump; compile_bracket_matchingpath() local 11449 struct sljit_jump *jump = NULL; compile_iterator_matchingpath() local 12425 struct sljit_jump *jump = NULL; compile_iterator_backtrackingpath() local 13130 struct sljit_jump *jump; compile_bracketpos_backtrackingpath() local 13195 struct sljit_jump *jump; compile_control_verb_backtrackingpath() local 13255 struct sljit_jump *jump; compile_then_trap_backtrackingpath() local 13712 struct sljit_jump *jump; jit_compile() local [all...] |
/third_party/libphonenumber/metadata/src/main/java/com/google/i18n/phonenumbers/metadata/finitestatematcher/compiler/ |
H A D | Operation.java | 92 * An invalid jump offset indicating that instead of jumping to a new instruction, the state 154 static void writeBranch(ByteArrayDataOutput out, int jump, Statistics stats) { in writeBranch() argument 155 Preconditions.checkArgument(jump >= 0 && jump < 0x1000, "invalid jump: " + jump); in writeBranch() 156 if (jump == 0) { in writeBranch() 158 } else if (jump < 16) { in writeBranch() 160 out.writeByte((OpCode.BRANCH.ordinal() << 5) | jump); in writeBranch() 162 stats.record(jump < in writeBranch() [all...] |
/third_party/ffmpeg/libavfilter/ |
H A D | vsrc_sierpinski.c | 47 int jump; member 65 {"jump", "set the jump", OFFSET(jump), AV_OPT_TYPE_INT, {.i64=100}, 1, 10000, FLAGS }, 169 int mod = 2 * s->jump + 1; in draw_sierpinski() 171 s->dest_x += (int)((rnd & 0xffff) % mod) - s->jump; in draw_sierpinski() 172 s->dest_y += (int)((rnd >> 16) % mod) - s->jump; in draw_sierpinski()
|
/third_party/mesa3d/src/compiler/nir/tests/ |
H A D | control_flow_tests.cpp | 60 nir_jump_instr *jump = nir_jump_instr_create(b.shader, nir_jump_break); in TEST_F() local 61 nir_builder_instr_insert(&b, &jump->instr); in TEST_F() 110 nir_instr_remove(&jump->instr); in TEST_F()
|
/third_party/skia/third_party/externals/libwebp/imageio/ |
H A D | jpegdec.c | 234 size_t jump = (size_t)jump_size; in ContextSkip() local 235 if (jump > ctx->pub.bytes_in_buffer) { // Don't overflow the buffer. in ContextSkip() 236 jump = ctx->pub.bytes_in_buffer; in ContextSkip() 238 ctx->pub.bytes_in_buffer -= jump; in ContextSkip() 239 ctx->pub.next_input_byte += jump; in ContextSkip()
|
/third_party/mesa3d/src/compiler/nir/ |
H A D | nir_inline_helpers.h | 144 nir_jump_instr *jump = nir_instr_as_jump(instr); in nir_foreach_src() local 146 if (jump->type == nir_jump_goto_if && !_nir_visit_src(&jump->condition, cb, state)) in nir_foreach_src()
|
H A D | nir_control_flow.c | 40 * 4. If a basic block has a jump instruction, there must be only one and it 275 * it doesn't end in a jump instruction. Also inserts phi sources with undefs 327 /* Figure out what successor block would've had if it didn't have a jump in split_block_end() 386 * after-a-jump-instr case contained to split_block_end(). in split_block_cursor() 451 * update the CFG after a jump instruction has been added to the end of a block 499 unreachable("Invalid jump type"); in nir_handle_add_jump() 503 /* Removes the successor of a block with a jump. Note that the jump to be 603 /* stitch_blocks() assumes that any block that ends with a jump has in nir_cf_node_insert() 641 nir_jump_instr *jump in cleanup_cf_node() local 757 nir_jump_instr *jump = nir_instr_as_jump(last_instr); relink_jump_halt_cf_node() local [all...] |
H A D | nir_lower_returns.c | 191 nir_jump_instr *jump = nir_instr_as_jump(last_instr); in lower_returns_in_block() 192 if (jump->type != nir_jump_return) in lower_returns_in_block() 195 nir_instr_remove(&jump->instr); in lower_returns_in_block()
|
/third_party/musl/src/thread/powerpc/ |
H A D | clone.s | 44 bns+ 1f # jump to label 1 if no summary overflow. 51 # if not 0, jump to end
|