separate_compiler: migrate resolution table coloring
authorAlexandre Terrasa <alexandre@moz-code.org>
Wed, 30 Apr 2014 18:05:09 +0000 (14:05 -0400)
committerAlexandre Terrasa <alexandre@moz-code.org>
Fri, 9 May 2014 15:36:48 +0000 (11:36 -0400)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

src/separate_compiler.nit

index adda922..6243caa 100644 (file)
@@ -558,8 +558,9 @@ class SeparateCompiler
                end
 
                # Compute the table layout with the prefered method
-               var resolution_builder = new ResolutionColorer
-               self.resolution_layout = resolution_builder.build_layout(mtype2unresolved)
+               var colorer = new BucketsColorer[MType, MType]
+               resolution_layout = new Layout[MType]
+               resolution_layout.pos = colorer.colorize(mtype2unresolved)
                self.resolution_tables = self.build_resolution_tables(mtype2unresolved)
 
                # Compile a C constant for each collected unresolved type.