Message266431
| Author |
serhiy.storchaka |
| Recipients |
serhiy.storchaka, vstinner |
| Date |
2016年05月26日.13:13:07 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1464268387.83.0.862540030058.issue27129@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
This is the second stage of converting to wordcode (issue26647).
Proposed patch makes bytecodecode consisting of code units (16-bit words) instead of bytes. It includes following changes:
* Changes meaning of jump offsets. They counts not bytes, but code units. This extends the range addressed by short commands (from 256 bytes to 256 words) and simplifies ceval.c.
* Changes f_lasti, tb_lasti etc to count code units instead of bytes.
* Changes disassembler to show addresses in code units, not bytes.
* Refactores the code.
These changes break compatibility (already broken by switching to 16-bit bytecode). The first one breaks compatibility with compiled bytecode and needs incrementing the magic number. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2016年05月26日 13:13:14 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, vstinner |
| 2016年05月26日 13:13:07 | serhiy.storchaka | set | messageid: <1464268387.83.0.862540030058.issue27129@psf.upfronthosting.co.za> |
| 2016年05月26日 13:13:07 | serhiy.storchaka | link | issue27129 messages |
| 2016年05月26日 13:13:07 | serhiy.storchaka | create |
|