Sorted the fields of manually created ArrayList.
This commit is contained in:
committed by
alexander-gorshenev
parent
ca908ef4bd
commit
c0fdbd0e21
+3
-2
@@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user