You are probably talking about threaded code which is described in "The Structure and Performance of Efficient Interpreters"
http://www.jilp.org/vol5/v5paper12.pdf
With real code examples
With real code examples
http://blog.mozilla.com/dmandelin/2008/08/27/inline-threadin...