[issue47186] split JUMP_IF_NOT_EXC/EG_MATCH into CHECK_EXC/EG_MATCH + jump

2022-04-05 Thread Irit Katriel


Change by Irit Katriel :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
type:  -> enhancement

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47186] split JUMP_IF_NOT_EXC/EG_MATCH into CHECK_EXC/EG_MATCH + jump

2022-04-05 Thread Irit Katriel


Irit Katriel  added the comment:


New changeset 32091df41ce6e3a71df2cf37dc74b728c0d885f2 by Irit Katriel in 
branch 'main':
bpo-47186: Replace JUMP_IF_NOT_EG_MATCH by CHECK_EG_MATCH + jump (GH-32309)
https://github.com/python/cpython/commit/32091df41ce6e3a71df2cf37dc74b728c0d885f2


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47186] split JUMP_IF_NOT_EXC/EG_MATCH into CHECK_EXC/EG_MATCH + jump

2022-04-04 Thread Irit Katriel


Change by Irit Katriel :


--
pull_requests: +30370
pull_request: https://github.com/python/cpython/pull/32309

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47186] split JUMP_IF_NOT_EXC/EG_MATCH into CHECK_EXC/EG_MATCH + jump

2022-04-01 Thread Mark Shannon


Mark Shannon  added the comment:


New changeset 04e07c258f4f2ac85e25355242a113f98a706f04 by Irit Katriel in 
branch 'main':
bpo-47186: Replace JUMP_IF_NOT_EXC_MATCH by CHECK_EXC_MATCH + jump (GH-32231)
https://github.com/python/cpython/commit/04e07c258f4f2ac85e25355242a113f98a706f04


--
nosy: +Mark.Shannon

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47186] split JUMP_IF_NOT_EXC/EG_MATCH into CHECK_EXC/EG_MATCH + jump

2022-04-01 Thread Irit Katriel


Change by Irit Katriel :


--
keywords: +patch
pull_requests: +30303
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/32231

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47186] split JUMP_IF_NOT_EXC/EG_MATCH into CHECK_EXC/EG_MATCH + jump

2022-04-01 Thread Irit Katriel


New submission from Irit Katriel :

It would help issue47120 to reduce the number of jump opcodes.

The exception matching opcodes JUMP_IF_NOT_EXC_MATCH  and JUMP_IF_NOT_EG_MATCH 
are not hot, and we can split them into a check + ordinary jump. 

For JUMP_IF_NOT_EXC_MATCH  this is simple because the stack effect is the same 
for the jump and non-jump case. For JUMP_IF_NOT_EG_MATCH the stack effect will 
need to be made the same, and the opcodes emitted around it adapted.

--
assignee: iritkatriel
components: Interpreter Core
messages: 416484
nosy: iritkatriel
priority: normal
severity: normal
status: open
title: split JUMP_IF_NOT_EXC/EG_MATCH into CHECK_EXC/EG_MATCH + jump
versions: Python 3.11

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com