Lines Matching defs:cache
1500 _PyAttrCache *cache = (_PyAttrCache *)next_instr; \
1504 DEOPT_IF(dict->ma_keys->dk_version != read_u32(cache->version), \
1507 assert(cache->index < dict->ma_keys->dk_nentries); \
1508 PyDictUnicodeEntry *ep = DK_UNICODE_ENTRIES(dict->ma_keys) + cache->index; \
1558 #define ADAPTIVE_COUNTER_IS_ZERO(cache) \
1559 (cache)->counter < (1<<ADAPTIVE_BACKOFF_BITS)
1561 #define DECREMENT_ADAPTIVE_COUNTER(cache) \
1562 (cache)->counter -= (1<<ADAPTIVE_BACKOFF_BITS)
2148 _PyBinarySubscrCache *cache = (_PyBinarySubscrCache *)next_instr;
2149 if (ADAPTIVE_COUNTER_IS_ZERO(cache)) {
2161 DECREMENT_ADAPTIVE_COUNTER(cache);
2239 _PyBinarySubscrCache *cache = (_PyBinarySubscrCache *)next_instr;
2240 uint32_t type_version = read_u32(cache->type_version);
2247 DEOPT_IF(getitem->func_version != cache->func_version, BINARY_SUBSCR);
2315 _PyStoreSubscrCache *cache = (_PyStoreSubscrCache *)next_instr;
2316 if (ADAPTIVE_COUNTER_IS_ZERO(cache)) {
2328 DECREMENT_ADAPTIVE_COUNTER(cache);
2812 _PyUnpackSequenceCache *cache = (_PyUnpackSequenceCache *)next_instr;
2813 if (ADAPTIVE_COUNTER_IS_ZERO(cache)) {
2821 DECREMENT_ADAPTIVE_COUNTER(cache);
3044 /* Skip over inline cache */
3053 _PyLoadGlobalCache *cache = (_PyLoadGlobalCache *)next_instr;
3054 if (ADAPTIVE_COUNTER_IS_ZERO(cache)) {
3065 DECREMENT_ADAPTIVE_COUNTER(cache);
3074 _PyLoadGlobalCache *cache = (_PyLoadGlobalCache *)next_instr;
3075 uint32_t version = read_u32(cache->module_keys_version);
3079 PyObject *res = entries[cache->index].me_value;
3097 _PyLoadGlobalCache *cache = (_PyLoadGlobalCache *)next_instr;
3098 uint32_t mod_version = read_u32(cache->module_keys_version);
3099 uint16_t bltn_version = cache->builtin_keys_version;
3104 PyObject *res = entries[cache->index].me_value;
3478 _PyAttrCache *cache = (_PyAttrCache *)next_instr;
3479 if (ADAPTIVE_COUNTER_IS_ZERO(cache)) {
3491 DECREMENT_ADAPTIVE_COUNTER(cache);
3501 _PyAttrCache *cache = (_PyAttrCache *)next_instr;
3502 uint32_t type_version = read_u32(cache->version);
3509 res = values->values[cache->index];
3536 _PyAttrCache *cache = (_PyAttrCache *)next_instr;
3537 uint32_t type_version = read_u32(cache->version);
3545 uint16_t hint = cache->index;
3571 _PyAttrCache *cache = (_PyAttrCache *)next_instr;
3572 uint32_t type_version = read_u32(cache->version);
3575 char *addr = (char *)owner + cache->index;
3588 _PyAttrCache *cache = (_PyAttrCache *)next_instr;
3589 if (ADAPTIVE_COUNTER_IS_ZERO(cache)) {
3601 DECREMENT_ADAPTIVE_COUNTER(cache);
3610 _PyAttrCache *cache = (_PyAttrCache *)next_instr;
3611 uint32_t type_version = read_u32(cache->version);
3618 Py_ssize_t index = cache->index;
3638 _PyAttrCache *cache = (_PyAttrCache *)next_instr;
3639 uint32_t type_version = read_u32(cache->version);
3647 uint16_t hint = cache->index;
3685 _PyAttrCache *cache = (_PyAttrCache *)next_instr;
3686 uint32_t type_version = read_u32(cache->version);
3689 char *addr = (char *)owner + cache->index;
3719 _PyCompareOpCache *cache = (_PyCompareOpCache *)next_instr;
3720 if (ADAPTIVE_COUNTER_IS_ZERO(cache)) {
3729 DECREMENT_ADAPTIVE_COUNTER(cache);
3737 _PyCompareOpCache *cache = (_PyCompareOpCache *)next_instr;
3738 int when_to_jump_mask = cache->mask;
3779 _PyCompareOpCache *cache = (_PyCompareOpCache *)next_instr;
3780 int when_to_jump_mask = cache->mask;
3822 _PyCompareOpCache *cache = (_PyCompareOpCache *)next_instr;
3823 int when_to_jump_mask = cache->mask;
4526 _PyLoadMethodCache *cache = (_PyLoadMethodCache *)next_instr;
4527 if (ADAPTIVE_COUNTER_IS_ZERO(cache)) {
4539 DECREMENT_ADAPTIVE_COUNTER(cache);
4549 _PyLoadMethodCache *cache = (_PyLoadMethodCache *)next_instr;
4550 uint32_t type_version = read_u32(cache->type_version);
4558 read_u32(cache->keys_version), LOAD_METHOD);
4560 PyObject *res = read_obj(cache->descr);
4576 _PyLoadMethodCache *cache = (_PyLoadMethodCache *)next_instr;
4578 DEOPT_IF(self_cls->tp_version_tag != read_u32(cache->type_version),
4581 int dictoffset = *(int16_t *)&cache->dict_offset;
4589 DEOPT_IF(dict->ma_keys->dk_version != read_u32(cache->keys_version),
4592 PyObject *res = read_obj(cache->descr);
4606 _PyLoadMethodCache *cache = (_PyLoadMethodCache *)next_instr;
4607 uint32_t type_version = read_u32(cache->type_version);
4611 PyObject *res = read_obj(cache->descr);
4637 _PyLoadMethodCache *cache = (_PyLoadMethodCache *)next_instr;
4641 uint32_t type_version = read_u32(cache->type_version);
4647 PyObject *res = read_obj(cache->descr);
4798 _PyPrecallCache *cache = (_PyPrecallCache *)next_instr;
4799 if (ADAPTIVE_COUNTER_IS_ZERO(cache)) {
4814 DECREMENT_ADAPTIVE_COUNTER(cache);
4820 _PyCallCache *cache = (_PyCallCache *)next_instr;
4821 if (ADAPTIVE_COUNTER_IS_ZERO(cache)) {
4836 DECREMENT_ADAPTIVE_COUNTER(cache);
4844 _PyCallCache *cache = (_PyCallCache *)next_instr;
4850 DEOPT_IF(func->func_version != read_u32(cache->func_version), CALL);
4878 _PyCallCache *cache = (_PyCallCache *)next_instr;
4884 DEOPT_IF(func->func_version != read_u32(cache->func_version), CALL);
4887 int minargs = cache->min_args;
5566 _PyBinaryOpCache *cache = (_PyBinaryOpCache *)next_instr;
5567 if (ADAPTIVE_COUNTER_IS_ZERO(cache)) {
5576 DECREMENT_ADAPTIVE_COUNTER(cache);
5708 /* The counter is always the first cache entry: */