It is not a lookup table - think more of some additional shortcuts you introduce for a certain mode. This way you get lots of speed but loose flexibility. In GraphHopper you can enable and disable it, the code is here https://github.com/graphhopper/graphhopper/blob/master/core/...
If you are interested in further details on algorithms for route planning, check out http://i11www.iti.uni-karlsruhe.de/teaching/sommer2014/route... for a whole lecture on them (slides are in English). Each chapter also contains a list of relevant publications.
Can you point to the actual code?
Looks like it might be https://github.com/Project-OSRM/osrm-backend/tree/master/con... , but I don't know for sure.
It's a great example of how theoretical CS research can have a huge impact on practical applications.
http://en.wikipedia.org/wiki/Contraction_hierarchies
http://algo2.iti.kit.edu/documents/routeplanning/geisberger_... (PDF)