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