From 2c71da39e6144ba9d197aee4d57f294e53381316 Mon Sep 17 00:00:00 2001 From: Eugene Auduchinok Date: Thu, 14 Apr 2022 21:32:53 +0500 Subject: [PATCH] IL: use structs for indexes (#12987) --- src/fsharp/absil/ilread.fs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/fsharp/absil/ilread.fs b/src/fsharp/absil/ilread.fs index e1e2dc78a..156c0f90b 100644 --- a/src/fsharp/absil/ilread.fs +++ b/src/fsharp/absil/ilread.fs @@ -714,16 +714,38 @@ let simpleIndexCompare (idx1: int) (idx2: int) = // The various keys for the various caches. //--------------------------------------------------------------------- + +[] type TypeDefAsTypIdx = TypeDefAsTypIdx of ILBoxity * ILGenericArgs * int + +[] type TypeRefAsTypIdx = TypeRefAsTypIdx of ILBoxity * ILGenericArgs * int + +[] type BlobAsMethodSigIdx = BlobAsMethodSigIdx of numtypars: int * blobIdx: int32 + +[] type BlobAsFieldSigIdx = BlobAsFieldSigIdx of numtypars: int * blobIdx: int32 + +[] type BlobAsPropSigIdx = BlobAsPropSigIdx of numtypars: int * blobIdx: int32 + +[] type BlobAsLocalSigIdx = BlobAsLocalSigIdx of numtypars: int * blobIdx: int32 + +[] type MemberRefAsMspecIdx = MemberRefAsMspecIdx of numtypars: int * idx: int + +[] type MethodSpecAsMspecIdx = MethodSpecAsMspecIdx of numtypars: int * idx: int + +[] type MemberRefAsFspecIdx = MemberRefAsFspecIdx of numtypars: int * idx: int + +[] type CustomAttrIdx = CustomAttrIdx of CustomAttributeTypeTag * idx: int * valIdx: int32 + +[] type GenericParamsIdx = GenericParamsIdx of numtypars: int * TypeOrMethodDefTag * idx: int //--------------------------------------------------------------------- -- GitLab