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:
+2
-4
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user