analysis: improve alocate_register_slots
authorJean Privat <jean@pryen.org>
Thu, 21 Jan 2010 21:30:21 +0000 (16:30 -0500)
committerJean Privat <jean@pryen.org>
Thu, 21 Jan 2010 21:30:21 +0000 (16:30 -0500)
commit03241338d0e18c525a0b4bb09f640fee20ee4e62
tree028ccfc075206d203fbe2e1f9ca6e845ea986f62
parent264011ac43f2509ab2465e95ec42c23cd2358aed
analysis: improve alocate_register_slots

Use better data structure (no more hash*) and detect loop/closure nesting.

Signed-off-by: Jean Privat <jean@pryen.org>
src/analysis/allocate_iregister_slots.nit
tests/icode_ireg.nit [new file with mode: 0644]
tests/sav/icode_ireg.sav [new file with mode: 0644]