69 references to WasmLowering
ILCompiler.ReadyToRun (69)
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)
116signature = WasmLowering.GetStringCtorActualSignature(signature); 121WasmLowering.LoweringFlags flags = WasmLowering.GetLoweringFlags(method) & ~WasmLowering.LoweringFlags.IsUnmanagedCallersOnly; 122return WasmLowering.GetSignature(signature, flags);
Compiler\DependencyAnalysis\ReadyToRun\WasmInterpreterToR2RThunkNode.cs (2)
38MethodSignature INodeWithTypeSignature.Signature => WasmLowering.RaiseSignature(sigForInterpToR2RThunks, _context); 156int slotSize = arg.IsMultiSlot ? WasmLowering.GetMultiSegmentSlotSize(arg.WasmType) : 0;
Compiler\DependencyAnalysis\ReadyToRun\WasmR2RToInterpreterThunkNode.cs (2)
47MethodSignature INodeWithTypeSignature.Signature => WasmLowering.RaiseSignature(_wasmSignature, _context); 191int 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); 213dependencies.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); 79MethodSignature methodSignature = WasmLowering.RaiseSignature(_wasmSignature, _context);
Compiler\DependencyAnalysis\ReadyToRunCodegenNodeFactory.cs (5)
197WasmSignature signature = WasmLowering.GetSignature(thunk.Signature, WasmLowering.LoweringFlags.None); 198WasmSignature targetSignature = WasmLowering.GetSignature(targetMethod); 1547WasmFuncType funcType = WasmLowering.GetSignature(method).FuncType; 1553return _wasmTypeNodes.GetOrAdd(WasmLowering.GetSignature(node).FuncType);
JitInterface\CorInfoImpl.ReadyToRun.cs (19)
904WasmSignature wasmSig = WasmLowering.GetSignature(MethodBeingCompiled); 2695WasmLowering.LoweringFlags loweringFlags = WasmLowering.GetLoweringFlags(&pResult->sig); 2696Debug.Assert(!loweringFlags.HasFlag(WasmLowering.LoweringFlags.IsUnmanagedCallersOnly)); 2698MethodSignature closedStaticSignature = WasmLowering.GetClosedStaticDelegateTargetSignature(targetMethod.Signature); 2699WasmSignature wasmSignature = WasmLowering.GetSignature(closedStaticSignature, loweringFlags); 3976WasmLowering.LoweringFlags flags = WasmLowering.GetLoweringFlags(callSig); 3977WasmSignature wasmSig = WasmLowering.GetSignature(sig, flags); 3981if (!flags.HasFlag(WasmLowering.LoweringFlags.IsUnmanagedCallersOnly)) 4013sig = WasmLowering.GetStringCtorActualSignature(sig); 4017WasmLowering.LoweringFlags flags = WasmLowering.GetLoweringFlags(callSig); 4018WasmSignature wasmSig = WasmLowering.GetSignature(sig, flags); 4022if (!flags.HasFlag(WasmLowering.LoweringFlags.IsUnmanagedCallersOnly)) 4050MethodSignature delegateSignature = WasmLowering.RaiseSignature(signature, _compilation.TypeSystemContext); 4051MethodSignature targetSignature = WasmLowering.GetClosedStaticDelegateTargetSignature(delegateSignature); 4052WasmSignature targetWasmSignature = WasmLowering.GetSignature(targetSignature, WasmLowering.LoweringFlags.None);
JitInterface\WasmLowering.ReadyToRun.cs (1)
32if (WasmLowering.LowerToAbiType(type) == null)
parent\parent\Common\Compiler\ObjectWriter\WasmObjectWriter.cs (2)
104int typeIndex = RegisterSignature(WasmLowering.GetSignature(function).FuncType); 228WasmFuncType signature = WasmLowering.GetSignature(node).FuncType;
parent\parent\Common\JitInterface\CorInfoImpl.cs (3)
4065if (WasmLowering.TryGetMultiSegmentLayout(type, out WasmValueType multiSlotType, out _)) 4072TypeDesc abiType = WasmLowering.LowerToAbiType(type); 4080WasmValueType 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));