Make interpreter maps of enum and object declarations non static

Instead of this just create interpreter once per module handling
This commit is contained in:
Ivan Kylchik
2020-06-02 21:09:28 +03:00
parent ff830cc744
commit a3c77eca08
@@ -41,10 +41,8 @@ class IrInterpreter(irModule: IrModuleFragment, private val bodyMap: Map<IdSigna
private val stack = StackImpl()
private var commandCount = 0
companion object {
private val mapOfEnums = mutableMapOf<IrSymbol, Complex>()
private val mapOfObjects = mutableMapOf<IrSymbol, Complex>()
}
private val mapOfEnums = mutableMapOf<IrSymbol, Complex>()
private val mapOfObjects = mutableMapOf<IrSymbol, Complex>()
private fun Any?.getType(defaultType: IrType): IrType {
return when (this) {