[JS IR BE] Make backend be able work with unbound symbols

* Fix array type deserialization
 * Prepare to compilation against klibs
This commit is contained in:
Roman Artemev
2019-02-14 20:01:48 +03:00
committed by romanart
parent 2334ea2742
commit 6863f9e4f3
6 changed files with 47 additions and 42 deletions
@@ -96,8 +96,8 @@ class IrBuiltIns(
builtIns.nothing to IrTypeMapper({ nothingType }, { nothingNType }),
builtIns.unit to IrTypeMapper({ unitType }, { buildNullableType(unitType) }),
builtIns.string to IrTypeMapper({ stringType }, { buildNullableType(stringType) }),
builtIns.throwable to IrTypeMapper({ throwableType }, { buildNullableType(throwableType) }),
builtIns.array to IrTypeMapper({ arrayType }, { buildNullableType(arrayType) })
builtIns.throwable to IrTypeMapper({ throwableType }, { buildNullableType(throwableType) })//,
// builtIns.array to IrTypeMapper({ arrayType }, { buildNullableType(arrayType) })
)
fun getPrimitiveTypeOrNullByDescriptor(descriptor: ClassifierDescriptor, isNullable: Boolean) =
@@ -61,7 +61,7 @@ class ExternalDependenciesGenerator(
deserializer?.declareForwardDeclarations()
assert(symbolTable.unboundClasses.isEmpty())
// assert(symbolTable.unboundClasses.isEmpty())
assert(symbolTable.unboundConstructors.isEmpty())
assert(symbolTable.unboundEnumEntries.isEmpty())
assert(symbolTable.unboundFields.isEmpty())