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
|
// 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>?
|
||||||
)
|
)
|
||||||
@@ -136,4 +137,4 @@ internal val ContextUtils.theUnitInstanceRef: ConstPointer
|
|||||||
} else {
|
} else {
|
||||||
context.llvmDeclarations.getUnitInstanceRef()
|
context.llvmDeclarations.getUnitInstanceRef()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user