From 981d172f7f0613d30bef4a8934b361db7fcf0672 Mon Sep 17 00:00:00 2001 From: Mark Shannon Date: Wed, 24 Jan 2024 15:10:17 +0000 Subject: GH-112354: `END_FOR` instruction to only pop one value. (GH-114247) * Compiler emits END_FOR; POP_TOP instead of END_FOR. To support tier 2 side exits in loops. --- Lib/test/test_compiler_codegen.py | 1 + 1 file changed, 1 insertion(+) (limited to 'Lib/test/test_compiler_codegen.py') diff --git a/Lib/test/test_compiler_codegen.py b/Lib/test/test_compiler_codegen.py index b5d1e2f9e47..dbeadd9ca47 100644 --- a/Lib/test/test_compiler_codegen.py +++ b/Lib/test/test_compiler_codegen.py @@ -49,6 +49,7 @@ class IsolatedCodeGenTests(CodegenTestCase): ('JUMP', loop_lbl), exit_lbl, ('END_FOR', None), + ('POP_TOP', None), ('LOAD_CONST', 0), ('RETURN_VALUE', None), ] -- cgit v1.2.3