130 references to RuntimeInfoArchitecture
Microsoft.Diagnostics.DataContractReader.Abstractions (1)
Contracts\IRuntimeInfo.cs (1)
43
RuntimeInfoArchitecture
GetTargetArchitecture() => throw new NotImplementedException();
Microsoft.Diagnostics.DataContractReader.Contracts (104)
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)
145
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)
272
if (target.Contracts.RuntimeInfo.GetTargetArchitecture() !=
RuntimeInfoArchitecture
.Wasm)
518
if (_target.Contracts.RuntimeInfo.GetTargetArchitecture() ==
RuntimeInfoArchitecture
.Wasm)
611
if (_target.Contracts.RuntimeInfo.GetTargetArchitecture() is not
RuntimeInfoArchitecture
.X86)
715
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)
104
private readonly
RuntimeInfoArchitecture
_arch;
468
if (_arch ==
RuntimeInfoArchitecture
.Arm64)
533
bool wantsReportOnlyLeaf = _arch ==
RuntimeInfoArchitecture
.X64 && _gcVersion < 4 ? flag80Set : true;
534
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)
649
private bool IsFeatureHfaTarget(out
RuntimeInfoArchitecture
arch)
652
return arch is
RuntimeInfoArchitecture
.Arm or
RuntimeInfoArchitecture
.Arm64;
659
if (!IsFeatureHfaTarget(out
RuntimeInfoArchitecture
arch))
668
if (arch ==
RuntimeInfoArchitecture
.Arm)
Contracts\Signature\Signature_1.cs (1)
63
if (_target.Contracts.RuntimeInfo.GetTargetArchitecture() ==
RuntimeInfoArchitecture
.X86)
Contracts\StackWalk\Context\IPlatformAgnosticContext.cs (8)
47
RuntimeInfoArchitecture
.X86 => new ContextHolder<X86Context>(),
48
RuntimeInfoArchitecture
.X64 => new ContextHolder<AMD64Context>(),
49
RuntimeInfoArchitecture
.Arm => new ContextHolder<ARMContext>(),
50
RuntimeInfoArchitecture
.Arm64 => new ContextHolder<ARM64Context>(),
51
RuntimeInfoArchitecture
.LoongArch64 => new ContextHolder<LoongArch64Context>(),
52
RuntimeInfoArchitecture
.RiscV64 => new ContextHolder<RISCV64Context>(),
53
RuntimeInfoArchitecture
.Wasm => new ContextHolder<WasmContext>(),
54
RuntimeInfoArchitecture
.Unknown => throw new InvalidOperationException($"Processor architecture is required for creating a platform specific context and is not provided by the target"),
Contracts\StackWalk\FrameHandling\FrameHelpers.cs (9)
399
&& Enum.TryParse(arch, ignoreCase: true, out
RuntimeInfoArchitecture
runtimeArchitecture))
401
return runtimeArchitecture ==
RuntimeInfoArchitecture
.X86;
572
RuntimeInfoArchitecture
.X64 =>
574
RuntimeInfoArchitecture
.Arm64 => "x0",
575
RuntimeInfoArchitecture
.Arm => "r0",
576
RuntimeInfoArchitecture
.X86 => "ecx",
577
RuntimeInfoArchitecture
.LoongArch64 => "a0",
578
RuntimeInfoArchitecture
.RiscV64 => "a0",
579
RuntimeInfoArchitecture
.Wasm => WasmContext.InterpreterWalkFramePointerRegister,
Contracts\StackWalk\GC\GcScanner.cs (3)
204
if (_target.Contracts.RuntimeInfo.GetTargetArchitecture() is
RuntimeInfoArchitecture
.X86)
362
if (_target.Contracts.RuntimeInfo.GetTargetArchitecture() is
RuntimeInfoArchitecture
.X86)
369
if (_target.Contracts.RuntimeInfo.GetTargetArchitecture() is
RuntimeInfoArchitecture
.X86)
Contracts\StackWalk\StackWalk_1.cs (14)
156
bool isX86 = _target.Contracts.RuntimeInfo.GetTargetArchitecture() ==
RuntimeInfoArchitecture
.X86;
1040
RuntimeInfoArchitecture
.X86 => (true, -4L),
1041
RuntimeInfoArchitecture
.X64 => (true, 0x20L),
1042
RuntimeInfoArchitecture
.Arm => (false, 0L),
1043
RuntimeInfoArchitecture
.Arm64 => (false, 0L),
1044
RuntimeInfoArchitecture
.RiscV64 => (false, 0L),
1045
RuntimeInfoArchitecture
.LoongArch64 => (false, 0L),
1074
RuntimeInfoArchitecture
arch = _target.Contracts.RuntimeInfo.GetTargetArchitecture();
1077
RuntimeInfoArchitecture
.X64 => handle.Context.StackPointer,
1078
RuntimeInfoArchitecture
.Arm64
1079
or
RuntimeInfoArchitecture
.Arm
1080
or
RuntimeInfoArchitecture
.RiscV64
1081
or
RuntimeInfoArchitecture
.LoongArch64 => CallerStackPointer(handle),
1082
RuntimeInfoArchitecture
.X86 => ComputeX86FramePointer(handle),
CoreCLRContracts.cs (7)
62
RuntimeInfoArchitecture
arch = t.Contracts.RuntimeInfo.GetTargetArchitecture();
65
RuntimeInfoArchitecture
.X64 => new GCInfo_1<AMD64GCInfoTraits>(t),
66
RuntimeInfoArchitecture
.X86 => new GCInfoX86_1(t),
67
RuntimeInfoArchitecture
.Arm64 => new GCInfo_1<ARM64GCInfoTraits>(t),
68
RuntimeInfoArchitecture
.Arm => new GCInfo_1<ARMGCInfoTraits>(t),
69
RuntimeInfoArchitecture
.LoongArch64 => new GCInfo_1<LoongArch64GCInfoTraits>(t),
70
RuntimeInfoArchitecture
.RiscV64 => new GCInfo_1<RISCV64GCInfoTraits>(t),
Microsoft.Diagnostics.DataContractReader.Legacy (25)
ClrDataFrame.cs (12)
1055
RuntimeInfoArchitecture
arch = target.Contracts.RuntimeInfo.GetTargetArchitecture();
1058
RuntimeInfoArchitecture
.X64 => 33,
1059
RuntimeInfoArchitecture
.X86 => 9,
1060
RuntimeInfoArchitecture
.Arm64 => 66,
1061
RuntimeInfoArchitecture
.Arm => 17,
1062
RuntimeInfoArchitecture
.LoongArch64 => 34,
1063
RuntimeInfoArchitecture
.RiscV64 => 34,
1070
RuntimeInfoArchitecture
arch = target.Contracts.RuntimeInfo.GetTargetArchitecture();
1073
RuntimeInfoArchitecture
.X64 => 4, // RSP
1074
RuntimeInfoArchitecture
.X86 => 4, // ESP
1075
RuntimeInfoArchitecture
.Arm64 => 31, // SP
1076
RuntimeInfoArchitecture
.Arm => 13, // SP
Dbi\DacDbiImpl.cs (6)
2209
RuntimeInfoArchitecture
arch = _target.Contracts.RuntimeInfo.GetTargetArchitecture();
2210
if (arch is
RuntimeInfoArchitecture
.X86 or
RuntimeInfoArchitecture
.X64)
2737
RuntimeInfoArchitecture
arch = _target.Contracts.RuntimeInfo.GetTargetArchitecture();
2741
if (arch ==
RuntimeInfoArchitecture
.Arm || arch ==
RuntimeInfoArchitecture
.Wasm)
SOSDacImpl.cs (7)
2305
if (_target.Contracts.RuntimeInfo.GetTargetArchitecture() !=
RuntimeInfoArchitecture
.X64)
3956
RuntimeInfoArchitecture
.X64 => s_amd64Registers,
3957
RuntimeInfoArchitecture
.Arm => s_armRegisters,
3958
RuntimeInfoArchitecture
.Arm64 => s_arm64Registers,
3959
RuntimeInfoArchitecture
.X86 => s_x86Registers,
3960
RuntimeInfoArchitecture
.LoongArch64 => s_loongArch64Registers,
3961
RuntimeInfoArchitecture
.RiscV64 => s_riscV64Registers,