gh-134584: Eliminate redundant refcounting from _STORE_SUBSCR_DICT (GH-142712)

Co-authored-by: Ken Jin <kenjin4096@gmail.com>
This commit is contained in:
Donghee Na 2025-12-16 01:42:32 +09:00 committed by GitHub
parent 872ab51f32
commit abaaeee6a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 74 additions and 23 deletions

View file

@ -1148,8 +1148,16 @@
}
case _STORE_SUBSCR_DICT: {
CHECK_STACK_BOUNDS(-3);
stack_pointer += -3;
JitOptRef dict_st;
JitOptRef value;
JitOptRef st;
dict_st = stack_pointer[-2];
value = stack_pointer[-3];
(void)value;
st = dict_st;
CHECK_STACK_BOUNDS(-2);
stack_pointer[-3] = st;
stack_pointer += -2;
ASSERT_WITHIN_STACK_BOUNDS(__FILE__, __LINE__);
break;
}