On Fri, Aug 09, 2002 at 04:10:50PM -0400, Dan Sugalski wrote:
> Okay, one of the first things we need to do to support multiple 
> segment bytecode is to be able to swap in constant tables. (Since we 
> access constants by offset from the table, and we don't want to go 
> fix up the offsets every time we load in bytecode--ick. Slow)
> 
> So...
> 
>   setconstant ix
> 
> Takes the address *at* (not of) offset X and sticks it in the 
> interpreter structure as the address of the current constant table

I wonder if the recent things you've been thinking about should be
combined. Namely: make a PMC wrapper for the interpreter. Then do
constant table manipulation through method invocations on the
interpreter PMC. Or if not methods, then whatever mechanism you end up
with for doing L-U decompositions for Josef H.'s matrix PMCs.

While we're at it, we could nuke interp_info and do that through keyed
access to the interpreter PMC.

Reply via email to