scala/scala — pull request #130 by gkossakowski (2012-01-24 01:17:50+00:00)
Title: Simplified emitSwitch in PatMatVirtualiser.

Simplified emitSwitch method that does not emit
forward jumps for switch tables. Instead, it
emits Match trees that are of a shape that
can be directly translated to switch.

The backend takes care of the actual translation
from Match trees into switch tables.

As a bonus, we emit more compact trees compared
to the old implementation of emitSwitch.

Review by @adriaanm.