Sorted the fields of manually created ArrayList.

This commit is contained in:
Alexander Gorshenev
2017-02-07 21:26:32 +03:00
committed by alexander-gorshenev
parent ca908ef4bd
commit c0fdbd0e21
@@ -108,8 +108,9 @@ internal fun StaticData.createArrayList(elementType: TypeProjection, array: Cons
// FIXME: properly import body type from stdlib
val body = Struct(
array, // array: Array<E>
// Sorted by the hashCode() of the name.
Int32(0), // offset: Int
array, // array: Array<E>
Int32(length), // length: Int
NullPointer(kObjHeader) // backing: ArrayList<E>?
)
@@ -136,4 +137,4 @@ internal val ContextUtils.theUnitInstanceRef: ConstPointer
} else {
context.llvmDeclarations.getUnitInstanceRef()
}
}
}