Skip to content

Commit 3dec570

Browse files
rename to POP_TOP_OPARG
1 parent f6cb053 commit 3dec570

File tree

10 files changed

+24
-24
lines changed

10 files changed

+24
-24
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: 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: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Modules/_testinternalcapi/test_cases.c.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.

Python/bytecodes.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ dummy_func(
387387
}
388388

389389
// This is expanded to POP_TOP + POP_TOP + POP_TOP + ... (oparg times) in the JIT trace.
390-
op(_POP_TOS_OPARG, (args[oparg] -- )) {
390+
op(_POP_TOP_OPARG, (args[oparg] -- )) {
391391
_PyStackRef_CloseStack(args, oparg);
392392
DEAD(args);
393393
}
@@ -4670,7 +4670,7 @@ dummy_func(
46704670
unused/2 +
46714671
_GUARD_CALLABLE_BUILTIN_FAST +
46724672
_CALL_BUILTIN_FAST +
4673-
_POP_TOS_OPARG +
4673+
_POP_TOP_OPARG +
46744674
POP_TOP +
46754675
POP_TOP +
46764676
_ERROR_IF_TOS_NULL +

Python/executor_cases.c.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.

Python/generated_cases.c.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.

Python/optimizer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -945,7 +945,7 @@ _PyJit_translate_single_bytecode_to_trace(
945945
assert(next->op.code == STORE_FAST);
946946
operand = next->op.arg;
947947
}
948-
else if (uop == _POP_TOS_OPARG) {
948+
else if (uop == _POP_TOP_OPARG) {
949949
for (int i = 0; i < oparg; i++) {
950950
ADD_TO_TRACE(_POP_TOP, 0, operand, target);
951951
}

Python/optimizer_bytecodes.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -778,8 +778,8 @@ dummy_func(void) {
778778
a = arg;
779779
}
780780

781-
// This is expanded into _POP_NOS in the trace recorder/translator.
782-
op(_POP_TOS_OPARG, (args[oparg] --)) {
781+
// This is expanded into POP_TOP, POP_TOP, POP_TOP, POP_TOP (...oparg times) in the trace recorder/translator.
782+
op(_POP_TOP_OPARG, (args[oparg] --)) {
783783
(void)args;
784784
Py_FatalError("Forbidden uop seeen in trace.\n");
785785
}

Python/optimizer_cases.c.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.

0 commit comments

Comments
 (0)