23 references to MarshalHelpers
ILCompiler.Compiler (22)
Compiler\DependencyAnalysis\PInvokeMethodFixupNode.cs (1)
87uint? objcFunction = MarshalHelpers.GetObjectiveCMessageSendFunction(factory.Target, _pInvokeMethodData.ModuleData.ModuleName, _pInvokeMethodData.EntryPointName);
Compiler\DependencyAnalysis\StructMarshallingDataNode.cs (1)
35if (MarshalHelpers.IsStructMarshallingRequired(_type))
Compiler\DependencyAnalysis\StructMarshallingStubMapNode.cs (1)
76if (MarshalHelpers.IsStructMarshallingRequired(structType))
parent\parent\Common\TypeSystem\IL\Stubs\DelegateMarshallingMethodThunk.cs (2)
112nativeType = MarshalHelpers.GetNativeMethodParameterType(managedType, marshalAs, interopStateManager, isReturn, isAnsi); 147if (!MarshalHelpers.IsRuntimeMarshallingEnabled(_delegateType.Module))
parent\parent\Common\TypeSystem\IL\Stubs\PInvokeILEmitter.cs (6)
59runtimeMarshallingEnabled = MarshalHelpers.IsRuntimeMarshallingEnabled(delegateMethod.DelegateType.Module); 67runtimeMarshallingEnabled = MarshalHelpers.IsRuntimeMarshallingEnabled(((MetadataType)targetMethod.OwningType).Module); 272bool runtimeMarshallingEnabled = MarshalHelpers.IsRuntimeMarshallingEnabled(((MetadataType)_targetMethod.OwningType).Module); 349if (MarshalHelpers.ShouldCheckForPendingException(context.Target, _pInvokeMetadata)) 449return MarshalHelpers.EmitExceptionBody(message, method); 454return MarshalHelpers.EmitExceptionBody(ex.Message, method);
parent\parent\Common\TypeSystem\IL\Stubs\StructMarshallingThunk.cs (2)
316return MarshalHelpers.EmitExceptionBody(message, this); 321return MarshalHelpers.EmitExceptionBody(ex.Message, this);
parent\parent\Common\TypeSystem\Interop\IL\Marshaller.cs (6)
52_nativeType = MarshalHelpers.GetNativeTypeFromMarshallerKind( 251MarshallerKind marshallerKind = MarshalHelpers.GetMarshallerKind(parameterType, 346MarshallerKind marshallerKind = MarshalHelpers.GetDisabledMarshallerKind(parameterType, marshallerType is MarshallerType.Field); 453MarshalHelpers.IsRuntimeMarshallingEnabled(((MetadataType)targetMethod.OwningType).Module)); 462MarshalHelpers.IsRuntimeMarshallingEnabled(moduleContext)); 481if (MarshalHelpers.ShouldCheckForPendingException(targetMethod.Context.Target, metadata))
parent\parent\Common\TypeSystem\Interop\IL\MarshalUtils.cs (1)
49MarshallerKind marshallerKind = MarshalHelpers.GetMarshallerKind(
parent\parent\Common\TypeSystem\Interop\IL\NativeStructType.cs (1)
236nativeType = MarshalHelpers.GetNativeStructFieldType(managedType, field.GetMarshalAsDescriptor(), _interopStateManager, isAnsi);
parent\parent\Common\TypeSystem\Interop\InteropStateManager.cs (1)
194return _pInvokeCalliHashtable.GetOrCreateValue(new CalliMarshallingMethodThunkKey(normalizedSignatureBuilder.ToSignature(), MarshalHelpers.IsRuntimeMarshallingEnabled(moduleContext)));
ILCompiler.RyuJit (1)
parent\parent\Common\JitInterface\CorInfoImpl.cs (1)
4895if (!isFallbackBodyCompilation && MarshalHelpers.IsMarshallingRequired(this.MethodBeingCompiled.Signature, ((MetadataType)this.MethodBeingCompiled.OwningType).Module)) // Only blittable arguments