184 references to RuntimeInfoArchitecture
Microsoft.Diagnostics.DataContractReader.Abstractions (1)
Contracts\IRuntimeInfo.cs (1)
43
RuntimeInfoArchitecture
GetTargetArchitecture() => throw new NotImplementedException();
Microsoft.Diagnostics.DataContractReader.Contracts (108)
Contracts\CallingConvention\CallingConvention_1.cs (11)
307
uint cbStackPop = runtimeInfo.GetTargetArchitecture() ==
RuntimeInfoArchitecture
.X86
316
RuntimeInfoArchitecture
arch = runtimeInfo.GetTargetArchitecture();
321
RuntimeInfoArchitecture
.X86 => Internal.TypeSystem.TargetArchitecture.X86,
322
RuntimeInfoArchitecture
.X64 => Internal.TypeSystem.TargetArchitecture.X64,
323
RuntimeInfoArchitecture
.Arm => Internal.TypeSystem.TargetArchitecture.ARM,
324
RuntimeInfoArchitecture
.Arm64 => Internal.TypeSystem.TargetArchitecture.ARM64,
325
RuntimeInfoArchitecture
.LoongArch64 => Internal.TypeSystem.TargetArchitecture.LoongArch64,
326
RuntimeInfoArchitecture
.RiscV64 => Internal.TypeSystem.TargetArchitecture.RiscV64,
327
RuntimeInfoArchitecture
.Wasm => Internal.TypeSystem.TargetArchitecture.Wasm32,
366
RuntimeInfoArchitecture
arch = runtimeInfo.GetTargetArchitecture();
367
bool isX86 = arch is
RuntimeInfoArchitecture
.X86;
Contracts\CallingConvention\CdacTypeHandle.cs (2)
48
public
RuntimeInfoArchitecture
Arch => _target.Contracts.RuntimeInfo.GetTargetArchitecture();
192
if (Arch !=
RuntimeInfoArchitecture
.X86
Contracts\Debugger\Debugger_1.cs (9)
345
RuntimeInfoArchitecture
arch = target.Contracts.RuntimeInfo.GetTargetArchitecture();
373
private static CallingConvention GetCallingConvention(
RuntimeInfoArchitecture
arch, RuntimeInfoOperatingSystem os)
377
case
RuntimeInfoArchitecture
.X86:
381
case
RuntimeInfoArchitecture
.X64 when os == RuntimeInfoOperatingSystem.Windows:
386
case
RuntimeInfoArchitecture
.X64:
390
case
RuntimeInfoArchitecture
.Arm:
394
case
RuntimeInfoArchitecture
.Arm64:
398
case
RuntimeInfoArchitecture
.LoongArch64:
399
case
RuntimeInfoArchitecture
.RiscV64:
Contracts\Debugger\StackPusher.cs (7)
48
RuntimeInfoArchitecture
arch = target.Contracts.RuntimeInfo.GetTargetArchitecture();
55
RuntimeInfoArchitecture
.X86 => os == RuntimeInfoOperatingSystem.Windows ? 4u : 16u,
56
RuntimeInfoArchitecture
.X64 => 16,
57
RuntimeInfoArchitecture
.Arm => 8, // AAPCS32: 8-byte aligned at public interfaces
58
RuntimeInfoArchitecture
.Arm64 => 16,
59
RuntimeInfoArchitecture
.LoongArch64 => 16,
60
RuntimeInfoArchitecture
.RiscV64 => 16,
Contracts\DebugInfo\DebugInfo_1.cs (1)
143
bool isX86 = _target.Contracts.RuntimeInfo.GetTargetArchitecture() ==
RuntimeInfoArchitecture
.X86;
Contracts\Exception_1.cs (1)
93
bool compensateForOldEhIp = _target.Contracts.RuntimeInfo.GetTargetArchitecture() is
RuntimeInfoArchitecture
.X64;
Contracts\ExecutionManager\ExecutionManagerCore.cs (4)
276
if (target.Contracts.RuntimeInfo.GetTargetArchitecture() !=
RuntimeInfoArchitecture
.Wasm)
535
if (_target.Contracts.RuntimeInfo.GetTargetArchitecture() ==
RuntimeInfoArchitecture
.Wasm)
628
if (_target.Contracts.RuntimeInfo.GetTargetArchitecture() is not
RuntimeInfoArchitecture
.X86)
732
runtimeInfo.GetTargetArchitecture() ==
RuntimeInfoArchitecture
.X86)
Contracts\ExecutionManager\ExecutionManagerCore.ReadyToRunJitManager.cs (1)
26
target.Contracts.RuntimeInfo.GetTargetArchitecture() ==
RuntimeInfoArchitecture
.Wasm);
Contracts\ExecutionManager\Helpers\UnwindDataSize.cs (9)
12
public static uint GetUnwindDataSize(Target target, TargetPointer unwindInfo,
RuntimeInfoArchitecture
arch)
16
case
RuntimeInfoArchitecture
.X86:
18
case
RuntimeInfoArchitecture
.X64:
30
case
RuntimeInfoArchitecture
.Arm:
31
case
RuntimeInfoArchitecture
.Arm64:
38
if (arch ==
RuntimeInfoArchitecture
.Arm)
66
case
RuntimeInfoArchitecture
.LoongArch64:
67
case
RuntimeInfoArchitecture
.RiscV64:
101
case
RuntimeInfoArchitecture
.Wasm:
Contracts\GCInfo\GCInfoDecoder.cs (7)
105
private readonly
RuntimeInfoArchitecture
_arch;
470
if (_arch ==
RuntimeInfoArchitecture
.Arm64)
536
bool wantsReportOnlyLeaf = _arch ==
RuntimeInfoArchitecture
.X64 && _gcVersion < 4 ? flag80Set : true;
537
bool hasTailCalls = _arch is
RuntimeInfoArchitecture
.Arm or
RuntimeInfoArchitecture
.Arm64 or
RuntimeInfoArchitecture
.LoongArch64 or
RuntimeInfoArchitecture
.RiscV64
Contracts\RuntimeInfo_1.cs (5)
12
private
RuntimeInfoArchitecture
? _architecture;
32
RuntimeInfoArchitecture
IRuntimeInfo.GetTargetArchitecture()
49
private
RuntimeInfoArchitecture
ReadArchitecture()
53
if (Enum.TryParse(arch, ignoreCase: true, out
RuntimeInfoArchitecture
parsedArch))
59
return
RuntimeInfoArchitecture
.Unknown;
Contracts\RuntimeTypeSystem_1.cs (5)
651
private bool IsFeatureHfaTarget(out
RuntimeInfoArchitecture
arch)
654
return arch is
RuntimeInfoArchitecture
.Arm or
RuntimeInfoArchitecture
.Arm64;
661
if (!IsFeatureHfaTarget(out
RuntimeInfoArchitecture
arch))
670
if (arch ==
RuntimeInfoArchitecture
.Arm)
Contracts\Signature\Signature_1.cs (1)
63
if (_target.Contracts.RuntimeInfo.GetTargetArchitecture() ==
RuntimeInfoArchitecture
.X86)
Contracts\StackWalk\Context\IPlatformAgnosticContext.cs (9)
49
RuntimeInfoArchitecture
architecture = runtimeInfo.GetTargetArchitecture();
51
if (TargetArchitectureSupport.IsX86Supported && architecture ==
RuntimeInfoArchitecture
.X86)
54
if (TargetArchitectureSupport.IsX64Supported && architecture ==
RuntimeInfoArchitecture
.X64)
57
if (TargetArchitectureSupport.IsArmSupported && architecture ==
RuntimeInfoArchitecture
.Arm)
60
if (TargetArchitectureSupport.IsArm64Supported && architecture ==
RuntimeInfoArchitecture
.Arm64)
63
if (TargetArchitectureSupport.IsLoongArch64Supported && architecture ==
RuntimeInfoArchitecture
.LoongArch64)
66
if (TargetArchitectureSupport.IsRiscV64Supported && architecture ==
RuntimeInfoArchitecture
.RiscV64)
69
if (TargetArchitectureSupport.IsWasmSupported && architecture ==
RuntimeInfoArchitecture
.Wasm)
73
architecture ==
RuntimeInfoArchitecture
.Unknown
Contracts\StackWalk\FrameHandling\FrameHelpers.cs (11)
239
if (_target.Contracts.RuntimeInfo.GetTargetArchitecture() is
RuntimeInfoArchitecture
.X86)
454
_target.Contracts.RuntimeInfo.GetTargetArchitecture() ==
RuntimeInfoArchitecture
.X86 &&
662
&& Enum.TryParse(arch, ignoreCase: true, out
RuntimeInfoArchitecture
runtimeArchitecture))
664
return runtimeArchitecture ==
RuntimeInfoArchitecture
.X86;
848
RuntimeInfoArchitecture
.X64 =>
850
RuntimeInfoArchitecture
.Arm64 => "x0",
851
RuntimeInfoArchitecture
.Arm => "r0",
852
RuntimeInfoArchitecture
.X86 => "ecx",
853
RuntimeInfoArchitecture
.LoongArch64 => "a0",
854
RuntimeInfoArchitecture
.RiscV64 => "a0",
855
RuntimeInfoArchitecture
.Wasm => WasmContext.InterpreterWalkFramePointerRegister,
Contracts\StackWalk\GC\GcScanner.cs (3)
213
if (_target.Contracts.RuntimeInfo.GetTargetArchitecture() is
RuntimeInfoArchitecture
.X86)
301
if (_target.Contracts.RuntimeInfo.GetTargetArchitecture() is
RuntimeInfoArchitecture
.X86)
308
if (_target.Contracts.RuntimeInfo.GetTargetArchitecture() is
RuntimeInfoArchitecture
.X86)
Contracts\StackWalk\StackWalk_1.cs (14)
197
bool isX86 = _target.Contracts.RuntimeInfo.GetTargetArchitecture() ==
RuntimeInfoArchitecture
.X86;
1101
RuntimeInfoArchitecture
.X86 => (true, -4L),
1102
RuntimeInfoArchitecture
.X64 => (true, 0x20L),
1103
RuntimeInfoArchitecture
.Arm => (false, 0L),
1104
RuntimeInfoArchitecture
.Arm64 => (false, 0L),
1105
RuntimeInfoArchitecture
.RiscV64 => (false, 0L),
1106
RuntimeInfoArchitecture
.LoongArch64 => (false, 0L),
1135
RuntimeInfoArchitecture
arch = _target.Contracts.RuntimeInfo.GetTargetArchitecture();
1138
RuntimeInfoArchitecture
.X64 => handle.Context.StackPointer,
1139
RuntimeInfoArchitecture
.Arm64
1140
or
RuntimeInfoArchitecture
.Arm
1141
or
RuntimeInfoArchitecture
.RiscV64
1142
or
RuntimeInfoArchitecture
.LoongArch64 => CallerStackPointer(handle),
1143
RuntimeInfoArchitecture
.X86 => ComputeX86FramePointer(handle),
CoreCLRContracts.cs (8)
63
RuntimeInfoArchitecture
arch = t.Contracts.RuntimeInfo.GetTargetArchitecture();
66
RuntimeInfoArchitecture
.X64 when TargetArchitectureSupport.IsX64Supported => new GCInfo_1<AMD64GCInfoTraits>(t),
67
RuntimeInfoArchitecture
.X86 when TargetArchitectureSupport.IsX86Supported => new GCInfoX86_1(t),
68
RuntimeInfoArchitecture
.Arm64 when TargetArchitectureSupport.IsArm64Supported => new GCInfo_1<ARM64GCInfoTraits>(t),
69
RuntimeInfoArchitecture
.Arm when TargetArchitectureSupport.IsArmSupported => new GCInfo_1<ARMGCInfoTraits>(t),
70
RuntimeInfoArchitecture
.LoongArch64 when TargetArchitectureSupport.IsLoongArch64Supported => new GCInfo_1<LoongArch64GCInfoTraits>(t),
71
RuntimeInfoArchitecture
.RiscV64 when TargetArchitectureSupport.IsRiscV64Supported => new GCInfo_1<RISCV64GCInfoTraits>(t),
72
RuntimeInfoArchitecture
.Wasm when TargetArchitectureSupport.IsWasmSupported => new GCInfo_1<WasmGCInfoTraits>(t),
Microsoft.Diagnostics.DataContractReader.Legacy (75)
ClrDataFrame.cs (13)
953
if (target.Contracts.RuntimeInfo.GetTargetArchitecture() ==
RuntimeInfoArchitecture
.Wasm)
1111
RuntimeInfoArchitecture
arch = target.Contracts.RuntimeInfo.GetTargetArchitecture();
1114
RuntimeInfoArchitecture
.X64 => 33,
1115
RuntimeInfoArchitecture
.X86 => 9,
1116
RuntimeInfoArchitecture
.Arm64 => 66,
1117
RuntimeInfoArchitecture
.Arm => 17,
1118
RuntimeInfoArchitecture
.LoongArch64 => 34,
1119
RuntimeInfoArchitecture
.RiscV64 => 34,
1126
RuntimeInfoArchitecture
arch = target.Contracts.RuntimeInfo.GetTargetArchitecture();
1129
RuntimeInfoArchitecture
.X64 => 4, // RSP
1130
RuntimeInfoArchitecture
.X86 => 4, // ESP
1131
RuntimeInfoArchitecture
.Arm64 => 31, // SP
1132
RuntimeInfoArchitecture
.Arm => 13, // SP
Dbi\DacDbiImpl.cs (55)
2234
RuntimeInfoArchitecture
arch = _target.Contracts.RuntimeInfo.GetTargetArchitecture();
2235
if (arch is
RuntimeInfoArchitecture
.X86 or
RuntimeInfoArchitecture
.X64)
2780
RuntimeInfoArchitecture
arch = _target.Contracts.RuntimeInfo.GetTargetArchitecture();
2784
if (arch ==
RuntimeInfoArchitecture
.Arm || arch ==
RuntimeInfoArchitecture
.Wasm)
6842
RuntimeInfoArchitecture
arch = _target.Contracts.RuntimeInfo.GetTargetArchitecture();
6893
RuntimeInfoArchitecture
arch = _target.Contracts.RuntimeInfo.GetTargetArchitecture();
6938
RuntimeInfoArchitecture
arch, CorDebugRegister reg, out double value)
6946
private static bool TryGetFloatRegisterIndex(
RuntimeInfoArchitecture
arch, CorDebugRegister reg, out int index)
6950
RuntimeInfoArchitecture
.X86 => (int)CorDebugRegister.REGISTER_X86_FPSTACK_0,
6951
RuntimeInfoArchitecture
.X64 => (int)CorDebugRegister.REGISTER_AMD64_XMM0,
6952
RuntimeInfoArchitecture
.Arm64 => (int)CorDebugRegister.REGISTER_ARM64_V0,
6953
RuntimeInfoArchitecture
.Arm => (int)CorDebugRegister.REGISTER_ARM_D0,
6954
RuntimeInfoArchitecture
.LoongArch64 => (int)CorDebugRegister.REGISTER_LOONGARCH64_F0,
6955
RuntimeInfoArchitecture
.RiscV64 => (int)CorDebugRegister.REGISTER_RISCV64_F0,
6975
RuntimeInfoArchitecture
arch = _target.Contracts.RuntimeInfo.GetTargetArchitecture();
7008
RuntimeInfoArchitecture
arch = _target.Contracts.RuntimeInfo.GetTargetArchitecture();
7070
RuntimeInfoArchitecture
arch = _target.Contracts.RuntimeInfo.GetTargetArchitecture();
7077
if (valueSize == sizeof(float) && arch ==
RuntimeInfoArchitecture
.X86)
7123
private static void WriteAvailableRegistersMask(
RuntimeInfoArchitecture
arch, bool fActive, bool fQuickUnwind,
7139
case
RuntimeInfoArchitecture
.X86:
7149
case
RuntimeInfoArchitecture
.X64:
7158
case
RuntimeInfoArchitecture
.Arm:
7164
case
RuntimeInfoArchitecture
.Arm64:
7173
case
RuntimeInfoArchitecture
.LoongArch64:
7180
case
RuntimeInfoArchitecture
.RiscV64:
7192
private static CorDebugRegister? MapJitRegNumToCorDebugRegister(
RuntimeInfoArchitecture
arch, uint jitRegNum)
7196
case
RuntimeInfoArchitecture
.X86:
7210
case
RuntimeInfoArchitecture
.X64:
7226
case
RuntimeInfoArchitecture
.Arm:
7236
case
RuntimeInfoArchitecture
.Arm64:
7248
case
RuntimeInfoArchitecture
.LoongArch64:
7264
case
RuntimeInfoArchitecture
.RiscV64:
7287
private static bool IsAmbientStackPointer(
RuntimeInfoArchitecture
arch, uint jitRegNum)
7291
RuntimeInfoArchitecture
.X86 => jitRegNum == 9,
7292
RuntimeInfoArchitecture
.X64 => jitRegNum == 33,
7293
RuntimeInfoArchitecture
.Arm => jitRegNum == 17,
7294
RuntimeInfoArchitecture
.Arm64 => jitRegNum == 66,
7295
RuntimeInfoArchitecture
.LoongArch64 => jitRegNum == 34,
7296
RuntimeInfoArchitecture
.RiscV64 => jitRegNum == 34,
7301
private static string? MapToCdacName(
RuntimeInfoArchitecture
arch, CorDebugRegister reg)
7306
case
RuntimeInfoArchitecture
.X86:
7315
case
RuntimeInfoArchitecture
.X64:
7325
case
RuntimeInfoArchitecture
.Arm:
7335
case
RuntimeInfoArchitecture
.Arm64:
7346
case
RuntimeInfoArchitecture
.LoongArch64:
7357
case
RuntimeInfoArchitecture
.RiscV64:
7432
Contracts.
RuntimeInfoArchitecture
.X86 => TargetArchitecture.X86,
7433
Contracts.
RuntimeInfoArchitecture
.X64 => TargetArchitecture.AMD64,
7434
Contracts.
RuntimeInfoArchitecture
.Arm => TargetArchitecture.Arm,
7435
Contracts.
RuntimeInfoArchitecture
.Arm64 => TargetArchitecture.Arm64,
7436
Contracts.
RuntimeInfoArchitecture
.LoongArch64 => TargetArchitecture.LoongArch64,
7437
Contracts.
RuntimeInfoArchitecture
.RiscV64 => TargetArchitecture.RiscV64,
7438
Contracts.
RuntimeInfoArchitecture
.Wasm => TargetArchitecture.Wasm,
SOSDacImpl.cs (7)
2307
if (_target.Contracts.RuntimeInfo.GetTargetArchitecture() !=
RuntimeInfoArchitecture
.X64)
3960
RuntimeInfoArchitecture
.X64 => s_amd64Registers,
3961
RuntimeInfoArchitecture
.Arm => s_armRegisters,
3962
RuntimeInfoArchitecture
.Arm64 => s_arm64Registers,
3963
RuntimeInfoArchitecture
.X86 => s_x86Registers,
3964
RuntimeInfoArchitecture
.LoongArch64 => s_loongArch64Registers,
3965
RuntimeInfoArchitecture
.RiscV64 => s_riscV64Registers,