layout_builders: better filtering of mproperties in MPropertyColorer
authorAlexandre Terrasa <alexandre@moz-code.org>
Wed, 27 Feb 2013 17:39:53 +0000 (12:39 -0500)
committerAlexandre Terrasa <alexandre@moz-code.org>
Mon, 4 Mar 2013 18:20:02 +0000 (13:20 -0500)
commit99727502394890f93e8d6f3123524ab8aaa098cf
treebd79945dad8d5a50b8ee4f6075d7f373d560b35e
parent60466b3dd84c7ee474bcedce786592270fd5ff49
layout_builders: better filtering of mproperties in MPropertyColorer

Previously using `if mprop isa E then properties.add(mprop)` where `E` was a formal type
but inneficien with compilers using erasure.

Fixed this with hardcoded subtyping test in 3 subclasses : MMethodColorer, MAttributeColorer & MVirtualTypePropColorer

This fix allow better tables computation reducing the total amount of holes.

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
src/layout_builders.nit
src/separate_compiler.nit
src/separate_erasure_compiler.nit