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
Thanks, that's an interesting paper. I have never heard of that paper, I'm thinking specifically of a VM that implemented the feature. Not sure if we are talking about the same algorithm, either, although it sounds similar.