Which file is the interpreter?
eller.helmut at gmail.com
Wed Sep 23 22:43:56 PDT 2009
* James Ladd [2009-09-23 23:52+0200] writes:
> Im looking for the loop that takes the next instruction and dispatches
> it. Maybe I just dont understand the JVM - yet. Is there such a loop ?
As described in Gary Benson blog, there are two interpreters: the c++
interpreter and the template based interpreter.
The loop that you are searching is probably the run method in
bytecodeInterpreter.cpp. But as far as I understand the c++ interpreter
is normally not used (maybe for debugging or new platforms).
The template interpreter has no dispatch loop: templates are chained
together which removes dispatch overhead almost entirely.
More information about the mlvm-dev