From: Rocky Bernstein Date: 2008-03-31T13:29:07+09:00 Subject: The future of VM::InstructionSequence ------=_Part_24072_21681334.1206937743566 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline A while back in The future of VM::InstructionSequencethis was written: > and by the way I am thinking of adding and instruction to apply > patches to bytecode. > > Anybody know what the status of VM::InstructionSequence is? Currently in ruby 1.9 debug.rb seems to set a compile option to insert trace statements inside the instructions. If VM::InstructionSequence goes away, how will debug.rb work? Something related to applying patches to bytecode would be a *temporary *patch. More specifically the "trace" instruction might be applied over an existing bytecode which would allow for debugging without requiring a special compile option. Here, what would be needed though is the old bytecode saved and executed on return from the trace instruction. I'm not completely sure but I think all of this could be done without needing special support inside the VM. Thoughts and comments? ------=_Part_24072_21681334.1206937743566 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline A while back in The future of VM::InstructionSequence this was written:
and by the way I am thinking of adding and instruction to apply
patches to bytecode.

Anybody know what the status of VM::InstructionSequence is?  Currently in ruby 1.9 debug.rb seems to set a compile option to insert trace statements inside the instructions. If VM::InstructionSequence goes away, how will debug.rb work?

Something related to applying patches to bytecode would be a temporary patch. More specifically the "trace" instruction might be applied over an existing bytecode which would allow for debugging without requiring a special compile option. Here, what would be needed though is the old bytecode saved and executed on return from the trace instruction. I'm not completely sure but I think all of this could be done without needing special support inside the VM.

Thoughts and comments?


 

------=_Part_24072_21681334.1206937743566--