Skip to content

Commit

Permalink
bulk: refactor disassembly
Browse files Browse the repository at this point in the history
  • Loading branch information
pulkin committed Jan 20, 2024
1 parent 8fe87bd commit 9402b57
Show file tree
Hide file tree
Showing 17 changed files with 1,769 additions and 678 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- re-worked bytecode assembly and added tests
- the use of sockets to transmit object data instead of saving it in a code
object. As a result, there is no memory overhead related to serialized data
while morph `pyc` files remain very small
- experimentation with AWS EC2
- added experimentation with AWS EC2

### Fixed

Expand Down
4 changes: 3 additions & 1 deletion cython/frame.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ cdef extern from "frameobject.h":
cdef extern from *: # stack depth for different python versions
"""
#if PY_VERSION_HEX >= 0x030A0000
static int _pyteleport_stackdepth(struct _frame* frame) {return frame->f_stackdepth;}
static int _pyteleport_stackdepth(struct _frame* frame) {
return frame->f_stackdepth;
}
#elif PY_VERSION_HEX >= 0x03080000
static int _pyteleport_stackdepth(struct _frame* frame) {
if (frame->f_stacktop)
Expand Down
1 change: 1 addition & 0 deletions pyteleport/bytecode/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .minias import jump_multiplier, disassemble, ObjectBytecode as Bytecode
Loading

0 comments on commit 9402b57

Please sign in to comment.