126 references to RuntimeInfoArchitecture
Microsoft.Diagnostics.DataContractReader.Abstractions (1)
Contracts\IRuntimeInfo.cs (1)
43RuntimeInfoArchitecture GetTargetArchitecture() => throw new NotImplementedException();
Microsoft.Diagnostics.DataContractReader.Contracts (100)
Contracts\CallingConvention\CallingConvention_1.cs (11)
307uint cbStackPop = runtimeInfo.GetTargetArchitecture() == RuntimeInfoArchitecture.X86 316RuntimeInfoArchitecture arch = runtimeInfo.GetTargetArchitecture(); 321RuntimeInfoArchitecture.X86 => Internal.TypeSystem.TargetArchitecture.X86, 322RuntimeInfoArchitecture.X64 => Internal.TypeSystem.TargetArchitecture.X64, 323RuntimeInfoArchitecture.Arm => Internal.TypeSystem.TargetArchitecture.ARM, 324RuntimeInfoArchitecture.Arm64 => Internal.TypeSystem.TargetArchitecture.ARM64, 325RuntimeInfoArchitecture.LoongArch64 => Internal.TypeSystem.TargetArchitecture.LoongArch64, 326RuntimeInfoArchitecture.RiscV64 => Internal.TypeSystem.TargetArchitecture.RiscV64, 327RuntimeInfoArchitecture.Wasm => Internal.TypeSystem.TargetArchitecture.Wasm32, 367RuntimeInfoArchitecture arch = runtimeInfo.GetTargetArchitecture(); 368bool isX86 = arch is RuntimeInfoArchitecture.X86;
Contracts\CallingConvention\CdacTypeHandle.cs (2)
48public RuntimeInfoArchitecture Arch => _target.Contracts.RuntimeInfo.GetTargetArchitecture(); 192if (Arch != RuntimeInfoArchitecture.X86
Contracts\Debugger\Debugger_1.cs (9)
345RuntimeInfoArchitecture arch = target.Contracts.RuntimeInfo.GetTargetArchitecture(); 373private static CallingConvention GetCallingConvention(RuntimeInfoArchitecture arch, RuntimeInfoOperatingSystem os) 377case RuntimeInfoArchitecture.X86: 381case RuntimeInfoArchitecture.X64 when os == RuntimeInfoOperatingSystem.Windows: 386case RuntimeInfoArchitecture.X64: 390case RuntimeInfoArchitecture.Arm: 394case RuntimeInfoArchitecture.Arm64: 398case RuntimeInfoArchitecture.LoongArch64: 399case 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_1.cs (1)
145bool isX86 = _target.Contracts.RuntimeInfo.GetTargetArchitecture() == RuntimeInfoArchitecture.X86;
Contracts\Exception_1.cs (1)
93bool compensateForOldEhIp = _target.Contracts.RuntimeInfo.GetTargetArchitecture() is RuntimeInfoArchitecture.X64;
Contracts\ExecutionManager\ExecutionManagerCore.cs (2)
432if (_target.Contracts.RuntimeInfo.GetTargetArchitecture() is not RuntimeInfoArchitecture.X86) 505runtimeInfo.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; 32RuntimeInfoArchitecture IRuntimeInfo.GetTargetArchitecture() 49private RuntimeInfoArchitecture ReadArchitecture() 53if (Enum.TryParse(arch, ignoreCase: true, out RuntimeInfoArchitecture parsedArch)) 59return 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 (9)
399&& Enum.TryParse(arch, ignoreCase: true, out RuntimeInfoArchitecture runtimeArchitecture)) 401return runtimeArchitecture == RuntimeInfoArchitecture.X86; 572RuntimeInfoArchitecture.X64 => 574RuntimeInfoArchitecture.Arm64 => "x0", 575RuntimeInfoArchitecture.Arm => "r0", 576RuntimeInfoArchitecture.X86 => "ecx", 577RuntimeInfoArchitecture.LoongArch64 => "a0", 578RuntimeInfoArchitecture.RiscV64 => "a0", 579RuntimeInfoArchitecture.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)
156bool isX86 = _target.Contracts.RuntimeInfo.GetTargetArchitecture() == RuntimeInfoArchitecture.X86; 1040RuntimeInfoArchitecture.X86 => (true, -4L), 1041RuntimeInfoArchitecture.X64 => (true, 0x20L), 1042RuntimeInfoArchitecture.Arm => (false, 0L), 1043RuntimeInfoArchitecture.Arm64 => (false, 0L), 1044RuntimeInfoArchitecture.RiscV64 => (false, 0L), 1045RuntimeInfoArchitecture.LoongArch64 => (false, 0L), 1074RuntimeInfoArchitecture arch = _target.Contracts.RuntimeInfo.GetTargetArchitecture(); 1077RuntimeInfoArchitecture.X64 => handle.Context.StackPointer, 1078RuntimeInfoArchitecture.Arm64 1079or RuntimeInfoArchitecture.Arm 1080or RuntimeInfoArchitecture.RiscV64 1081or RuntimeInfoArchitecture.LoongArch64 => CallerStackPointer(handle), 1082RuntimeInfoArchitecture.X86 => ComputeX86FramePointer(handle),
CoreCLRContracts.cs (7)
61RuntimeInfoArchitecture arch = t.Contracts.RuntimeInfo.GetTargetArchitecture(); 64RuntimeInfoArchitecture.X64 => new GCInfo_1<AMD64GCInfoTraits>(t), 65RuntimeInfoArchitecture.X86 => new GCInfoX86_1(t), 66RuntimeInfoArchitecture.Arm64 => new GCInfo_1<ARM64GCInfoTraits>(t), 67RuntimeInfoArchitecture.Arm => new GCInfo_1<ARMGCInfoTraits>(t), 68RuntimeInfoArchitecture.LoongArch64 => new GCInfo_1<LoongArch64GCInfoTraits>(t), 69RuntimeInfoArchitecture.RiscV64 => new GCInfo_1<RISCV64GCInfoTraits>(t),
Microsoft.Diagnostics.DataContractReader.Legacy (25)
ClrDataFrame.cs (12)
1055RuntimeInfoArchitecture arch = target.Contracts.RuntimeInfo.GetTargetArchitecture(); 1058RuntimeInfoArchitecture.X64 => 33, 1059RuntimeInfoArchitecture.X86 => 9, 1060RuntimeInfoArchitecture.Arm64 => 66, 1061RuntimeInfoArchitecture.Arm => 17, 1062RuntimeInfoArchitecture.LoongArch64 => 34, 1063RuntimeInfoArchitecture.RiscV64 => 34, 1070RuntimeInfoArchitecture arch = target.Contracts.RuntimeInfo.GetTargetArchitecture(); 1073RuntimeInfoArchitecture.X64 => 4, // RSP 1074RuntimeInfoArchitecture.X86 => 4, // ESP 1075RuntimeInfoArchitecture.Arm64 => 31, // SP 1076RuntimeInfoArchitecture.Arm => 13, // SP
Dbi\DacDbiImpl.cs (6)
2190RuntimeInfoArchitecture arch = _target.Contracts.RuntimeInfo.GetTargetArchitecture(); 2191if (arch is RuntimeInfoArchitecture.X86 or RuntimeInfoArchitecture.X64) 2718RuntimeInfoArchitecture arch = _target.Contracts.RuntimeInfo.GetTargetArchitecture(); 2722if (arch == RuntimeInfoArchitecture.Arm || arch == RuntimeInfoArchitecture.Wasm)
SOSDacImpl.cs (7)
2286if (_target.Contracts.RuntimeInfo.GetTargetArchitecture() != RuntimeInfoArchitecture.X64) 3931RuntimeInfoArchitecture.X64 => s_amd64Registers, 3932RuntimeInfoArchitecture.Arm => s_armRegisters, 3933RuntimeInfoArchitecture.Arm64 => s_arm64Registers, 3934RuntimeInfoArchitecture.X86 => s_x86Registers, 3935RuntimeInfoArchitecture.LoongArch64 => s_loongArch64Registers, 3936RuntimeInfoArchitecture.RiscV64 => s_riscV64Registers,