Merge: Generalize instance creation service so FFI can use it
authorJean Privat <jean@pryen.org>
Fri, 6 Feb 2015 01:14:55 +0000 (08:14 +0700)
committerJean Privat <jean@pryen.org>
Fri, 6 Feb 2015 01:14:55 +0000 (08:14 +0700)
commitf9c9c25e9dd4675a020b495c9f5a3a6f52691872
tree1197fef95b6300fc7a0259f4541c3e7c746c5095
parent372a61b6f9f8490faae2e4cecb98381a12f6cb15
parente0b09defd048208f3a88f7d078a797c0b70b1b04
Merge: Generalize instance creation service so FFI can use it

Move up instance creation from ANew to AbstractCompilerVisitor so they can be used from the FFI implementation. Allows to call extern constructors of extern classes from extern code, and fix #1145.

Pull-Request: #1150
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Jean Privat <jean@pryen.org>
src/compiler/abstract_compiler.nit