355 references to Emit
ilc (1)
parent\parent\Common\TypeSystem\IL\HelperExtensions.cs (1)
66codeStream.Emit(ILOpcode.call, emitter.NewToken(method));
ILCompiler.Compiler (265)
Compiler\CompilerTypeSystemContext.InterfaceThunks.cs (6)
238codeStream.Emit(ILOpcode.call, emit.NewToken(getCurrentContext)); 243codeStream.Emit(ILOpcode.ldfld, emit.NewToken(eeTypeField)); 249codeStream.Emit(ILOpcode.call, emit.NewToken(getOrdinalInterfaceMethod)); 252codeStream.Emit(ILOpcode.call, emit.NewToken(Context.GetCoreLibEntryPoint("System.Runtime.CompilerServices"u8, "RuntimeHelpers"u8, "SetNextCallGenericContext"u8, null))); 262codeStream.Emit(ILOpcode.call, emit.NewToken(Context.GetCoreLibEntryPoint("System.Runtime.CompilerServices"u8, "AsyncHelpers"u8, "TailAwait"u8, null))); 265codeStream.Emit(ILOpcode.call, emit.NewToken(_targetMethod));
Compiler\HardwareIntrinsicHelpers.Aot.cs (2)
59codeStream.Emit(ILOpcode.ldsfld, emit.NewToken(isSupportedField)); 69codeStream.Emit(ILOpcode.ldsfld, emit.NewToken(isSupportedField));
Compiler\ReachabilityInstrumentationProvider.cs (3)
252codeStream.Emit(ILOpcode.ldsflda, dataFieldToken); 253codeStream.Emit(ILOpcode.ldsflda, dataFieldToken); 257codeStream.Emit(ILOpcode.call, emitter.NewToken(registerMethod));
IL\Stubs\StartupCode\NativeLibraryStartupMethod.cs (2)
70codeStream.Emit(ILOpcode.call, emitter.NewToken(method)); 80codeStream.Emit(ILOpcode.call, emitter.NewToken(runModuleInitializers));
IL\Stubs\StartupCode\StartupCodeMainMethod.cs (12)
78codeStream.Emit(ILOpcode.call, emitter.NewToken(method)); 93codeStream.Emit(ILOpcode.call, emitter.NewToken(initArgs)); 101codeStream.Emit(ILOpcode.ldtoken, emitter.NewToken(entrypointModule.GetGlobalModuleType())); 102codeStream.Emit(ILOpcode.call, emitter.NewToken(initEntryAssembly)); 112codeStream.Emit(ILOpcode.call, emitter.NewToken(initApartmentState)); 118codeStream.Emit(ILOpcode.call, emitter.NewToken(initApartmentState)); 126codeStream.Emit(ILOpcode.call, emitter.NewToken(runModuleInitializers)); 136codeStream.Emit(ILOpcode.call, emitter.NewToken(startup.GetKnownMethod("GetMainMethodArguments"u8, null))); 141codeStream.Emit(ILOpcode.call, emitter.NewToken(_mainMethod)); 154codeStream.Emit(ILOpcode.call, emitter.NewToken(setLatchedExitCode)); 158codeStream.Emit(ILOpcode.call, emitter.NewToken(shutdown)); 294codeStream.Emit(ILOpcode.call, emit.NewToken(WrappedMethod));
parent\parent\Common\Compiler\CompilerTypeSystemContext.BoxedTypes.cs (7)
440codeStream.Emit(ILOpcode.ldflda, emit.NewToken(rawDataField)); 452codeStream.Emit(ILOpcode.ldfld, emit.NewToken(eeTypeField)); 455codeStream.Emit(ILOpcode.call, emit.NewToken(Context.GetCoreLibEntryPoint("System.Runtime.CompilerServices"u8, "RuntimeHelpers"u8, "SetNextCallGenericContext"u8, null))); 465codeStream.Emit(ILOpcode.call, emit.NewToken(Context.GetCoreLibEntryPoint("System.Runtime.CompilerServices"u8, "AsyncHelpers"u8, "TailAwait"u8, null))); 468codeStream.Emit(ILOpcode.call, emit.NewToken(_targetMethod.InstantiateAsOpen())); 562codeStream.Emit(ILOpcode.ldflda, emit.NewToken(Context.SystemModule.GetKnownType("System.Runtime.CompilerServices"u8, "RawData"u8).GetField("Data"u8))); 590codeStream.Emit(ILOpcode.call, emit.NewToken(methodToInstantiate));
parent\parent\Common\TypeSystem\IL\HelperExtensions.cs (1)
66codeStream.Emit(ILOpcode.call, emitter.NewToken(method));
parent\parent\Common\TypeSystem\IL\NativeAotILProvider.cs (2)
119codeStream.Emit(ILOpcode.initobj, emit.NewToken(context.GetSignatureVariable(0, method: true))); 168codeStream.Emit(ILOpcode.call, emitter.NewToken(underlyingCompareToMethod));
parent\parent\Common\TypeSystem\IL\Stubs\ArrayMethodILEmitter.cs (9)
40codeStream.Emit(ILOpcode.ldflda, _helperFieldToken); 102codeStream.Emit(ILOpcode.call, _emitter.NewToken(checkArrayStore)); 122codeStream.Emit(ILOpcode.ldfld, _emitter.NewToken(objectType.GetKnownField("m_pEEType"u8))); 123codeStream.Emit(ILOpcode.call, 128codeStream.Emit(ILOpcode.call, 149codeStream.Emit(ILOpcode.ldfld, _emitter.NewToken(objectType.GetKnownField("m_pEEType"u8))); 150codeStream.Emit(ILOpcode.call, 223codeStream.Emit(ILOpcode.ldobj, _emitter.NewToken(_elementType)); 228codeStream.Emit(ILOpcode.stobj, _emitter.NewToken(_elementType));
parent\parent\Common\TypeSystem\IL\Stubs\AssemblyGetExecutingAssemblyMethodThunk.cs (2)
79codeStream.Emit(ILOpcode.ldtoken, emit.NewToken(moduleType)); 80codeStream.Emit(ILOpcode.call, emit.NewToken(classlibHelper));
parent\parent\Common\TypeSystem\IL\Stubs\AsyncResumptionStub.cs (6)
76ilStream.Emit(ILOpcode.call, ilEmitter.NewToken(Context.GetCoreLibEntryPoint("System.Runtime.CompilerServices"u8, "RuntimeHelpers"u8, "SetNextCallGenericContext"u8, null))); 80ilStream.Emit(ILOpcode.call, ilEmitter.NewToken(Context.GetCoreLibEntryPoint("System.Runtime.CompilerServices"u8, "RuntimeHelpers"u8, "SetNextCallAsyncContinuation"u8, null))); 93ilStream.Emit(ILOpcode.initobj, ilEmitter.NewToken(param)); 98ilStream.Emit(ILOpcode.call, ilEmitter.NewToken(_targetMethod)); 112ilStream.Emit(ILOpcode.call, ilEmitter.NewToken(asyncCallContinuation)); 122ilStream.Emit(ILOpcode.stobj, ilEmitter.NewToken(_targetMethod.Signature.ReturnType));
parent\parent\Common\TypeSystem\IL\Stubs\AsyncThunks.cs (10)
51codestream.Emit(ILOpcode.ldsflda, emitter.NewToken(asyncHelpersType.GetKnownField("t_runtimeAsyncAwaitState"u8))); 56codestream.Emit(ILOpcode.call, emitter.NewToken(awaitStateType.GetKnownMethod("Push"u8, null))); 93codestream.Emit(ILOpcode.call, emitter.NewToken(asyncMethod)); 102codestream.Emit(ILOpcode.call, emitter.NewToken(asyncCallContinuationMd)); 128codestream.Emit(ILOpcode.call, emitter.NewToken(fromResultMethod)); 145codestream.Emit(ILOpcode.call, emitter.NewToken(getCompletedTaskMethod)); 186codestream.Emit(ILOpcode.call, emitter.NewToken(fromExceptionMd)); 222codestream.Emit(ILOpcode.call, emitter.NewToken(createRuntimeAsyncTaskMd)); 233codestream.Emit(ILOpcode.call, emitter.NewToken(awaitStateType.GetKnownMethod("Pop"u8, null))); 292codestream.Emit(ILOpcode.call, emitter.NewToken(asyncVariantTarget));
parent\parent\Common\TypeSystem\IL\Stubs\ComparerIntrinsics.cs (1)
70codeStream.Emit(ILOpcode.newobj, emitter.NewToken(comparerType.GetParameterlessConstructor()));
parent\parent\Common\TypeSystem\IL\Stubs\DelegateMethodILEmitter.cs (3)
61codeStream.Emit(ILOpcode.ldfld, emit.NewToken(methodPtrField.InstantiateAsOpen())); 65codeStream.Emit(ILOpcode.ldfld, emit.NewToken(targetField.InstantiateAsOpen())); 92codeStream.Emit(ILOpcode.calli, emit.NewToken(signature));
parent\parent\Common\TypeSystem\IL\Stubs\DelegateThunks.cs (28)
124codeStream.Emit(ILOpcode.ldfld, emitter.NewToken(ExtraFunctionPointerOrDataField)); 126codeStream.Emit(ILOpcode.calli, emitter.NewToken(builder.ToSignature())); 192codeStream.Emit(ILOpcode.box, emitter.NewToken(boxThisType)); 213codeStream.Emit(ILOpcode.box, emitter.NewToken(boxThisType)); 217codeStream.Emit(ILOpcode.call, emitter.NewToken(SystemDelegateType.GetKnownMethod("GetActualTargetFunctionPointer"u8, null))); 220codeStream.Emit(ILOpcode.calli, emitter.NewToken(targetSignature)); 267codeStream.Emit(ILOpcode.ldfld, emitter.NewToken(HelperObjectField)); 277codeStream.Emit(ILOpcode.ldfld, emitter.NewToken(ExtraFunctionPointerOrDataField)); 279codeStream.Emit(ILOpcode.calli, emitter.NewToken(targetMethodSignature)); 334codeStream.Emit(ILOpcode.ldfld, emitter.NewToken(HelperObjectField)); 345codeStream.Emit(ILOpcode.ldfld, emitter.NewToken(ExtraFunctionPointerOrDataField)); 370codeStream.Emit(ILOpcode.ldelema, emitter.NewToken(delegateWrapperType)); 371codeStream.Emit(ILOpcode.ldfld, emitter.NewToken(delegateWrapperType.GetKnownField("Value"u8))); 386codeStream.Emit(ILOpcode.callvirt, emitter.NewToken(_delegateInfo.InvokeMethod.InstantiateAsOpen())); 450codeStream.Emit(ILOpcode.ldfld, emitter.NewToken(HelperObjectField)); 460codeStream.Emit(ILOpcode.ldfld, emitter.NewToken(ExtraFunctionPointerOrDataField)); 462codeStream.Emit(ILOpcode.calli, emitter.NewToken(Signature)); 535codeStream.Emit(ILOpcode.newarr, emitter.NewToken(objectType)); 560codeStream.Emit(ILOpcode.ldobj, paramToken); 562codeStream.Emit(ILOpcode.box, paramToken); 569codeStream.Emit(ILOpcode.call, emitter.NewToken(emptyObjectArrayMethod)); 582codeStream.Emit(ILOpcode.ldfld, emitter.NewToken(HelperObjectField)); 587codeStream.Emit(ILOpcode.castclass, emitter.NewToken(instantiatedFunc)); 592codeStream.Emit(ILOpcode.callvirt, emitter.NewToken(invokeMethod)); 626codeStream.Emit(ILOpcode.unbox_any, paramToken); 627codeStream.Emit(ILOpcode.stobj, paramToken); 638codeStream.Emit(ILOpcode.unbox_any, emitter.NewToken(Signature.ReturnType)); 735codeStream.Emit(ILOpcode.ldftn, emitter.NewToken(targetMethod));
parent\parent\Common\TypeSystem\IL\Stubs\DynamicInvokeMethodThunk.cs (2)
158codeStream.Emit(ILOpcode.ldfld, fieldByReferenceValueToken); 169codeStream.Emit(ILOpcode.calli, emitter.NewToken(_targetSignature));
parent\parent\Common\TypeSystem\IL\Stubs\ForwardDelegateCreationThunk.cs (3)
105codeStream.Emit(ILOpcode.newobj, emitter.NewToken( 111codeStream.Emit(ILOpcode.ldvirtftn, emitter.NewToken( 115codeStream.Emit(ILOpcode.newobj, emitter.NewToken(
parent\parent\Common\TypeSystem\IL\Stubs\GetCanonTypeIntrinsic.cs (1)
27codeStream.Emit(ILOpcode.ldtoken, emitter.NewToken(context.CanonType));
parent\parent\Common\TypeSystem\IL\Stubs\GetFieldHelperMethodOverride.cs (4)
143getFieldStream.Emit(ILOpcode.call, emitter.NewToken(mtOfFieldMethod)); 148getFieldStream.Emit(ILOpcode.ldflda, emitter.NewToken(field)); 154getFieldStream.Emit(ILOpcode.ldflda, rawDataToken); 180switchStream.Emit(ILOpcode.call, emitter.NewToken(baseMethod));
parent\parent\Common\TypeSystem\IL\Stubs\InterlockedIntrinsics.cs (1)
71codeStream.Emit(ILOpcode.call, emit.NewToken(compareExchangeNonGeneric));
parent\parent\Common\TypeSystem\IL\Stubs\MethodBaseGetCurrentMethodThunk.cs (3)
76codeStream.Emit(ILOpcode.ldtoken, emit.NewToken(Method)); 81codeStream.Emit(ILOpcode.ldtoken, emit.NewToken(Method.OwningType)); 89codeStream.Emit(ILOpcode.call, emit.NewToken(classlibHelper));
parent\parent\Common\TypeSystem\IL\Stubs\PInvokeILEmitter.cs (17)
175fnptrLoadStream.Emit(ILOpcode.call, emitter.NewToken( 184callsiteSetupCodeStream.Emit(ILOpcode.calli, emitter.NewToken(managedSignature)); 198fnptrLoadStream.Emit(ILOpcode.call, emitter.NewToken(instantiatedHelper)); 204callsiteSetupCodeStream.Emit(ILOpcode.callvirt, emitter.NewToken(invokeMethod)); 211callsiteSetupCodeStream.Emit(ILOpcode.call, emitter.NewToken( 219fnptrLoadStream.Emit(ILOpcode.call, emitter.NewToken(InteropTypes 244callsiteSetupCodeStream.Emit(ILOpcode.calli, emitter.NewToken(nativeSig)); 250callsiteSetupCodeStream.Emit(ILOpcode.call, emitter.NewToken( 282callsiteSetupCodeStream.Emit(ILOpcode.call, emitter.NewToken( 310fnptrLoadStream.Emit(ILOpcode.ldsflda, emitter.NewToken(lazyDispatchCell)); 311fnptrLoadStream.Emit(ILOpcode.call, emitter.NewToken(lazyHelperType 319callsiteSetupCodeStream.Emit(ILOpcode.calli, emitter.NewToken(nativeSig)); 330callsiteSetupCodeStream.Emit(ILOpcode.call, emitter.NewToken(nativeMethod)); 335callsiteSetupCodeStream.Emit(ILOpcode.call, emitter.NewToken( 344callsiteSetupCodeStream.Emit(ILOpcode.call, emitter.NewToken( 352callsiteSetupCodeStream.Emit(ILOpcode.call, emitter.NewToken(lazyHelperType 375callsiteSetupCodeStream.Emit(ILOpcode.calli, emitter.NewToken(nativeSig));
parent\parent\Common\TypeSystem\IL\Stubs\StreamIntrinsics.cs (4)
36codestream.Emit(ILOpcode.ldvirtftn, beginMethodToken); 37codestream.Emit(ILOpcode.ldftn, beginMethodToken); 42codestream.Emit(ILOpcode.ldvirtftn, endMethodToken); 43codestream.Emit(ILOpcode.ldftn, endMethodToken);
parent\parent\Common\TypeSystem\IL\Stubs\StructMarshallingThunk.cs (2)
333stream.Emit(ILOpcode.ldfld, emitter.NewToken(field)); 346stream.Emit(ILOpcode.stfld, emitter.NewToken(field));
parent\parent\Common\TypeSystem\IL\Stubs\TypeGetTypeMethodThunk.cs (2)
79codeStream.Emit(ILOpcode.ldstr, emit.NewToken(DefaultAssemblyName)); 103codeStream.Emit(ILOpcode.call, emit.NewToken(_helperMethod));
parent\parent\Common\TypeSystem\IL\Stubs\TypeSystemThrowingILEmitter.cs (2)
90codeStream.Emit(ILOpcode.ldstr, emitter.NewToken(arg)); 93codeStream.Emit(ILOpcode.call, emitter.NewToken(helper));
parent\parent\Common\TypeSystem\IL\Stubs\UnsafeIntrinsics.cs (6)
108codeStream.Emit(ILOpcode.sizeof_, emit.NewToken(context.GetSignatureVariable(0, method: true))); 128codeStream.Emit(ILOpcode.sizeof_, emit.NewToken(context.GetSignatureVariable(0, method: true))); 149codeStream.Emit(write ? ILOpcode.stobj : ILOpcode.ldobj, 167codeStream.Emit(ILOpcode.ldobj, token); 168codeStream.Emit(ILOpcode.stobj, token); 220codeStream.Emit(ILOpcode.unbox, emit.NewToken(context.GetSignatureVariable(0, method: true)));
parent\parent\Common\TypeSystem\Interop\IL\InlineArrayType.cs (1)
397codeStream.Emit(ILOpcode.sizeof_, emitter.NewToken(elementType));
parent\parent\Common\TypeSystem\Interop\IL\MarshalHelpers.Aot.cs (2)
129codeStream.Emit(ILOpcode.ldstr, emitter.NewToken(message)); 130codeStream.Emit(ILOpcode.newobj, emitter.NewToken(exceptionCtor));
parent\parent\Common\TypeSystem\Interop\IL\Marshaller.Aot.cs (82)
114codeStream.Emit(ILOpcode.call, emitter.NewToken(helper)); 129codeStream.Emit(ILOpcode.call, emitter.NewToken(helper)); 139codeStream.Emit(ILOpcode.call, emitter.NewToken(helper)); 153codeStream.Emit(ILOpcode.call, emitter.NewToken(helper)); 163codeStream.Emit(ILOpcode.call, emitter.NewToken(helper)); 186codeStream.Emit(ILOpcode.call, emitter.NewToken( 199codeStream.Emit(ILOpcode.newobj, emitter.NewToken( 212codeStream.Emit(ILOpcode.call, emitter.NewToken(helper)); 230codeStream.Emit(ILOpcode.call, emitter.NewToken(helper)); 239codeStream.Emit(ILOpcode.call, _ilCodeStreams.Emitter.NewToken(helper)); 247codeStream.Emit(ILOpcode.call, emitter.NewToken( 257codeStream.Emit(ILOpcode.ldfld, _ilCodeStreams.Emitter.NewToken(InteropTypes.GetHandleRef(Context).GetKnownField("_handle"u8))); 274codeStream.Emit(ILOpcode.ldfld, _ilCodeStreams.Emitter.NewToken(InteropTypes.GetHandleRef(Context).GetKnownField("_wrapper"u8))); 275codeStream.Emit(ILOpcode.call, _ilCodeStreams.Emitter.NewToken(InteropTypes.GetGC(Context).GetKnownMethod("KeepAlive"u8, null))); 284codeStream.Emit(ILOpcode.initobj, _ilCodeStreams.Emitter.NewToken(NativeType)); 291codeStream.Emit(ILOpcode.call, _ilCodeStreams.Emitter.NewToken( 299codeStream.Emit(ILOpcode.call, _ilCodeStreams.Emitter.NewToken( 312codeStream.Emit(ILOpcode.call, _ilCodeStreams.Emitter.NewToken( 346codeStream.Emit(ILOpcode.ldfld, emitter.NewToken(_managedField)); 352codeStream.Emit(ILOpcode.ldfld, emitter.NewToken(_managedField)); 421codeStream.Emit(ILOpcode.ldfld, emitter.NewToken(_managedField)); 425codeStream.Emit(ILOpcode.ldflda, emitter.NewToken(_nativeField)); 437codeStream.Emit(ILOpcode.ldflda, emitter.NewToken(_nativeField)); 441codeStream.Emit(ILOpcode.ldfld, emitter.NewToken(_managedField)); 450codeStream.Emit(ILOpcode.call, emitter.NewToken( 498codeStream.Emit(ILOpcode.newarr, emitter.NewToken(managedElementType)); 499codeStream.Emit(ILOpcode.stfld, emitter.NewToken(_managedField)); 513codeStream.Emit(ILOpcode.ldfld, emitter.NewToken(_managedField)); 519codeStream.Emit(ILOpcode.ldflda, emitter.NewToken(_nativeField)); 522codeStream.Emit(ILOpcode.call, emitter.NewToken( 573codeStream.Emit(ILOpcode.ldfld, emitter.NewToken(_managedField)); 576codeStream.Emit(ILOpcode.ldflda, emitter.NewToken(_nativeField)); 587codeStream.Emit(ILOpcode.call, emitter.NewToken(GetManagedToNativeHelper())); 598codeStream.Emit(ILOpcode.ldflda, emitter.NewToken(_nativeField)); 603codeStream.Emit(ILOpcode.call, emitter.NewToken(GetNativeToManagedHelper())); 605codeStream.Emit(ILOpcode.stfld, emitter.NewToken(_managedField)); 656codeStream.Emit(ILOpcode.initobj, _ilCodeStreams.Emitter.NewToken(NativeType)); 669codeStream.Emit(ILOpcode.call, _ilCodeStreams.Emitter.NewToken( 683codeStream.Emit(ILOpcode.ldtoken, emitter.NewToken(ManagedType)); 684codeStream.Emit(ILOpcode.call, emitter.NewToken(InteropTypes.GetType(Context).GetMethod("GetTypeFromHandle"u8, null))); 685codeStream.Emit(ILOpcode.call, emitter.NewToken(InteropTypes.GetRuntimeHelpers(Context).GetKnownMethod("GetUninitializedObject"u8, null))); 691codeStream.Emit(ILOpcode.call, _ilCodeStreams.Emitter.NewToken( 704codeStream.Emit(ILOpcode.call, _ilCodeStreams.Emitter.NewToken( 752codeStream.Emit(ILOpcode.ldflda, emitter.NewToken(rawDataField)); 775codeStream.Emit(ILOpcode.initobj, emitter.NewToken(nativeStructType)); 785codeStream.Emit(ILOpcode.ldtoken, emitter.NewToken(ManagedType)); 786codeStream.Emit(ILOpcode.call, emitter.NewToken(InteropTypes.GetType(Context).GetMethod("GetTypeFromHandle"u8, null))); 787codeStream.Emit(ILOpcode.call, emitter.NewToken(InteropTypes.GetRuntimeHelpers(Context).GetKnownMethod("GetUninitializedObject"u8, null))); 801codeStream.Emit(ILOpcode.call, _ilCodeStreams.Emitter.NewToken( 824codeStream.Emit(ILOpcode.call, _ilCodeStreams.Emitter.NewToken( 851codeStream.Emit(ILOpcode.call, emitter.NewToken( 882codeStream.Emit(ILOpcode.call, emitter.NewToken(getNativeSizeHelper)); 905codeStream.Emit(ILOpcode.call, _ilCodeStreams.Emitter.NewToken( 921codeStream.Emit(ILOpcode.call, _ilCodeStreams.Emitter.NewToken( 943codeStream.Emit(ILOpcode.call, emitter.NewToken( 986codeStream.Emit(ILOpcode.newobj, emitter.NewToken(guidCtorHandleMethod)); 989codeStream.Emit(ILOpcode.call, emitter.NewToken(helper)); 999codeStream.Emit(ILOpcode.call, emitter.NewToken(helper)); 1011codeStream.Emit(ILOpcode.call, emitter.NewToken(helper)); 1030codeStream.Emit(ILOpcode.call, emitter.NewToken(helper)); 1038codeStream.Emit(ILOpcode.call, emitter.NewToken(helper)); 1049codeStream.Emit(ILOpcode.call, emitter.NewToken(helper)); 1063codeStream.Emit(ILOpcode.call, emitter.NewToken(helper)); 1071codeStream.Emit(ILOpcode.call, emitter.NewToken(helper)); 1082codeStream.Emit(ILOpcode.call, emitter.NewToken(helper)); 1096codeStream.Emit(ILOpcode.call, emitter.NewToken(helper)); 1107codeStream.Emit(ILOpcode.call, emitter.NewToken(helper)); 1121codeStream.Emit(ILOpcode.call, emitter.NewToken(helper)); 1132codeStream.Emit(ILOpcode.call, emitter.NewToken(helper)); 1156codeStream.Emit(ILOpcode.initobj, _ilCodeStreams.Emitter.NewToken(NativeType)); 1172codeStream.Emit(ILOpcode.call, emitter.NewToken(helper)); 1187codeStream.Emit(ILOpcode.call, emitter.NewToken(helper)); 1204codeStream.Emit(ILOpcode.call, emitter.NewToken(helper)); 1243fnptrLoadStream.Emit(ILOpcode.ldtoken, emitter.NewToken(ManagedType)); 1244fnptrLoadStream.Emit(ILOpcode.ldtoken, emitter.NewToken(marshallerType)); 1245fnptrLoadStream.Emit(ILOpcode.ldstr, emitter.NewToken(cookie)); 1248fnptrLoadStream.Emit(ILOpcode.ldftn, emitter.NewToken(getInstanceMethod)); 1256fnptrLoadStream.Emit(ILOpcode.call, emitter.NewToken(initializeCustomMarshallerMethod)); 1273codeStream.Emit(ILOpcode.callvirt, emitter.NewToken(manageToNativeMethod)); 1302codeStream.Emit(ILOpcode.callvirt, emitter.NewToken(marshalNativeToManagedMethod)); 1320codeStream.Emit(ILOpcode.callvirt, emitter.NewToken(cleanupManagedDataMethod)); 1337codeStream.Emit(ILOpcode.callvirt, emitter.NewToken(cleanupNativeDataMethod));
parent\parent\Common\TypeSystem\Interop\IL\Marshaller.cs (38)
1244codeStream.Emit(ILOpcode.sizeof_, emitter.NewToken(nativeElementType)); 1257codeStream.Emit(ILOpcode.call, emitter.NewToken( 1268codeStream.Emit(ILOpcode.call, emitter.NewToken( 1299codeStream.Emit(ILOpcode.sizeof_, emitter.NewToken(nativeElementType)); 1366codeStream.Emit(ILOpcode.newarr, emitter.NewToken(ManagedElementType)); 1370codeStream.Emit(ILOpcode.sizeof_, emitter.NewToken(nativeElementType)); 1422codeStream.Emit(ILOpcode.newarr, emitter.NewToken(elementType)); 1453codeStream.Emit(ILOpcode.sizeof_, emitter.NewToken(nativeElementType)); 1495codeStream.Emit(ILOpcode.call, emitter.NewToken(InteropTypes.GetMarshal(Context).GetKnownMethod("FreeCoTaskMem"u8, null))); 1520codeStream.Emit(ILOpcode.call, emitter.NewToken(getArrayDataReferenceMethod)); 1522codeStream.Emit(ILOpcode.sizeof_, emitter.NewToken(ManagedElementType)); 1533codeStream.Emit(ILOpcode.call, emitter.NewToken(getArrayDataReferenceMethod)); 1636codeStream.Emit(ILOpcode.call, emitter.NewToken( 1673codeStream.Emit(ILOpcode.call, emitter.NewToken( 1692codeStream.Emit(ILOpcode.call, emitter.NewToken(helper)); 1708codeStream.Emit(ILOpcode.newobj, emitter.NewToken(charPtrConstructor)); 1724codeStream.Emit(ILOpcode.call, emitter.NewToken( 1745codeStream.Emit(ILOpcode.call, emitter.NewToken( 1762codeStream.Emit(ILOpcode.call, emitter.NewToken(stringToAnsi)); 1772codeStream.Emit(ILOpcode.call, emitter.NewToken(ansiToString)); 1786codeStream.Emit(ILOpcode.call, emitter.NewToken( 1809codeStream.Emit(ILOpcode.call, emitter.NewToken( 1843codeStream.Emit(ILOpcode.newobj, emitter.NewToken(spanOfByte.GetKnownMethod(".ctor"u8, 1846codeStream.Emit(ILOpcode.call, emitter.NewToken(marshallerIn.GetKnownMethod("FromManaged"u8, null))); 1849codeStream.Emit(ILOpcode.call, emitter.NewToken(marshallerIn.GetKnownMethod("ToUnmanaged"u8, null))); 1854codeStream.Emit(ILOpcode.call, emitter.NewToken(Marshaller.GetKnownMethod("ConvertToUnmanaged"u8, null))); 1865codeStream.Emit(ILOpcode.call, emitter.NewToken(Marshaller.GetKnownMethod("ConvertToManaged"u8, null))); 1876codeStream.Emit(ILOpcode.call, emitter.NewToken( 1882codeStream.Emit(ILOpcode.call, emitter.NewToken( 1904codeStream.Emit(ILOpcode.newobj, _ilCodeStreams.Emitter.NewToken(ctor)); 1922returnValueMarshallingCodeStream.Emit(ILOpcode.call, emitter.NewToken( 1950marshallingCodeStream.Emit(ILOpcode.call, emitter.NewToken( 1956marshallingCodeStream.Emit(ILOpcode.call, emitter.NewToken( 1965cleanupCodeStream.Emit(ILOpcode.call, emitter.NewToken( 1999cleanupCodeStream.Emit(ILOpcode.call, emitter.NewToken( 2059codeStream.Emit(ILOpcode.call, _ilCodeStreams.Emitter.NewToken( 2085codeStream.Emit(ILOpcode.call, _ilCodeStreams.Emitter.NewToken( 2108codeStream.Emit(ILOpcode.call, _ilCodeStreams.Emitter.NewToken(InteropTypes.GetGC(Context).GetKnownMethod("KeepAlive"u8, null)));
parent\parent\Common\TypeSystem\Interop\IL\PInvokeDelegateWrapperConstructor.cs (1)
72codeStream.Emit(ILOpcode.call, emitter.NewToken(
ILCompiler.ReadyToRun (71)
IL\Stubs\PInvokeILEmitter.cs (1)
57callsiteSetupCodeStream.Emit(ILOpcode.call, emitter.NewToken(rawTargetMethod));
parent\parent\Common\Compiler\CompilerTypeSystemContext.BoxedTypes.cs (7)
440codeStream.Emit(ILOpcode.ldflda, emit.NewToken(rawDataField)); 446codeStream.Emit(ILOpcode.ldflda, emit.NewToken(rawDataField)); 455codeStream.Emit(ILOpcode.call, emit.NewToken(Context.GetCoreLibEntryPoint("System.Runtime.CompilerServices"u8, "RuntimeHelpers"u8, "SetNextCallGenericContext"u8, null))); 465codeStream.Emit(ILOpcode.call, emit.NewToken(Context.GetCoreLibEntryPoint("System.Runtime.CompilerServices"u8, "AsyncHelpers"u8, "TailAwait"u8, null))); 468codeStream.Emit(ILOpcode.call, emit.NewToken(_targetMethod.InstantiateAsOpen())); 562codeStream.Emit(ILOpcode.ldflda, emit.NewToken(Context.SystemModule.GetKnownType("System.Runtime.CompilerServices"u8, "RawData"u8).GetField("Data"u8))); 590codeStream.Emit(ILOpcode.call, emit.NewToken(methodToInstantiate));
parent\parent\Common\TypeSystem\IL\HelperExtensions.cs (1)
66codeStream.Emit(ILOpcode.call, emitter.NewToken(method));
parent\parent\Common\TypeSystem\IL\Stubs\AsyncResumptionStub.cs (6)
76ilStream.Emit(ILOpcode.call, ilEmitter.NewToken(Context.GetCoreLibEntryPoint("System.Runtime.CompilerServices"u8, "RuntimeHelpers"u8, "SetNextCallGenericContext"u8, null))); 80ilStream.Emit(ILOpcode.call, ilEmitter.NewToken(Context.GetCoreLibEntryPoint("System.Runtime.CompilerServices"u8, "RuntimeHelpers"u8, "SetNextCallAsyncContinuation"u8, null))); 93ilStream.Emit(ILOpcode.initobj, ilEmitter.NewToken(param)); 98ilStream.Emit(ILOpcode.call, ilEmitter.NewToken(_targetMethod)); 112ilStream.Emit(ILOpcode.call, ilEmitter.NewToken(asyncCallContinuation)); 122ilStream.Emit(ILOpcode.stobj, ilEmitter.NewToken(_targetMethod.Signature.ReturnType));
parent\parent\Common\TypeSystem\IL\Stubs\AsyncThunks.cs (10)
51codestream.Emit(ILOpcode.ldsflda, emitter.NewToken(asyncHelpersType.GetKnownField("t_runtimeAsyncAwaitState"u8))); 56codestream.Emit(ILOpcode.call, emitter.NewToken(awaitStateType.GetKnownMethod("Push"u8, null))); 93codestream.Emit(ILOpcode.call, emitter.NewToken(asyncMethod)); 102codestream.Emit(ILOpcode.call, emitter.NewToken(asyncCallContinuationMd)); 128codestream.Emit(ILOpcode.call, emitter.NewToken(fromResultMethod)); 145codestream.Emit(ILOpcode.call, emitter.NewToken(getCompletedTaskMethod)); 186codestream.Emit(ILOpcode.call, emitter.NewToken(fromExceptionMd)); 222codestream.Emit(ILOpcode.call, emitter.NewToken(createRuntimeAsyncTaskMd)); 233codestream.Emit(ILOpcode.call, emitter.NewToken(awaitStateType.GetKnownMethod("Pop"u8, null))); 292codestream.Emit(ILOpcode.call, emitter.NewToken(asyncVariantTarget));
parent\parent\Common\TypeSystem\IL\Stubs\ComparerIntrinsics.cs (1)
70codeStream.Emit(ILOpcode.newobj, emitter.NewToken(comparerType.GetParameterlessConstructor()));
parent\parent\Common\TypeSystem\IL\Stubs\InterlockedIntrinsics.cs (1)
71codeStream.Emit(ILOpcode.call, emit.NewToken(compareExchangeNonGeneric));
parent\parent\Common\TypeSystem\IL\Stubs\UnsafeIntrinsics.cs (6)
108codeStream.Emit(ILOpcode.sizeof_, emit.NewToken(context.GetSignatureVariable(0, method: true))); 128codeStream.Emit(ILOpcode.sizeof_, emit.NewToken(context.GetSignatureVariable(0, method: true))); 149codeStream.Emit(write ? ILOpcode.stobj : ILOpcode.ldobj, 167codeStream.Emit(ILOpcode.ldobj, token); 168codeStream.Emit(ILOpcode.stobj, token); 220codeStream.Emit(ILOpcode.unbox, emit.NewToken(context.GetSignatureVariable(0, method: true)));
parent\parent\Common\TypeSystem\Interop\IL\Marshaller.cs (38)
1244codeStream.Emit(ILOpcode.sizeof_, emitter.NewToken(nativeElementType)); 1257codeStream.Emit(ILOpcode.call, emitter.NewToken( 1268codeStream.Emit(ILOpcode.call, emitter.NewToken( 1299codeStream.Emit(ILOpcode.sizeof_, emitter.NewToken(nativeElementType)); 1366codeStream.Emit(ILOpcode.newarr, emitter.NewToken(ManagedElementType)); 1370codeStream.Emit(ILOpcode.sizeof_, emitter.NewToken(nativeElementType)); 1422codeStream.Emit(ILOpcode.newarr, emitter.NewToken(elementType)); 1453codeStream.Emit(ILOpcode.sizeof_, emitter.NewToken(nativeElementType)); 1495codeStream.Emit(ILOpcode.call, emitter.NewToken(InteropTypes.GetMarshal(Context).GetKnownMethod("FreeCoTaskMem"u8, null))); 1520codeStream.Emit(ILOpcode.call, emitter.NewToken(getArrayDataReferenceMethod)); 1522codeStream.Emit(ILOpcode.sizeof_, emitter.NewToken(ManagedElementType)); 1533codeStream.Emit(ILOpcode.call, emitter.NewToken(getArrayDataReferenceMethod)); 1636codeStream.Emit(ILOpcode.call, emitter.NewToken( 1673codeStream.Emit(ILOpcode.call, emitter.NewToken( 1692codeStream.Emit(ILOpcode.call, emitter.NewToken(helper)); 1708codeStream.Emit(ILOpcode.newobj, emitter.NewToken(charPtrConstructor)); 1724codeStream.Emit(ILOpcode.call, emitter.NewToken( 1745codeStream.Emit(ILOpcode.call, emitter.NewToken( 1762codeStream.Emit(ILOpcode.call, emitter.NewToken(stringToAnsi)); 1772codeStream.Emit(ILOpcode.call, emitter.NewToken(ansiToString)); 1786codeStream.Emit(ILOpcode.call, emitter.NewToken( 1809codeStream.Emit(ILOpcode.call, emitter.NewToken( 1843codeStream.Emit(ILOpcode.newobj, emitter.NewToken(spanOfByte.GetKnownMethod(".ctor"u8, 1846codeStream.Emit(ILOpcode.call, emitter.NewToken(marshallerIn.GetKnownMethod("FromManaged"u8, null))); 1849codeStream.Emit(ILOpcode.call, emitter.NewToken(marshallerIn.GetKnownMethod("ToUnmanaged"u8, null))); 1854codeStream.Emit(ILOpcode.call, emitter.NewToken(Marshaller.GetKnownMethod("ConvertToUnmanaged"u8, null))); 1865codeStream.Emit(ILOpcode.call, emitter.NewToken(Marshaller.GetKnownMethod("ConvertToManaged"u8, null))); 1876codeStream.Emit(ILOpcode.call, emitter.NewToken( 1882codeStream.Emit(ILOpcode.call, emitter.NewToken( 1904codeStream.Emit(ILOpcode.newobj, _ilCodeStreams.Emitter.NewToken(ctor)); 1922returnValueMarshallingCodeStream.Emit(ILOpcode.call, emitter.NewToken( 1950marshallingCodeStream.Emit(ILOpcode.call, emitter.NewToken( 1956marshallingCodeStream.Emit(ILOpcode.call, emitter.NewToken( 1965cleanupCodeStream.Emit(ILOpcode.call, emitter.NewToken( 1999cleanupCodeStream.Emit(ILOpcode.call, emitter.NewToken( 2059codeStream.Emit(ILOpcode.call, _ilCodeStreams.Emitter.NewToken( 2085codeStream.Emit(ILOpcode.call, _ilCodeStreams.Emitter.NewToken( 2108codeStream.Emit(ILOpcode.call, _ilCodeStreams.Emitter.NewToken(InteropTypes.GetGC(Context).GetKnownMethod("KeepAlive"u8, null)));
ILCompiler.RyuJit (3)
parent\parent\Common\TypeSystem\IL\HelperExtensions.cs (1)
66codeStream.Emit(ILOpcode.call, emitter.NewToken(method));
parent\parent\Common\TypeSystem\IL\Stubs\TypeSystemThrowingILEmitter.cs (2)
90codeStream.Emit(ILOpcode.ldstr, emitter.NewToken(arg)); 93codeStream.Emit(ILOpcode.call, emitter.NewToken(helper));
ILCompiler.TypeSystem (15)
parent\parent\Common\TypeSystem\IL\HelperExtensions.cs (1)
66codeStream.Emit(ILOpcode.call, emitter.NewToken(method));
parent\parent\Common\TypeSystem\IL\Stubs\ILEmitter.cs (4)
283Emit(ILOpcode.ldobj, _emitter.NewToken(type)); 332Emit(ILOpcode.stobj, _emitter.NewToken(type)); 382Emit(ILOpcode.stelem, _emitter.NewToken(type)); 432Emit(ILOpcode.ldelem, _emitter.NewToken(type));
parent\parent\Common\TypeSystem\IL\UnsafeAccessors.cs (10)
736codeStream.Emit(ILOpcode.unbox_any, emit.NewToken(classType)); 745codeStream.Emit(ILOpcode.unbox_any, emit.NewToken(targetType)); 767codeStream.Emit(ILOpcode.newobj, emit.NewToken(context.TargetMethod)); 771codeStream.Emit(ILOpcode.callvirt, emit.NewToken(context.TargetMethod)); 775codeStream.Emit(ILOpcode.call, emit.NewToken(context.TargetMethod)); 779codeStream.Emit(ILOpcode.ldflda, emit.NewToken(context.TargetField)); 783codeStream.Emit(ILOpcode.ldsflda, emit.NewToken(context.TargetField)); 852codeStream.Emit(ILOpcode.ldstr, emit.NewToken(name)); 856codeStream.Emit(ILOpcode.call, emit.NewToken(thrower)); 870codeStream.Emit(ILOpcode.call, emit.NewToken(thrower));