108 references to RuntimeInfoArchitecture
Microsoft.Diagnostics.DataContractReader.Abstractions (1)
Contracts\IRuntimeInfo.cs (1)
43RuntimeInfoArchitecture GetTargetArchitecture() => throw new NotImplementedException();
Microsoft.Diagnostics.DataContractReader.Contracts (89)
Contracts\CallingConvention\CallingConvention_1.cs (11)
265uint cbStackPop = runtimeInfo.GetTargetArchitecture() == RuntimeInfoArchitecture.X86 383RuntimeInfoArchitecture arch = runtimeInfo.GetTargetArchitecture(); 388RuntimeInfoArchitecture.X86 => Internal.TypeSystem.TargetArchitecture.X86, 389RuntimeInfoArchitecture.X64 => Internal.TypeSystem.TargetArchitecture.X64, 390RuntimeInfoArchitecture.Arm => Internal.TypeSystem.TargetArchitecture.ARM, 391RuntimeInfoArchitecture.Arm64 => Internal.TypeSystem.TargetArchitecture.ARM64, 392RuntimeInfoArchitecture.LoongArch64 => Internal.TypeSystem.TargetArchitecture.LoongArch64, 393RuntimeInfoArchitecture.RiscV64 => Internal.TypeSystem.TargetArchitecture.RiscV64, 394RuntimeInfoArchitecture.Wasm => Internal.TypeSystem.TargetArchitecture.Wasm32, 601RuntimeInfoArchitecture arch = runtimeInfo.GetTargetArchitecture(); 602bool isX86 = arch is RuntimeInfoArchitecture.X86;
Contracts\CallingConvention\CdacTypeHandle.cs (2)
48public RuntimeInfoArchitecture Arch => _target.Contracts.RuntimeInfo.GetTargetArchitecture(); 139if (Arch != RuntimeInfoArchitecture.X86 || _typeHandle.IsNull || !Rts.IsValueType(_typeHandle))
Contracts\Debugger\Debugger_1.cs (9)
290RuntimeInfoArchitecture arch = target.Contracts.RuntimeInfo.GetTargetArchitecture(); 318private static CallingConvention GetCallingConvention(RuntimeInfoArchitecture arch, RuntimeInfoOperatingSystem os) 322case RuntimeInfoArchitecture.X86: 326case RuntimeInfoArchitecture.X64 when os == RuntimeInfoOperatingSystem.Windows: 331case RuntimeInfoArchitecture.X64: 335case RuntimeInfoArchitecture.Arm: 339case RuntimeInfoArchitecture.Arm64: 343case RuntimeInfoArchitecture.LoongArch64: 344case RuntimeInfoArchitecture.RiscV64:
Contracts\Debugger\StackPusher.cs (7)
48RuntimeInfoArchitecture arch = target.Contracts.RuntimeInfo.GetTargetArchitecture(); 55RuntimeInfoArchitecture.X86 => os == RuntimeInfoOperatingSystem.Windows ? 4u : 16u, 56RuntimeInfoArchitecture.X64 => 16, 57RuntimeInfoArchitecture.Arm => 8, // AAPCS32: 8-byte aligned at public interfaces 58RuntimeInfoArchitecture.Arm64 => 16, 59RuntimeInfoArchitecture.LoongArch64 => 16, 60RuntimeInfoArchitecture.RiscV64 => 16,
Contracts\DebugInfo\DebugInfo_2.cs (1)
145bool isX86 = _target.Contracts.RuntimeInfo.GetTargetArchitecture() == RuntimeInfoArchitecture.X86;
Contracts\ExecutionManager\ExecutionManagerCore.cs (1)
412if (_target.Contracts.RuntimeInfo.GetTargetArchitecture() is not RuntimeInfoArchitecture.X86)
Contracts\ExecutionManager\Helpers\UnwindDataSize.cs (8)
12public static uint GetUnwindDataSize(Target target, TargetPointer unwindInfo, RuntimeInfoArchitecture arch) 16case RuntimeInfoArchitecture.X86: 18case RuntimeInfoArchitecture.X64: 30case RuntimeInfoArchitecture.Arm: 31case RuntimeInfoArchitecture.Arm64: 38if (arch == RuntimeInfoArchitecture.Arm) 66case RuntimeInfoArchitecture.LoongArch64: 67case RuntimeInfoArchitecture.RiscV64:
Contracts\GCInfo\GCInfoDecoder.cs (2)
104private readonly RuntimeInfoArchitecture _arch; 464if (_arch == RuntimeInfoArchitecture.Arm64)
Contracts\RuntimeInfo_1.cs (5)
12private RuntimeInfoArchitecture? _architecture; 30RuntimeInfoArchitecture IRuntimeInfo.GetTargetArchitecture() 44private RuntimeInfoArchitecture ReadArchitecture() 48if (Enum.TryParse(arch, ignoreCase: true, out RuntimeInfoArchitecture parsedArch)) 54return RuntimeInfoArchitecture.Unknown;
Contracts\RuntimeTypeSystem_1.cs (5)
618private bool IsFeatureHfaTarget(out RuntimeInfoArchitecture arch) 621return arch is RuntimeInfoArchitecture.Arm or RuntimeInfoArchitecture.Arm64; 628if (!IsFeatureHfaTarget(out RuntimeInfoArchitecture arch)) 637if (arch == RuntimeInfoArchitecture.Arm)
Contracts\Signature\Signature_1.cs (1)
63if (_target.Contracts.RuntimeInfo.GetTargetArchitecture() == RuntimeInfoArchitecture.X86)
Contracts\StackWalk\Context\IPlatformAgnosticContext.cs (7)
47RuntimeInfoArchitecture.X86 => new ContextHolder<X86Context>(), 48RuntimeInfoArchitecture.X64 => new ContextHolder<AMD64Context>(), 49RuntimeInfoArchitecture.Arm => new ContextHolder<ARMContext>(), 50RuntimeInfoArchitecture.Arm64 => new ContextHolder<ARM64Context>(), 51RuntimeInfoArchitecture.LoongArch64 => new ContextHolder<LoongArch64Context>(), 52RuntimeInfoArchitecture.RiscV64 => new ContextHolder<RISCV64Context>(), 53RuntimeInfoArchitecture.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 (6)
556RuntimeInfoArchitecture.X64 => 558RuntimeInfoArchitecture.Arm64 => "x0", 559RuntimeInfoArchitecture.Arm => "r0", 560RuntimeInfoArchitecture.X86 => "ecx", 561RuntimeInfoArchitecture.LoongArch64 => "a0", 562RuntimeInfoArchitecture.RiscV64 => "a0",
Contracts\StackWalk\GC\GcScanner.cs (9)
203if (_target.Contracts.RuntimeInfo.GetTargetArchitecture() is RuntimeInfoArchitecture.X86) 341RuntimeInfoArchitecture arch = runtimeInfo.GetTargetArchitecture(); 351&& arch is RuntimeInfoArchitecture.X86 or RuntimeInfoArchitecture.X64 or RuntimeInfoArchitecture.Arm64) 353&& arch is RuntimeInfoArchitecture.Arm or RuntimeInfoArchitecture.Arm64); 382if (_target.Contracts.RuntimeInfo.GetTargetArchitecture() is RuntimeInfoArchitecture.X86) 389if (_target.Contracts.RuntimeInfo.GetTargetArchitecture() is RuntimeInfoArchitecture.X86)
Contracts\StackWalk\StackWalk_1.cs (8)
150bool isX86 = _target.Contracts.RuntimeInfo.GetTargetArchitecture() == RuntimeInfoArchitecture.X86; 1006&& _target.Contracts.RuntimeInfo.GetTargetArchitecture() == RuntimeInfoArchitecture.X86 1039RuntimeInfoArchitecture.X86 => (true, -4L), 1040RuntimeInfoArchitecture.X64 => (true, 0x20L), 1041RuntimeInfoArchitecture.Arm => (false, 0L), 1042RuntimeInfoArchitecture.Arm64 => (false, 0L), 1043RuntimeInfoArchitecture.RiscV64 => (false, 0L), 1044RuntimeInfoArchitecture.LoongArch64 => (false, 0L),
CoreCLRContracts.cs (7)
62RuntimeInfoArchitecture arch = t.Contracts.RuntimeInfo.GetTargetArchitecture(); 65RuntimeInfoArchitecture.X64 => new GCInfo_1<AMD64GCInfoTraits>(t), 66RuntimeInfoArchitecture.X86 => new GCInfoX86_1(t), 67RuntimeInfoArchitecture.Arm64 => new GCInfo_1<ARM64GCInfoTraits>(t), 68RuntimeInfoArchitecture.Arm => new GCInfo_1<ARMGCInfoTraits>(t), 69RuntimeInfoArchitecture.LoongArch64 => new GCInfo_1<LoongArch64GCInfoTraits>(t), 70RuntimeInfoArchitecture.RiscV64 => new GCInfo_1<RISCV64GCInfoTraits>(t),
Microsoft.Diagnostics.DataContractReader.Legacy (18)
ClrDataFrame.cs (5)
964RuntimeInfoArchitecture arch = target.Contracts.RuntimeInfo.GetTargetArchitecture(); 967RuntimeInfoArchitecture.X64 => 4, // RSP 968RuntimeInfoArchitecture.X86 => 4, // ESP 969RuntimeInfoArchitecture.Arm64 => 31, // SP 970RuntimeInfoArchitecture.Arm => 13, // SP
Dbi\DacDbiImpl.cs (6)
1504RuntimeInfoArchitecture arch = _target.Contracts.RuntimeInfo.GetTargetArchitecture(); 1505if (arch is RuntimeInfoArchitecture.X86 or RuntimeInfoArchitecture.X64) 2056RuntimeInfoArchitecture arch = _target.Contracts.RuntimeInfo.GetTargetArchitecture(); 2060if (arch == RuntimeInfoArchitecture.Arm || arch == RuntimeInfoArchitecture.Wasm)
SOSDacImpl.cs (7)
2208if (_target.Contracts.RuntimeInfo.GetTargetArchitecture() != RuntimeInfoArchitecture.X64) 3827RuntimeInfoArchitecture.X64 => s_amd64Registers, 3828RuntimeInfoArchitecture.Arm => s_armRegisters, 3829RuntimeInfoArchitecture.Arm64 => s_arm64Registers, 3830RuntimeInfoArchitecture.X86 => s_x86Registers, 3831RuntimeInfoArchitecture.LoongArch64 => s_loongArch64Registers, 3832RuntimeInfoArchitecture.RiscV64 => s_riscV64Registers,