10 instantiations of ContextHolder
Microsoft.Diagnostics.DataContractReader.Contracts (10)
Contracts\StackWalk\Context\ContextHolder.cs (1)
52
public IPlatformAgnosticContext Clone() => new
ContextHolder
<T>() { Context = Context };
Contracts\StackWalk\Context\IPlatformAgnosticContext.cs (7)
48
return new
ContextHolder
<X86Context>();
51
return new
ContextHolder
<AMD64Context>();
54
return new
ContextHolder
<ARMContext>();
57
return new
ContextHolder
<ARM64Context>();
60
return new
ContextHolder
<LoongArch64Context>();
63
return new
ContextHolder
<RISCV64Context>();
66
return new
ContextHolder
<WasmContext>();
Contracts\StackWalk\FrameHandling\WasmFrameHandler.cs (1)
77
ContextHolder<WasmContext> saved =
new
();
Contracts\StackWalk\FrameHandling\X86FrameHandler.cs (1)
165
ContextHolder<X86Context> evalContext = new
ContextHolder
<X86Context>();
26 references to ContextHolder
Microsoft.Diagnostics.DataContractReader.Contracts (26)
Contracts\StackWalk\Context\ContextHolder.cs (3)
9
public sealed class ContextHolder<T> : IPlatformAgnosticContext, IEquatable<
ContextHolder
<T>>
62
public bool Equals(
ContextHolder
<T>? other)
74
return Equals(obj as
ContextHolder
<T>);
Contracts\StackWalk\FrameHandling\AMD64FrameHandler.cs (2)
10
internal class AMD64FrameHandler(Target target,
ContextHolder
<AMD64Context> contextHolder) : BaseFrameHandler(target, contextHolder), IPlatformFrameHandler
12
private readonly
ContextHolder
<AMD64Context> _holder = contextHolder;
Contracts\StackWalk\FrameHandling\ARM64FrameHandler.cs (2)
12
internal class ARM64FrameHandler(Target target,
ContextHolder
<ARM64Context> contextHolder) : BaseFrameHandler(target, contextHolder), IPlatformFrameHandler
14
private readonly
ContextHolder
<ARM64Context> _holder = contextHolder;
Contracts\StackWalk\FrameHandling\ARMFrameHandler.cs (2)
12
internal class ARMFrameHandler(Target target,
ContextHolder
<ARMContext> contextHolder) : BaseFrameHandler(target, contextHolder), IPlatformFrameHandler
14
private readonly
ContextHolder
<ARMContext> _holder = contextHolder;
Contracts\StackWalk\FrameHandling\FrameHelpers.cs (7)
579
if (TargetArchitectureSupport.IsX86Supported && context is
ContextHolder
<X86Context> x86Context)
582
if (TargetArchitectureSupport.IsX64Supported && context is
ContextHolder
<AMD64Context> x64Context)
585
if (TargetArchitectureSupport.IsArmSupported && context is
ContextHolder
<ARMContext> armContext)
588
if (TargetArchitectureSupport.IsArm64Supported && context is
ContextHolder
<ARM64Context> arm64Context)
591
if (TargetArchitectureSupport.IsRiscV64Supported && context is
ContextHolder
<RISCV64Context> riscV64Context)
594
if (TargetArchitectureSupport.IsLoongArch64Supported && context is
ContextHolder
<LoongArch64Context> loongArch64Context)
597
if (TargetArchitectureSupport.IsWasmSupported && context is
ContextHolder
<WasmContext> wasmContext)
Contracts\StackWalk\FrameHandling\LoongArch64FrameHandler.cs (2)
11
internal class LoongArch64FrameHandler(Target target,
ContextHolder
<LoongArch64Context> contextHolder) : BaseFrameHandler(target, contextHolder), IPlatformFrameHandler
13
private readonly
ContextHolder
<LoongArch64Context> _holder = contextHolder;
Contracts\StackWalk\FrameHandling\RISCV64FrameHandler.cs (2)
11
internal class RISCV64FrameHandler(Target target,
ContextHolder
<RISCV64Context> contextHolder) : BaseFrameHandler(target, contextHolder), IPlatformFrameHandler
13
private readonly
ContextHolder
<RISCV64Context> _holder = contextHolder;
Contracts\StackWalk\FrameHandling\WasmFrameHandler.cs (3)
26
internal sealed class WasmFrameHandler(Target target,
ContextHolder
<WasmContext> contextHolder)
33
private readonly
ContextHolder
<WasmContext> _holder = contextHolder;
77
ContextHolder
<WasmContext> saved = new();
Contracts\StackWalk\FrameHandling\X86FrameHandler.cs (3)
10
internal class X86FrameHandler(Target target,
ContextHolder
<X86Context> contextHolder) : BaseFrameHandler(target, contextHolder), IPlatformFrameHandler
14
private readonly
ContextHolder
<X86Context> _context = contextHolder;
165
ContextHolder
<X86Context> evalContext = new ContextHolder<X86Context>();