| File: Compiler\DependencyAnalysis\Target_X64\X64UnboxingStubNode.cs | Web Access |
| Project: src\runtime\src\coreclr\tools\aot\ILCompiler.Compiler\ILCompiler.Compiler.csproj (ILCompiler.Compiler) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using ILCompiler.DependencyAnalysis.X64; namespace ILCompiler.DependencyAnalysis { public partial class UnboxingStubNode { protected override void EmitCode(NodeFactory factory, ref X64Emitter encoder, bool relocsOnly) { AddrMode thisPtr = new AddrMode( Register.RegDirect | encoder.TargetRegister.Arg0, null, 0, 0, AddrModeSize.Int64); encoder.EmitADD(ref thisPtr, (sbyte)factory.Target.PointerSize); encoder.EmitJMP(GetUnderlyingMethodEntrypoint(factory)); } } }