@@ -574,7 +574,7 @@ enum CorInfoHelpFunc
574
574
CORINFO_HELP_MEMSET, // Init block of memory
575
575
CORINFO_HELP_MEMZERO, // Init block of memory with zeroes
576
576
CORINFO_HELP_MEMCPY, // Copy block of memory
577
- CORINFO_HELP_NATIVE_MEMSET, // Init block of memory using native memset (not safe for pDst being null,
577
+ CORINFO_HELP_NATIVE_MEMSET, // Init block of memory using native memset (not safe for pDst being null,
578
578
// not safe for unbounded size, does not trigger GC)
579
579
580
580
CORINFO_HELP_RUNTIMEHANDLE_METHOD, // determine a type/field/method handle at run-time
@@ -1982,6 +1982,16 @@ enum class GetTypeLayoutResult
1982
1982
Failure,
1983
1983
};
1984
1984
1985
+ #define MAX_SWIFT_LOWERED_ELEMENTS 4
1986
+
1987
+ struct CORINFO_SWIFT_LOWERING
1988
+ {
1989
+ bool byReference;
1990
+ CorInfoType loweredElements[MAX_SWIFT_LOWERED_ELEMENTS];
1991
+ uint32_t offsets[MAX_SWIFT_LOWERED_ELEMENTS];
1992
+ size_t numLoweredElements;
1993
+ };
1994
+
1985
1995
#define SIZEOF__CORINFO_Object TARGET_POINTER_SIZE /* methTable */
1986
1996
1987
1997
#define CORINFO_Array_MaxLength 0x7FFFFFC7
@@ -2061,7 +2071,7 @@ class ICorStaticInfo
2061
2071
// Example of a scenario addressed by notifyMethodInfoUsage:
2062
2072
// 1) Crossgen (with --opt-cross-module=MyLib) attempts to inline a call from MyLib.dll into MyApp.dll
2063
2073
// and realizes that the call always throws.
2064
- // 2) JIT aborts the inlining attempt and marks the call as no-return instead. The code that follows the call is
2074
+ // 2) JIT aborts the inlining attempt and marks the call as no-return instead. The code that follows the call is
2065
2075
// replaced with a breakpoint instruction that is expected to be unreachable.
2066
2076
// 3) MyLib is updated to a new version so it's no longer within the same version bubble with MyApp.dll
2067
2077
// and the new version of the call no longer throws and does some work.
0 commit comments