Skip to content

Commit 6f49dca

Browse files
committed
Rename to _GUARD_THIRD_NULL
1 parent 900472a commit 6f49dca

File tree

8 files changed

+62
-62
lines changed

8 files changed

+62
-62
lines changed

Include/internal/pycore_opcode_metadata.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.

Include/internal/pycore_uop_ids.h

Lines changed: 22 additions & 22 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: 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
@@ -4033,6 +4033,10 @@ dummy_func(
40334033
DEOPT_IF(!PyStackRef_IsNull(null));
40344034
}
40354035

4036+
op(_GUARD_THIRD_NULL, (null, unused, unused -- null, unused, unused)) {
4037+
DEOPT_IF(!PyStackRef_IsNull(null));
4038+
}
4039+
40364040
op(_GUARD_CALLABLE_TYPE_1, (callable, unused, unused -- callable, unused, unused)) {
40374041
PyObject *callable_o = PyStackRef_AsPyObjectBorrow(callable);
40384042
DEOPT_IF(callable_o != (PyObject *)&PyType_Type);
@@ -4349,10 +4353,6 @@ dummy_func(
43494353
res = PyStackRef_FromPyObjectSteal(res_o);
43504354
}
43514355

4352-
op(_GUARD_CALLABLE_ISINSTANCE_NULL, (callable, null, unused[oparg] -- callable, null, unused[oparg])) {
4353-
DEOPT_IF(!PyStackRef_IsNull(null));
4354-
}
4355-
43564356
op(_GUARD_CALLABLE_ISINSTANCE, (callable, unused, unused[oparg] -- callable, unused, unused[oparg])) {
43574357
PyObject *callable_o = PyStackRef_AsPyObjectBorrow(callable);
43584358
PyInterpreterState *interp = tstate->interp;
@@ -4381,7 +4381,7 @@ dummy_func(
43814381
macro(CALL_ISINSTANCE) =
43824382
unused/1 +
43834383
unused/2 +
4384-
_GUARD_CALLABLE_ISINSTANCE_NULL +
4384+
_GUARD_THIRD_NULL +
43854385
_GUARD_CALLABLE_ISINSTANCE +
43864386
_CALL_ISINSTANCE;
43874387

Python/executor_cases.c.h

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

Python/generated_cases.c.h

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

Python/optimizer_bytecodes.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,6 +1063,13 @@ dummy_func(void) {
10631063
sym_set_null(null);
10641064
}
10651065

1066+
op(_GUARD_THIRD_NULL, (null, unused, unused -- null, unused, unused)) {
1067+
if (sym_is_null(null)) {
1068+
REPLACE_OP(this_instr, _NOP, 0, 0);
1069+
}
1070+
sym_set_null(null);
1071+
}
1072+
10661073
op(_GUARD_CALLABLE_TYPE_1, (callable, unused, unused -- callable, unused, unused)) {
10671074
if (sym_get_const(ctx, callable) == (PyObject *)&PyType_Type) {
10681075
REPLACE_OP(this_instr, _NOP, 0, 0);
@@ -1088,13 +1095,6 @@ dummy_func(void) {
10881095
res = sym_new_type(ctx, &PyLong_Type);
10891096
}
10901097

1091-
op(_GUARD_CALLABLE_ISINSTANCE_NULL, (callable, null, unused[oparg] -- callable, null, unused[oparg])) {
1092-
if (sym_is_null(null)) {
1093-
REPLACE_OP(this_instr, _NOP, 0, 0);
1094-
}
1095-
sym_set_null(null);
1096-
}
1097-
10981098
op(_GUARD_CALLABLE_ISINSTANCE, (callable, unused, unused[oparg] -- callable, unused, unused[oparg])) {
10991099
PyObject *isinstance = _PyInterpreterState_GET()->callable_cache.isinstance;
11001100
if (sym_get_const(ctx, callable) == isinstance) {

Python/optimizer_cases.c.h

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

0 commit comments

Comments
 (0)