mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
gh-128563: Move GO_TO_INSTRUCTION and PREDICT to cases generator (GH-129115)
This commit is contained in:
parent
767cf70844
commit
86c1a60d5a
5 changed files with 47 additions and 59 deletions
|
|
@ -412,7 +412,7 @@ def test_predictions(self):
|
|||
frame->instr_ptr = next_instr;
|
||||
next_instr += 1;
|
||||
INSTRUCTION_STATS(OP1);
|
||||
PREDICTED(OP1);
|
||||
PREDICTED_OP1:;
|
||||
_PyStackRef res;
|
||||
res = Py_None;
|
||||
stack_pointer[-1] = res;
|
||||
|
|
@ -646,7 +646,7 @@ def test_macro_instruction(self):
|
|||
frame->instr_ptr = next_instr;
|
||||
next_instr += 6;
|
||||
INSTRUCTION_STATS(OP);
|
||||
PREDICTED(OP);
|
||||
PREDICTED_OP:;
|
||||
_Py_CODEUNIT* const this_instr = next_instr - 6;
|
||||
(void)this_instr;
|
||||
_PyStackRef left;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue