72 references to WasmLowering
ILCompiler.ReadyToRun (72)
Compiler\DependencyAnalysis\ReadyToRun\WasmClosedStaticRetBufThunkNode.cs (1)
33MethodSignature INodeWithTypeSignature.Signature => WasmLowering.RaiseSignature(_signature, _context);
Compiler\DependencyAnalysis\ReadyToRun\WasmImportThunk.cs (3)
80MethodSignature INodeWithTypeSignature.Signature => WasmLowering.RaiseSignature(_wasmSignature, _context); 167int slotSize = arg.IsMultiSlot ? WasmLowering.GetMultiSegmentSlotSize(arg.WasmType) : 0; 216int slotSize = arg.IsMultiSlot ? WasmLowering.GetMultiSegmentSlotSize(arg.WasmType) : 0;
Compiler\DependencyAnalysis\ReadyToRun\WasmImportThunkPortableEntrypoint.cs (5)
114signature = WasmLowering.GetStringCtorActualSignature(signature); 119WasmLowering.LoweringFlags flags = WasmLowering.GetLoweringFlags(method) & ~WasmLowering.LoweringFlags.IsUnmanagedCallersOnly; 120return WasmLowering.GetSignature(signature, flags);
Compiler\DependencyAnalysis\ReadyToRun\WasmInterpreterToR2RThunkNode.cs (2)
38MethodSignature INodeWithTypeSignature.Signature => WasmLowering.RaiseSignature(sigForInterpToR2RThunks, _context); 155int slotSize = arg.IsMultiSlot ? WasmLowering.GetMultiSegmentSlotSize(arg.WasmType) : 0;
Compiler\DependencyAnalysis\ReadyToRun\WasmR2RToInterpreterThunkNode.cs (2)
47MethodSignature INodeWithTypeSignature.Signature => WasmLowering.RaiseSignature(_wasmSignature, _context); 190int slotSize = arg.IsMultiSlot ? WasmLowering.GetMultiSegmentSlotSize(arg.WasmType) : 0;
Compiler\DependencyAnalysis\ReadyToRun\WasmThunkArgLayout.cs (7)
93WasmLowering.ParseStructSize(sig, ref pos); 130bool isIndirectStruct = WasmLowering.CurrentArgLowersValueTypeToPassAsByref(argit); 137Debug.Assert(WasmLowering.IsEmptyStruct(type)); 143indirectStructSize = WasmLowering.ParseStructSize(sig, ref pos); 149Debug.Assert(WasmLowering.TryGetMultiSegmentLayout(type, out WasmValueType slotType, out int slotCount) && 177MethodSignature signature = WasmLowering.RaiseSignature(wasmSignature, context); 179bool hasGenericContext = WasmLowering.HasGenericContextBeforeAsync(wasmSignature, context);
Compiler\DependencyAnalysis\ReadyToRun\WasmUnboxingStubNode.cs (2)
49MethodSignature INodeWithTypeSignature.Signature => WasmLowering.RaiseSignature(_signature, _context); 211sink.Add(context.WasmR2RToInterpreterThunk(WasmLowering.GetSignature(_targetMethod)), "Interpreter fallback for Wasm unboxing target");
Compiler\DependencyAnalysis\ReadyToRun\WasmVirtualDispatchThunkNode.cs (2)
40MethodSignature INodeWithTypeSignature.Signature => WasmLowering.RaiseSignature(_wasmSignature, _context); 78MethodSignature methodSignature = WasmLowering.RaiseSignature(_wasmSignature, _context);
Compiler\DependencyAnalysis\ReadyToRunCodegenNodeFactory.cs (5)
198WasmSignature signature = WasmLowering.GetSignature(thunk.Signature, WasmLowering.LoweringFlags.None); 199WasmSignature targetSignature = WasmLowering.GetSignature(targetMethod); 1551WasmFuncType funcType = WasmLowering.GetSignature(method).FuncType; 1557return _wasmTypeNodes.GetOrAdd(WasmLowering.GetSignature(node).FuncType);
JitInterface\CorInfoImpl.ReadyToRun.cs (19)
903WasmSignature wasmSig = WasmLowering.GetSignature(MethodBeingCompiled); 2692WasmLowering.LoweringFlags loweringFlags = WasmLowering.GetLoweringFlags(&pResult->sig); 2693Debug.Assert(!loweringFlags.HasFlag(WasmLowering.LoweringFlags.IsUnmanagedCallersOnly)); 2695MethodSignature closedStaticSignature = WasmLowering.GetClosedStaticDelegateTargetSignature(targetMethod.Signature); 2696WasmSignature wasmSignature = WasmLowering.GetSignature(closedStaticSignature, loweringFlags); 4022WasmLowering.LoweringFlags flags = WasmLowering.GetLoweringFlags(callSig); 4023WasmSignature wasmSig = WasmLowering.GetSignature(sig, flags); 4027if (!flags.HasFlag(WasmLowering.LoweringFlags.IsUnmanagedCallersOnly)) 4059sig = WasmLowering.GetStringCtorActualSignature(sig); 4063WasmLowering.LoweringFlags flags = WasmLowering.GetLoweringFlags(callSig); 4064WasmSignature wasmSig = WasmLowering.GetSignature(sig, flags); 4068if (!flags.HasFlag(WasmLowering.LoweringFlags.IsUnmanagedCallersOnly)) 4096MethodSignature delegateSignature = WasmLowering.RaiseSignature(signature, _compilation.TypeSystemContext); 4097MethodSignature targetSignature = WasmLowering.GetClosedStaticDelegateTargetSignature(delegateSignature); 4098WasmSignature targetWasmSignature = WasmLowering.GetSignature(targetSignature, WasmLowering.LoweringFlags.None);
JitInterface\WasmLowering.ReadyToRun.cs (1)
32if (WasmLowering.LowerToAbiType(type) == null)
parent\parent\Common\Compiler\ObjectWriter\WasmFunctionBodyDeduplicator.cs (3)
164if (!WasmLowering.GetSignature(signatureNode).FuncType.Equals( 165WasmLowering.GetSignature(candidateSignatureNode).FuncType)) 216hash.Add(WasmLowering.GetSignature(node).FuncType);
parent\parent\Common\Compiler\ObjectWriter\WasmObjectWriter.cs (2)
161int typeIndex = RegisterSignature(WasmLowering.GetSignature(function).FuncType); 376WasmFuncType signature = WasmLowering.GetSignature(node).FuncType;
parent\parent\Common\JitInterface\CorInfoImpl.cs (3)
4110if (WasmLowering.TryGetMultiSegmentLayout(type, out WasmValueType multiSlotType, out _)) 4117TypeDesc abiType = WasmLowering.LowerToAbiType(type); 4125WasmValueType wasmAbiType = WasmLowering.LowerType(abiType);
PortableCallHelpers\InteropSignature.cs (8)
45public static string GetMethodSignature(MethodDesc method, WasmLowering.LoweringFlags flags = WasmLowering.LoweringFlags.None) 46=> WasmLowering.GetSignature(method.Signature, flags).SignatureString; 58TypeDesc loweredType = WasmLowering.LowerToAbiType(type); 66if (WasmLowering.TryGetMultiSegmentLayout(type, out WasmValueType slotType, out int slotCount)) 67return string.Create(CultureInfo.InvariantCulture, $"{WasmLowering.WasmValueTypeToSigChar(slotType)}{slotCount}"); 77return WasmLowering.WasmValueTypeToSigChar(WasmLowering.LowerType(loweredType)).ToString();
PortableCallHelpers\InterpToNativeGenerator.cs (1)
109$"Cannot generate an interop thunk for '{cookies[signature]}': its signature '{signature}' contains {WasmLowering.DescribeSigChar(e.Char)}, " +
PortableCallHelpers\PInvokeCollector.cs (5)
163AddSignature(signatures, invokeMethod, WasmLowering.LoweringFlags.IsUnmanagedCallersOnly, "pinvoke"); 179AddSignature(signatures, method, WasmLowering.LoweringFlags.IsUnmanagedCallersOnly, "pinvoke"); 226signature = WasmLowering.GetSignature(calliSignature, WasmLowering.LoweringFlags.None).SignatureString; 257private void AddSignature(Dictionary<string, MethodDesc> signatures, MethodDesc method, WasmLowering.LoweringFlags flags, string kind)
PortableCallHelpers\PInvokeTableGenerator.cs (1)
414InteropSignature.GetMethodSignature(cb.Method, WasmLowering.LoweringFlags.IsUnmanagedCallersOnly));