Thanksˇˇfor reference.

(2011/10/26 11:20), Carter Cheng wrote:
> I noticed that you used context threading in YARV. Do you have some analysis
> of this cost benefit wise over other methods? I was curious why you selected
> this for ruby.

We don't use context threading[1].  context threading needs a few
assembler codes.  However, YARV doesn't use any assemblers.  In current
our YARV bytecode, I doubt that we can't make it faster with it because
of instruction granularity (course-grain instruction especially "send").

[2] may also help you.


[1] Context Threading: A Flexible and Efficient Dispatch Technique for
Virtual Machine Interpreters
http://dl.acm.org/citation.cfm?id=1048922.1048973&coll=DL&dl=GUIDE&CFID=63997736&CFTOKEN=37906754

[2] Analyzing the performance of code-copying virtual machines
http://dl.acm.org/citation.cfm?id=1449764.1449796&coll=DL&dl=GUIDE&CFID=63997736&CFTOKEN=37906754

Regards,
Koichi

-- 
// SASADA Koichi at atdot dot net