yarv-dev-en:232
From: Steven Swerling <sswerling yahoo.com>
Date: Tue, 31 Oct 2006 18:58:46 -0500
Subject: [yarv-dev-en:232] Re: yield bytecode?
Charles Oliver Nutter wrote: > I notice in the compiled/disassembled output there's "yield" handling > returns. Is there a yield bytecode? Is the list of bytecodes out of > date? What is the best place to look for an up-to-date list of bytecodes? > I'm a bit confused by the bytecodes too -- from looking at insns.inc, it appears that there are 78 bytecodes, but the docs on the web show a lot more beyond the base ones (getlocal_OP_2, send_OP__WC__0_Qfalse_0__WC_, etc). I can't find these extra byte codes in the source, not even from grepping the entire code-base. Are those extra ones dynamicly generated? I haven't been testing w/ very complex code, but I've never produced a disassembler output that didn't consist just of the 78 listed bytecodes. What code produces a "yield" in the disassemply output (a "yield" statement in code doesnt)? I'm assuming your using something along the lines of parsed = YARVCore::InstructionSequence.compile(my_code_string) p parsed.disasm to look at the disassembled output. -- ML: yarv-dev-en quickml.atdot.net Info: http://www.atdot.net/~ko1/quickml
231 2006-10-31 07:24 [charles.nutter sun.c] yield bytecode? -> 232 2006-11-01 08:58 ┣[sswerling yahoo.com ] 234 2006-11-04 12:57 ┃┗[ko1 atdot.net ] 236 2006-11-05 05:37 ┃ ┗[sswerling yahoo.com ] 238 2006-11-05 09:00 ┃ ┗[znmeb cesmail.net ] 233 2006-11-04 12:51 ┗[ko1 atdot.net ]