60 references to NewToken
ILCompiler.Compiler (39)
IL\Stubs\StartupCode\StartupCodeMainMethod.cs (1)
101codeStream.Emit(ILOpcode.ldtoken, emitter.NewToken(entrypointModule.GetGlobalModuleType()));
parent\parent\Common\TypeSystem\IL\NativeAotILProvider.cs (1)
119codeStream.Emit(ILOpcode.initobj, emit.NewToken(context.GetSignatureVariable(0, method: true)));
parent\parent\Common\TypeSystem\IL\Stubs\ArrayMethodILEmitter.cs (2)
223codeStream.Emit(ILOpcode.ldobj, _emitter.NewToken(_elementType)); 228codeStream.Emit(ILOpcode.stobj, _emitter.NewToken(_elementType));
parent\parent\Common\TypeSystem\IL\Stubs\AssemblyGetExecutingAssemblyMethodThunk.cs (1)
79codeStream.Emit(ILOpcode.ldtoken, emit.NewToken(moduleType));
parent\parent\Common\TypeSystem\IL\Stubs\AsyncResumptionStub.cs (2)
93ilStream.Emit(ILOpcode.initobj, ilEmitter.NewToken(param)); 122ilStream.Emit(ILOpcode.stobj, ilEmitter.NewToken(_targetMethod.Signature.ReturnType));
parent\parent\Common\TypeSystem\IL\Stubs\DelegateThunks.cs (8)
192codeStream.Emit(ILOpcode.box, emitter.NewToken(boxThisType)); 213codeStream.Emit(ILOpcode.box, emitter.NewToken(boxThisType)); 370codeStream.Emit(ILOpcode.ldelema, emitter.NewToken(delegateWrapperType)); 535codeStream.Emit(ILOpcode.newarr, emitter.NewToken(objectType)); 556ILToken paramToken = emitter.NewToken(paramType); 587codeStream.Emit(ILOpcode.castclass, emitter.NewToken(instantiatedFunc)); 619ILToken paramToken = emitter.NewToken(paramType); 638codeStream.Emit(ILOpcode.unbox_any, emitter.NewToken(Signature.ReturnType));
parent\parent\Common\TypeSystem\IL\Stubs\GetCanonTypeIntrinsic.cs (1)
27codeStream.Emit(ILOpcode.ldtoken, emitter.NewToken(context.CanonType));
parent\parent\Common\TypeSystem\IL\Stubs\MethodBaseGetCurrentMethodThunk.cs (1)
81codeStream.Emit(ILOpcode.ldtoken, emit.NewToken(Method.OwningType));
parent\parent\Common\TypeSystem\IL\Stubs\UnsafeIntrinsics.cs (5)
108codeStream.Emit(ILOpcode.sizeof_, emit.NewToken(context.GetSignatureVariable(0, method: true))); 128codeStream.Emit(ILOpcode.sizeof_, emit.NewToken(context.GetSignatureVariable(0, method: true))); 150emit.NewToken(context.GetSignatureVariable(0, method: true))); 163ILToken token = emit.NewToken(context.GetSignatureVariable(0, method: true)); 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\Marshaller.Aot.cs (9)
284codeStream.Emit(ILOpcode.initobj, _ilCodeStreams.Emitter.NewToken(NativeType)); 498codeStream.Emit(ILOpcode.newarr, emitter.NewToken(managedElementType)); 656codeStream.Emit(ILOpcode.initobj, _ilCodeStreams.Emitter.NewToken(NativeType)); 683codeStream.Emit(ILOpcode.ldtoken, emitter.NewToken(ManagedType)); 775codeStream.Emit(ILOpcode.initobj, emitter.NewToken(nativeStructType)); 785codeStream.Emit(ILOpcode.ldtoken, emitter.NewToken(ManagedType)); 1156codeStream.Emit(ILOpcode.initobj, _ilCodeStreams.Emitter.NewToken(NativeType)); 1243fnptrLoadStream.Emit(ILOpcode.ldtoken, emitter.NewToken(ManagedType)); 1244fnptrLoadStream.Emit(ILOpcode.ldtoken, emitter.NewToken(marshallerType));
parent\parent\Common\TypeSystem\Interop\IL\Marshaller.cs (7)
1244codeStream.Emit(ILOpcode.sizeof_, emitter.NewToken(nativeElementType)); 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)); 1522codeStream.Emit(ILOpcode.sizeof_, emitter.NewToken(ManagedElementType));
ILCompiler.ReadyToRun (14)
parent\parent\Common\TypeSystem\IL\Stubs\AsyncResumptionStub.cs (2)
93ilStream.Emit(ILOpcode.initobj, ilEmitter.NewToken(param)); 122ilStream.Emit(ILOpcode.stobj, ilEmitter.NewToken(_targetMethod.Signature.ReturnType));
parent\parent\Common\TypeSystem\IL\Stubs\UnsafeIntrinsics.cs (5)
108codeStream.Emit(ILOpcode.sizeof_, emit.NewToken(context.GetSignatureVariable(0, method: true))); 128codeStream.Emit(ILOpcode.sizeof_, emit.NewToken(context.GetSignatureVariable(0, method: true))); 150emit.NewToken(context.GetSignatureVariable(0, method: true))); 163ILToken token = emit.NewToken(context.GetSignatureVariable(0, method: true)); 220codeStream.Emit(ILOpcode.unbox, emit.NewToken(context.GetSignatureVariable(0, method: true)));
parent\parent\Common\TypeSystem\Interop\IL\Marshaller.cs (7)
1244codeStream.Emit(ILOpcode.sizeof_, emitter.NewToken(nativeElementType)); 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)); 1522codeStream.Emit(ILOpcode.sizeof_, emitter.NewToken(ManagedElementType));
ILCompiler.TypeSystem (7)
parent\parent\Common\TypeSystem\IL\Stubs\ILEmitter.cs (5)
283Emit(ILOpcode.ldobj, _emitter.NewToken(type)); 332Emit(ILOpcode.stobj, _emitter.NewToken(type)); 382Emit(ILOpcode.stelem, _emitter.NewToken(type)); 432Emit(ILOpcode.ldelem, _emitter.NewToken(type)); 820int exceptionTypeToken = (region._catchExceptionType != null) ? (int)NewToken(region._catchExceptionType) : 0;
parent\parent\Common\TypeSystem\IL\UnsafeAccessors.cs (2)
736codeStream.Emit(ILOpcode.unbox_any, emit.NewToken(classType)); 745codeStream.Emit(ILOpcode.unbox_any, emit.NewToken(targetType));