| File: Compiler\DependencyAnalysis\Target_Wasm\WasmTentativeMethodNode.cs | Web Access |
| Project: 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.Wasm; using ILCompiler.ObjectWriter.WasmInstructions; using Internal.JitInterface; namespace ILCompiler.DependencyAnalysis { public partial class TentativeMethodNode { protected override void EmitCode(NodeFactory factory, ref WasmEmitter encoder, bool relocsOnly) { WasmFuncType signature = WasmLowering.GetSignature(Method).FuncType; ISymbolNode target = GetTarget(factory); encoder.FunctionBody = new WasmFunctionBody( signature, [ Local.Get(0), ControlFlow.Call(target), ControlFlow.Unreachable, ]); } } }