aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/executor_cases.c.h
diff options
context:
space:
mode:
authorKirill Podoprigora <kirill.bast9@mail.ru>2024-02-23 19:31:57 +0200
committerGitHub <noreply@github.com>2024-02-23 17:31:57 +0000
commite4561e050148f6dc347e8c7ba30c8125b5fc0e45 (patch)
tree4df655662a8fc71c8e8497b6f3517d72ea22d4b4 /Python/executor_cases.c.h
parent59057ce55a443f35bfd685c688071aebad7b3671 (diff)
downloadcpython-e4561e050148f6dc347e8c7ba30c8125b5fc0e45.tar.gz
cpython-e4561e050148f6dc347e8c7ba30c8125b5fc0e45.zip
gh-115778: Add `tierN` annotation for instruction definitions (#115815)
This replaces the old `TIER_{ONE,TWO}_ONLY` macros. Note that `specialized` implies `tier1`. Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Diffstat (limited to 'Python/executor_cases.c.h')
-rw-r--r--Python/executor_cases.c.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/Python/executor_cases.c.h b/Python/executor_cases.c.h
index 3054058cf44..0b1d75985e1 100644
--- a/Python/executor_cases.c.h
+++ b/Python/executor_cases.c.h
@@ -3716,7 +3716,6 @@
case _SET_IP: {
PyObject *instr_ptr = (PyObject *)CURRENT_OPERAND();
- TIER_TWO_ONLY
frame->instr_ptr = (_Py_CODEUNIT *)instr_ptr;
break;
}
@@ -3733,13 +3732,11 @@
}
case _EXIT_TRACE: {
- TIER_TWO_ONLY
if (1) goto side_exit;
break;
}
case _CHECK_VALIDITY: {
- TIER_TWO_ONLY
if (!current_executor->vm_data.valid) goto deoptimize;
break;
}
@@ -3747,7 +3744,6 @@
case _LOAD_CONST_INLINE: {
PyObject *value;
PyObject *ptr = (PyObject *)CURRENT_OPERAND();
- TIER_TWO_ONLY
value = Py_NewRef(ptr);
stack_pointer[0] = value;
stack_pointer += 1;
@@ -3757,7 +3753,6 @@
case _LOAD_CONST_INLINE_BORROW: {
PyObject *value;
PyObject *ptr = (PyObject *)CURRENT_OPERAND();
- TIER_TWO_ONLY
value = ptr;
stack_pointer[0] = value;
stack_pointer += 1;
@@ -3768,7 +3763,6 @@
PyObject *value;
PyObject *null;
PyObject *ptr = (PyObject *)CURRENT_OPERAND();
- TIER_TWO_ONLY
value = Py_NewRef(ptr);
null = NULL;
stack_pointer[0] = value;
@@ -3781,7 +3775,6 @@
PyObject *value;
PyObject *null;
PyObject *ptr = (PyObject *)CURRENT_OPERAND();
- TIER_TWO_ONLY
value = ptr;
null = NULL;
stack_pointer[0] = value;
@@ -3792,14 +3785,12 @@
case _CHECK_GLOBALS: {
PyObject *dict = (PyObject *)CURRENT_OPERAND();
- TIER_TWO_ONLY
if (GLOBALS() != dict) goto deoptimize;
break;
}
case _CHECK_BUILTINS: {
PyObject *dict = (PyObject *)CURRENT_OPERAND();
- TIER_TWO_ONLY
if (BUILTINS() != dict) goto deoptimize;
break;
}
@@ -3815,7 +3806,6 @@
case _COLD_EXIT: {
oparg = CURRENT_OPARG();
- TIER_TWO_ONLY
_PyExecutorObject *previous = (_PyExecutorObject *)tstate->previous_executor;
_PyExitData *exit = &previous->exits[oparg];
exit->temperature++;
@@ -3851,7 +3841,6 @@
case _START_EXECUTOR: {
PyObject *executor = (PyObject *)CURRENT_OPERAND();
- TIER_TWO_ONLY
Py_DECREF(tstate->previous_executor);
tstate->previous_executor = NULL;
#ifndef _Py_JIT
@@ -3861,7 +3850,6 @@
}
case _FATAL_ERROR: {
- TIER_TWO_ONLY
assert(0);
Py_FatalError("Fatal error uop executed.");
break;
@@ -3869,7 +3857,6 @@
case _CHECK_VALIDITY_AND_SET_IP: {
PyObject *instr_ptr = (PyObject *)CURRENT_OPERAND();
- TIER_TWO_ONLY
if (!current_executor->vm_data.valid) goto deoptimize;
frame->instr_ptr = (_Py_CODEUNIT *)instr_ptr;
break;