123 references to RuntimeInfoArchitecture
Microsoft.Diagnostics.DataContractReader.Abstractions (1)
Contracts\IRuntimeInfo.cs (1)
43RuntimeInfoArchitecture GetTargetArchitecture() => throw new NotImplementedException();
Microsoft.Diagnostics.DataContractReader.Contracts (97)
Contracts\CallingConvention\CallingConvention_1.cs (11)
284uint cbStackPop = runtimeInfo.GetTargetArchitecture() == RuntimeInfoArchitecture.X86 380RuntimeInfoArchitecture arch = runtimeInfo.GetTargetArchitecture(); 385RuntimeInfoArchitecture.X86 => Internal.TypeSystem.TargetArchitecture.X86, 386RuntimeInfoArchitecture.X64 => Internal.TypeSystem.TargetArchitecture.X64, 387RuntimeInfoArchitecture.Arm => Internal.TypeSystem.TargetArchitecture.ARM, 388RuntimeInfoArchitecture.Arm64 => Internal.TypeSystem.TargetArchitecture.ARM64, 389RuntimeInfoArchitecture.LoongArch64 => Internal.TypeSystem.TargetArchitecture.LoongArch64, 390RuntimeInfoArchitecture.RiscV64 => Internal.TypeSystem.TargetArchitecture.RiscV64, 391RuntimeInfoArchitecture.Wasm => Internal.TypeSystem.TargetArchitecture.Wasm32, 598RuntimeInfoArchitecture arch = runtimeInfo.GetTargetArchitecture(); 599bool isX86 = arch is RuntimeInfoArchitecture.X86;
Contracts\CallingConvention\CdacTypeHandle.cs (2)
49public RuntimeInfoArchitecture Arch => _target.Contracts.RuntimeInfo.GetTargetArchitecture(); 178if (Arch != RuntimeInfoArchitecture.X86 || _typeHandle is null || !Rts.IsValueType(_typeHandle))
Contracts\Debugger\Debugger_1.cs (9)
289RuntimeInfoArchitecture arch = target.Contracts.RuntimeInfo.GetTargetArchitecture(); 317private static CallingConvention GetCallingConvention(RuntimeInfoArchitecture arch, RuntimeInfoOperatingSystem os) 321case RuntimeInfoArchitecture.X86: 325case RuntimeInfoArchitecture.X64 when os == RuntimeInfoOperatingSystem.Windows: 330case RuntimeInfoArchitecture.X64: 334case RuntimeInfoArchitecture.Arm: 338case RuntimeInfoArchitecture.Arm64: 342case RuntimeInfoArchitecture.LoongArch64: 343case 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 (2)
430if (_target.Contracts.RuntimeInfo.GetTargetArchitecture() is not RuntimeInfoArchitecture.X86) 503runtimeInfo.GetTargetArchitecture() == 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 (7)
104private readonly RuntimeInfoArchitecture _arch; 468if (_arch == RuntimeInfoArchitecture.Arm64) 531bool wantsReportOnlyLeaf = _arch == RuntimeInfoArchitecture.X64 && _gcVersion < 4 ? flag80Set : true; 532bool hasTailCalls = _arch is RuntimeInfoArchitecture.Arm or RuntimeInfoArchitecture.Arm64 or RuntimeInfoArchitecture.LoongArch64 or RuntimeInfoArchitecture.RiscV64
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)
669private bool IsFeatureHfaTarget(out RuntimeInfoArchitecture arch) 672return arch is RuntimeInfoArchitecture.Arm or RuntimeInfoArchitecture.Arm64; 679if (!IsFeatureHfaTarget(out RuntimeInfoArchitecture arch)) 688if (arch == RuntimeInfoArchitecture.Arm)
Contracts\Signature\Signature_1.cs (1)
63if (_target.Contracts.RuntimeInfo.GetTargetArchitecture() == RuntimeInfoArchitecture.X86)
Contracts\StackWalk\Context\IPlatformAgnosticContext.cs (8)
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.Wasm => new ContextHolder<WasmContext>(), 54RuntimeInfoArchitecture.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 (7)
557RuntimeInfoArchitecture.X64 => 559RuntimeInfoArchitecture.Arm64 => "x0", 560RuntimeInfoArchitecture.Arm => "r0", 561RuntimeInfoArchitecture.X86 => "ecx", 562RuntimeInfoArchitecture.LoongArch64 => "a0", 563RuntimeInfoArchitecture.RiscV64 => "a0", 564RuntimeInfoArchitecture.Wasm => WasmContext.InterpreterWalkFramePointerRegister,
Contracts\StackWalk\GC\GcScanner.cs (3)
204if (_target.Contracts.RuntimeInfo.GetTargetArchitecture() is RuntimeInfoArchitecture.X86) 362if (_target.Contracts.RuntimeInfo.GetTargetArchitecture() is RuntimeInfoArchitecture.X86) 369if (_target.Contracts.RuntimeInfo.GetTargetArchitecture() is RuntimeInfoArchitecture.X86)
Contracts\StackWalk\StackWalk_1.cs (14)
152bool isX86 = _target.Contracts.RuntimeInfo.GetTargetArchitecture() == RuntimeInfoArchitecture.X86; 1036RuntimeInfoArchitecture.X86 => (true, -4L), 1037RuntimeInfoArchitecture.X64 => (true, 0x20L), 1038RuntimeInfoArchitecture.Arm => (false, 0L), 1039RuntimeInfoArchitecture.Arm64 => (false, 0L), 1040RuntimeInfoArchitecture.RiscV64 => (false, 0L), 1041RuntimeInfoArchitecture.LoongArch64 => (false, 0L), 1070RuntimeInfoArchitecture arch = _target.Contracts.RuntimeInfo.GetTargetArchitecture(); 1073RuntimeInfoArchitecture.X64 => handle.Context.StackPointer, 1074RuntimeInfoArchitecture.Arm64 1075or RuntimeInfoArchitecture.Arm 1076or RuntimeInfoArchitecture.RiscV64 1077or RuntimeInfoArchitecture.LoongArch64 => CallerStackPointer(handle), 1078RuntimeInfoArchitecture.X86 => ComputeX86FramePointer(handle),
CoreCLRContracts.cs (7)
63RuntimeInfoArchitecture arch = t.Contracts.RuntimeInfo.GetTargetArchitecture(); 66RuntimeInfoArchitecture.X64 => new GCInfo_1<AMD64GCInfoTraits>(t), 67RuntimeInfoArchitecture.X86 => new GCInfoX86_1(t), 68RuntimeInfoArchitecture.Arm64 => new GCInfo_1<ARM64GCInfoTraits>(t), 69RuntimeInfoArchitecture.Arm => new GCInfo_1<ARMGCInfoTraits>(t), 70RuntimeInfoArchitecture.LoongArch64 => new GCInfo_1<LoongArch64GCInfoTraits>(t), 71RuntimeInfoArchitecture.RiscV64 => new GCInfo_1<RISCV64GCInfoTraits>(t),
Microsoft.Diagnostics.DataContractReader.Legacy (25)
ClrDataFrame.cs (12)
971RuntimeInfoArchitecture arch = target.Contracts.RuntimeInfo.GetTargetArchitecture(); 974RuntimeInfoArchitecture.X64 => 33, 975RuntimeInfoArchitecture.X86 => 9, 976RuntimeInfoArchitecture.Arm64 => 66, 977RuntimeInfoArchitecture.Arm => 17, 978RuntimeInfoArchitecture.LoongArch64 => 34, 979RuntimeInfoArchitecture.RiscV64 => 34, 986RuntimeInfoArchitecture arch = target.Contracts.RuntimeInfo.GetTargetArchitecture(); 989RuntimeInfoArchitecture.X64 => 4, // RSP 990RuntimeInfoArchitecture.X86 => 4, // ESP 991RuntimeInfoArchitecture.Arm64 => 31, // SP 992RuntimeInfoArchitecture.Arm => 13, // SP
Dbi\DacDbiImpl.cs (6)
2106RuntimeInfoArchitecture arch = _target.Contracts.RuntimeInfo.GetTargetArchitecture(); 2107if (arch is RuntimeInfoArchitecture.X86 or RuntimeInfoArchitecture.X64) 2626RuntimeInfoArchitecture arch = _target.Contracts.RuntimeInfo.GetTargetArchitecture(); 2630if (arch == RuntimeInfoArchitecture.Arm || arch == RuntimeInfoArchitecture.Wasm)
SOSDacImpl.cs (7)
2207if (_target.Contracts.RuntimeInfo.GetTargetArchitecture() != RuntimeInfoArchitecture.X64) 3833RuntimeInfoArchitecture.X64 => s_amd64Registers, 3834RuntimeInfoArchitecture.Arm => s_armRegisters, 3835RuntimeInfoArchitecture.Arm64 => s_arm64Registers, 3836RuntimeInfoArchitecture.X86 => s_x86Registers, 3837RuntimeInfoArchitecture.LoongArch64 => s_loongArch64Registers, 3838RuntimeInfoArchitecture.RiscV64 => s_riscV64Registers,