Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
a414fa6
Add SETUP_CLEANUP bytecode to track lasti for re-raising exceptions i…
markshannon Apr 19, 2021
902690d
Move some handling of exceptions to bytecode from unwind code.
markshannon Apr 21, 2021
21646b1
Move setting up except block out of unwind code into bytecode.
markshannon Apr 21, 2021
9c9575a
Move cleanup code for try-finally and try-except in bytecode.
markshannon Apr 21, 2021
3be89db
Move cleanup code for with and sync with into bytecode.
markshannon Apr 21, 2021
cf664f7
Simplify exit code for async for loops.
markshannon Apr 21, 2021
722b722
Remove SETUP_EXCEPT opcode.
markshannon Apr 21, 2021
caa355f
Remove EXCEPT_HANDLER as a type of exception handling block.
markshannon Apr 21, 2021
4c21ddd
Factor out all block pops and pushes into simple opcodes.
markshannon Apr 21, 2021
6a8d90c
Generate exception handling table
markshannon Apr 22, 2021
9115cea
Parse and verify exception table when unwinding exceptions.
markshannon Apr 23, 2021
350334c
Update test to account for new code object constructor.
markshannon Apr 26, 2021
d6da9cb
Push lasti to stack when cleaning up exception handlers, and use it t…
markshannon Apr 26, 2021
a6b9292
Remove block stack from frames add convert SETUP/POP_BLOCK instructio…
markshannon Apr 26, 2021
9d0a6c1
Make dis understand the exception table.
markshannon Apr 29, 2021
ca482d0
Merge branch 'master' into zero-cost-except
markshannon Apr 29, 2021
4629a97
Set line numbers at start of exception handlers in try-except and try…
markshannon Apr 30, 2021
58b4a5a
Handle exceptions in trace functions correctly.
markshannon Apr 30, 2021
e7a9221
Fix syntax error test.
markshannon Apr 30, 2021
062ffa4
Get frame.setlineno working again.
markshannon Apr 30, 2021
71d95c1
Merge branch 'master' into zero-cost-except
markshannon Apr 30, 2021
e5c2c3e
Remove debugging prints
markshannon Apr 30, 2021
7571e90
Fix test_dis after merge
markshannon Apr 30, 2021
812e78f
Layout frameobject in most compact form.
markshannon Apr 30, 2021
5801089
Add NEWS.
markshannon Apr 30, 2021
8cb6366
Remove SETUP_FINALLY, SETUP_ASYNC_WITH, SETUP_CLEANUP, POP_BLOCK inst…
markshannon Apr 30, 2021
4ec3417
Update dis.rst
markshannon Apr 30, 2021
07cd46d
fix NEWS formatting
markshannon Apr 30, 2021
3b52a3f
Fix typos and clarify text.
markshannon Apr 30, 2021
594a636
Restore dis after discarded experiment.
markshannon Apr 30, 2021
585f306
Bump magic number for 3.11
markshannon Apr 30, 2021
0f11d34
Fix typo
markshannon Apr 30, 2021
63a9b0e
Merge branch 'master' into zero-cost-except
markshannon May 3, 2021
133f74f
Re-order optimization passes to remove more NOPs.
markshannon May 3, 2021
299e051
Update importlib yet again.
markshannon May 3, 2021
43c199d
Assorted clarifications.
markshannon May 6, 2021
630e755
Rename frame.setlineno assistant code to clarify that we now model th…
markshannon May 6, 2021
6333f6c
Revert mistaken change.
markshannon May 6, 2021
e1d6e1e
Update Include/opcode.h
markshannon May 6, 2021
73b600a
Extend notes on exception handling.
markshannon May 6, 2021
f263ee2
Fix refleaks
markshannon May 6, 2021
2f31c84
Merge branch 'main' into zero-cost-except
markshannon May 7, 2021
0c3fd95
Document removal frame push/pop C-API functions.
markshannon May 7, 2021
b92ada2
Update importlib
markshannon May 7, 2021
1878117
Clarify exception handling notes
markshannon May 7, 2021
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix NEWS formatting
  • Loading branch information
markshannon committed Apr 30, 2021
commit 07cd46d931131d7e8cc9c5f3d5b9cea5b0a0064f
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"Zero cost" exceptino handling.

* Uses a lookup table to determine how to handle exceptions * Removes
SETUP_FINALLY and POP_TOP block instructions, eliminating the runtime
overhead of try statements. * Reduces the size of the fram object by about
60%
* Uses a lookup table to determine how to handle exceptions
* Removes SETUP_FINALLY and POP_TOP block instructions, eliminating the runtime overhead of try statements.
* Reduces the size of the fram object by about 60%