Merge: Simplify management of primitive types
authorJean Privat <jean@pryen.org>
Mon, 23 Mar 2015 15:16:10 +0000 (22:16 +0700)
committerJean Privat <jean@pryen.org>
Mon, 23 Mar 2015 15:16:10 +0000 (22:16 +0700)
commitce1db52ac3e8f97f93c0555c599a224f54eb048c
treeafc2b3cb6dec86a30cdd91edc29f71c2d71992bf
parent2091a6f0d0f4fea6f1f8c2131d336d49547b55aa
parentebf82383d1898fa75d5c2b05244246cec71c2fec
Merge: Simplify management of primitive types

Add direct methods to access primitive types

Simplify and improve the generation of primitive values in the compiler.

More (and improved) `*_instance` methods are now available in AbstractCompilerVisitor.
One of the point is the simplification of the generated C so that less local variables are generated, maybe this will also help the C compiler to work faster.

Pull-Request: #1213
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
src/compiler/abstract_compiler.nit
src/compiler/global_compiler.nit
src/compiler/separate_compiler.nit
src/compiler/separate_erasure_compiler.nit