Neil Girdhar added the comment:

Another option to consider is to just use a bit on the BUILD_MAP_UNPACK and 
then have a stack marking opcode at the function call (not sure what to call 
it, but say FUNCTION_CALL_MARK)

The advantage would be you don't store or calculate relative stack positions.  
When the interpreter sees the mark, it stores the function call address for use 
in BUILD_MAP_UNPACK errors.

Although I guess you have 24 bits to store the relative stack position?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue2292>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to