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 // FIXME: properly import body type from stdlib
val body = Struct( val body = Struct(
array, // array: Array<E> // Sorted by the hashCode() of the name.
Int32(0), // offset: Int Int32(0), // offset: Int
array, // array: Array<E>
Int32(length), // length: Int Int32(length), // length: Int
NullPointer(kObjHeader) // backing: ArrayList<E>? NullPointer(kObjHeader) // backing: ArrayList<E>?
) )