Skip to content

Commit 805fe2e

Browse files
committed
Rename to BINARY_OP_SUBSCR_FROZENDICT
1 parent acfab36 commit 805fe2e

File tree

14 files changed

+72
-72
lines changed

14 files changed

+72
-72
lines changed

Include/internal/pycore_opcode_metadata.h

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Include/internal/pycore_uop_ids.h

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Include/internal/pycore_uop_metadata.h

Lines changed: 23 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Include/opcode_ids.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Lib/_opcode_metadata.py

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Lib/test/test_opcache.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1815,7 +1815,7 @@ def binary_subscr_frozen_dict():
18151815
self.assertEqual(a[2], 3)
18161816

18171817
binary_subscr_frozen_dict()
1818-
self.assert_specialized(binary_subscr_frozen_dict, "BINARY_OP_SUBSCR_FROZEN_DICT")
1818+
self.assert_specialized(binary_subscr_frozen_dict, "BINARY_OP_SUBSCR_FROZENDICT")
18191819
self.assert_no_opcode(binary_subscr_frozen_dict, "BINARY_OP")
18201820

18211821
def binary_subscr_frozen_dict_subclass():
@@ -1827,7 +1827,7 @@ class MyFrozenDict(frozendict):
18271827
self.assertEqual(a[2], 3)
18281828

18291829
binary_subscr_frozen_dict_subclass()
1830-
self.assert_no_opcode(binary_subscr_frozen_dict_subclass, "BINARY_OP_SUBSCR_FROZEN_DICT")
1830+
self.assert_no_opcode(binary_subscr_frozen_dict_subclass, "BINARY_OP_SUBSCR_FROZENDICT")
18311831

18321832
def binary_subscr_str_int():
18331833
for _ in range(_testinternalcapi.SPECIALIZATION_THRESHOLD):

Modules/_testinternalcapi/test_cases.c.h

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Modules/_testinternalcapi/test_targets.h

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Python/bytecodes.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ dummy_func(
602602
BINARY_OP_SUBSCR_STR_INT,
603603
BINARY_OP_SUBSCR_USTR_INT,
604604
BINARY_OP_SUBSCR_DICT,
605-
BINARY_OP_SUBSCR_FROZEN_DICT,
605+
BINARY_OP_SUBSCR_FROZENDICT,
606606
BINARY_OP_SUBSCR_GETITEM,
607607
BINARY_OP_INPLACE_ADD_UNICODE,
608608
BINARY_OP_EXTEND,
@@ -1062,7 +1062,7 @@ dummy_func(
10621062
EXIT_IF(!PyDict_CheckExact(o));
10631063
}
10641064

1065-
op(_GUARD_NOS_FROZEN_DICT, (nos, unused -- nos, unused)) {
1065+
op(_GUARD_NOS_FROZENDICT, (nos, unused -- nos, unused)) {
10661066
PyObject *o = PyStackRef_AsPyObjectBorrow(nos);
10671067
EXIT_IF(!PyFrozenDict_CheckExact(o));
10681068
}
@@ -1075,8 +1075,8 @@ dummy_func(
10751075
macro(BINARY_OP_SUBSCR_DICT) =
10761076
_GUARD_NOS_DICT + unused/5 + _BINARY_OP_SUBSCR_DICT + POP_TOP + POP_TOP;
10771077

1078-
macro(BINARY_OP_SUBSCR_FROZEN_DICT) =
1079-
_GUARD_NOS_FROZEN_DICT + unused/5 + _BINARY_OP_SUBSCR_FROZEN_DICT + POP_TOP + POP_TOP;
1078+
macro(BINARY_OP_SUBSCR_FROZENDICT) =
1079+
_GUARD_NOS_FROZENDICT + unused/5 + _BINARY_OP_SUBSCR_FROZENDICT + POP_TOP + POP_TOP;
10801080

10811081
op(_BINARY_OP_SUBSCR_DICT, (dict_st, sub_st -- res, ds, ss)) {
10821082
PyObject *sub = PyStackRef_AsPyObjectBorrow(sub_st);
@@ -1098,7 +1098,7 @@ dummy_func(
10981098
INPUTS_DEAD();
10991099
}
11001100

1101-
op(_BINARY_OP_SUBSCR_FROZEN_DICT, (dict_st, sub_st -- res, ds, ss)) {
1101+
op(_BINARY_OP_SUBSCR_FROZENDICT, (dict_st, sub_st -- res, ds, ss)) {
11021102
PyObject *sub = PyStackRef_AsPyObjectBorrow(sub_st);
11031103
PyObject *dict = PyStackRef_AsPyObjectBorrow(dict_st);
11041104

0 commit comments

Comments
 (0)