GH-88116: Use a compact format to represent end line and column offsets. (GH-91666)

* Stores all location info in linetable to conform to PEP 626.

* Remove column table from code objects.

* Remove end-line table from code objects.

* Document new location table format
This commit is contained in:
Mark Shannon 2022-04-21 16:10:37 +01:00 committed by GitHub
parent 2a5f171759
commit 944fffee89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 859 additions and 539 deletions

View file

@ -28,19 +28,15 @@ unsigned char M_test_frozenmain[] = {
107,101,121,169,0,243,0,0,0,0,250,18,116,101,115,116,
95,102,114,111,122,101,110,109,97,105,110,46,112,121,250,8,
60,109,111,100,117,108,101,62,114,11,0,0,0,1,0,0,
0,115,18,0,0,0,2,128,8,3,8,1,22,2,34,1,
42,1,8,1,48,7,4,249,115,20,0,0,0,2,128,8,
3,8,1,22,2,34,1,42,1,2,7,4,1,2,249,52,
7,115,176,0,0,0,0,0,1,11,1,11,1,11,1,11,
1,25,1,25,1,25,1,25,1,6,1,6,7,27,1,28,
1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,6,
1,6,7,17,19,22,19,27,19,27,19,27,19,27,19,27,
1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,
10,39,10,27,10,39,10,39,10,39,10,39,10,39,10,41,
10,41,10,41,10,41,10,41,10,41,10,41,42,50,10,51,
10,51,10,51,10,51,10,51,1,7,12,2,1,42,1,42,
5,8,5,10,5,10,11,41,21,24,11,41,11,41,28,34,
35,38,28,39,28,39,28,39,28,39,28,39,11,41,11,41,
5,42,5,42,5,42,5,42,5,42,5,42,5,42,5,42,
5,42,1,42,1,42,114,9,0,0,0,
0,115,152,0,0,0,248,240,6,0,1,11,128,10,128,10,
128,10,216,0,24,208,0,24,208,0,24,208,0,24,224,0,
5,128,5,208,6,26,209,0,27,212,0,27,208,0,27,216,
0,5,128,5,128,106,144,35,148,40,209,0,27,212,0,27,
208,0,27,216,9,38,208,9,26,212,9,38,209,9,40,212,
9,40,168,24,212,9,50,128,6,240,2,6,12,2,240,0,
7,1,42,240,0,7,1,42,128,67,240,14,0,5,10,128,
69,208,10,40,144,67,208,10,40,208,10,40,152,54,160,35,
156,59,208,10,40,208,10,40,209,4,41,212,4,41,208,4,
41,208,4,41,240,15,7,1,42,240,0,7,1,42,114,9,
0,0,0,
};