108 references to NewLocal
ILCompiler.Compiler (68)
parent\parent\Common\TypeSystem\IL\NativeAotILProvider.cs (1)
117
var t = emit.
NewLocal
(context.GetSignatureVariable(0, method: true));
parent\parent\Common\TypeSystem\IL\Stubs\ArrayMethodILEmitter.cs (2)
79
var totalLocalNum = _emitter.
NewLocal
(int32Type);
80
var lengthLocalNum = _emitter.
NewLocal
(int32Type);
parent\parent\Common\TypeSystem\IL\Stubs\AsyncResumptionStub.cs (3)
91
var local = ilEmitter.
NewLocal
(param);
104
resultLocal = ilEmitter.
NewLocal
(_targetMethod.Signature.ReturnType);
111
var newContinuationLocal = ilEmitter.
NewLocal
(continuation);
parent\parent\Common\TypeSystem\IL\Stubs\AsyncThunks.cs (4)
36
logicalResultLocal = emitter.
NewLocal
(logicalReturnType);
39
ILLocalVariable returnTaskLocal = emitter.
NewLocal
(returnType);
43
ILLocalVariable stackStateLocal = emitter.
NewLocal
(stackStateType);
45
ILLocalVariable refAwaitStateLocal = emitter.
NewLocal
(awaitStateType.MakeByRefType());
parent\parent\Common\TypeSystem\IL\Stubs\DelegateMethodILEmitter.cs (1)
56
ILLocalVariable methodPtr = emit.
NewLocal
(context.GetWellKnownType(WellKnownType.IntPtr));
parent\parent\Common\TypeSystem\IL\Stubs\DelegateThunks.cs (6)
316
ILLocalVariable delegateArrayLocal = emitter.
NewLocal
(invocationListArrayType);
317
ILLocalVariable invocationCountLocal = emitter.
NewLocal
(Context.GetWellKnownType(WellKnownType.Int32));
318
ILLocalVariable iteratorLocal = emitter.
NewLocal
(Context.GetWellKnownType(WellKnownType.Int32));
323
returnValueLocal = emitter.
NewLocal
(Signature.ReturnType);
527
ILLocalVariable argsLocal = emitter.
NewLocal
(objectArrayType);
597
retLocal = emitter.
NewLocal
(objectType);
parent\parent\Common\TypeSystem\IL\Stubs\DynamicInvokeMethodThunk.cs (1)
177
var retVal = emitter.
NewLocal
(returnType);
parent\parent\Common\TypeSystem\IL\Stubs\PInvokeILEmitter.cs (4)
179
ILLocalVariable vDelegateStub = emitter.
NewLocal
(
200
ILLocalVariable vDelegateStub = emitter.
NewLocal
(delegateMethod.DelegateType);
223
var fnPtr = emitter.
NewLocal
(
314
ILLocalVariable vNativeFunctionPointer = emitter.
NewLocal
(context
parent\parent\Common\TypeSystem\IL\Stubs\StructMarshallingThunk.cs (1)
340
Internal.IL.Stubs.ILLocalVariable var = emitter.
NewLocal
(field.FieldType);
parent\parent\Common\TypeSystem\Interop\IL\InlineArrayType.cs (1)
389
var vThis = emitter.
NewLocal
(_owningType.MakeByRefType());
parent\parent\Common\TypeSystem\Interop\IL\Marshaller.Aot.cs (12)
341
var vLength = emitter.
NewLocal
(Context.GetWellKnownType(WellKnownType.Int32));
415
ILLocalVariable vIndex = emitter.
NewLocal
(Context.GetWellKnownType(WellKnownType.Int32));
416
ILLocalVariable vLength = emitter.
NewLocal
(Context.GetWellKnownType(WellKnownType.Int32));
417
ILLocalVariable vNative = emitter.
NewLocal
(NativeType.MakeByRefType(), isPinned: true);
491
ILLocalVariable vLength = emitter.
NewLocal
(Context.GetWellKnownType(WellKnownType.Int32));
502
var vIndex = emitter.
NewLocal
(Context.GetWellKnownType(WellKnownType.Int32));
743
ILLocalVariable vPinnedObject = emitter.
NewLocal
(ManagedType, isPinned: true);
773
ILLocalVariable lNativeType = emitter.
NewLocal
(nativeStructType);
874
ILLocalVariable lSize = emitter.
NewLocal
(Context.GetWellKnownType(WellKnownType.Int32));
1238
MarshallerLocalVariable = emitter.
NewLocal
(customMarshallerType);
1347
_managedHome = new Home(emitter.
NewLocal
(ManagedParameterType), ManagedParameterType, isByRef: false);
1348
_nativeHome = new Home(emitter.
NewLocal
(NativeType), NativeType, isByRef: false);
parent\parent\Common\TypeSystem\Interop\IL\Marshaller.cs (32)
651
_managedHome = new Home(emitter.
NewLocal
(ManagedType), ManagedType, false);
654
_nativeHome = new Home(emitter.
NewLocal
(NativeType), NativeType, isByRef: false);
658
_managedHome = new Home(emitter.
NewLocal
(ManagedType), ManagedType, isByRef: false);
660
_nativeHome = new Home(emitter.
NewLocal
(NativeType), NativeType, isByRef: false);
670
_managedHome = new Home(emitter.
NewLocal
(ManagedType), ManagedType, isByRef: false);
671
_nativeHome = new Home(emitter.
NewLocal
(NativeType), NativeType, isByRef: false);
681
_managedHome = new Home(emitter.
NewLocal
(ManagedType), ManagedType, isByRef: false);
682
_nativeHome = new Home(emitter.
NewLocal
(NativeType), NativeType, isByRef: false);
689
_managedHome = new Home(emitter.
NewLocal
(ManagedType), ManagedType, isByRef: false);
690
_nativeHome = new Home(emitter.
NewLocal
(NativeType), NativeType, isByRef: false);
1042
ILLocalVariable native = emitter.
NewLocal
(Context.GetPointerType(ManagedParameterType));
1044
ILLocalVariable vPinnedByRef = emitter.
NewLocal
(ManagedParameterType, true);
1253
var vAllocSize = emitter.
NewLocal
(Context.GetWellKnownType(WellKnownType.Int32));
1285
var vNativeTemp = emitter.
NewLocal
(NativeType);
1286
var vIndex = emitter.
NewLocal
(Context.GetWellKnownType(WellKnownType.Int32));
1287
var vSizeOf = emitter.
NewLocal
(Context.GetWellKnownType(WellKnownType.IntPtr));
1288
var vLength = emitter.
NewLocal
(Context.GetWellKnownType(WellKnownType.Int32));
1345
ILLocalVariable vSizeOf = emitter.
NewLocal
(Context.GetWellKnownType(WellKnownType.Int32));
1346
ILLocalVariable vLength = emitter.
NewLocal
(Context.GetWellKnownType(WellKnownType.IntPtr));
1374
var vIndex = emitter.
NewLocal
(Context.GetWellKnownType(WellKnownType.Int32));
1375
ILLocalVariable vNativeTemp = emitter.
NewLocal
(NativeType);
1444
var vIndex = emitter.
NewLocal
(Context.GetWellKnownType(WellKnownType.Int32));
1445
ILLocalVariable vLength = emitter.
NewLocal
(Context.GetWellKnownType(WellKnownType.IntPtr));
1449
ILLocalVariable vSizeOf = emitter.
NewLocal
(Context.GetWellKnownType(WellKnownType.IntPtr));
1463
ILLocalVariable vNativeTemp = emitter.
NewLocal
(NativeType);
1530
ILLocalVariable vPinnedFirstElement = emitter.
NewLocal
(ManagedElementType.MakeByRefType(), true);
1651
ILLocalVariable vPinnedCharRef = emitter.
NewLocal
(charRefType, true);
1825
_marshallerInstance ??= emitter.
NewLocal
(marshallerIn);
1827
var vBuffer = emitter.
NewLocal
(Context.GetWellKnownType(WellKnownType.IntPtr));
1947
var vAddRefed = emitter.
NewLocal
(Context.GetWellKnownType(WellKnownType.Boolean));
1980
var vSafeHandle = emitter.
NewLocal
(ManagedType);
1988
ILLocalVariable vOriginalValue = emitter.
NewLocal
(NativeType);
ILCompiler.ReadyToRun (39)
parent\parent\Common\TypeSystem\IL\Stubs\AsyncResumptionStub.cs (3)
91
var local = ilEmitter.
NewLocal
(param);
104
resultLocal = ilEmitter.
NewLocal
(_targetMethod.Signature.ReturnType);
111
var newContinuationLocal = ilEmitter.
NewLocal
(continuation);
parent\parent\Common\TypeSystem\IL\Stubs\AsyncThunks.cs (4)
36
logicalResultLocal = emitter.
NewLocal
(logicalReturnType);
39
ILLocalVariable returnTaskLocal = emitter.
NewLocal
(returnType);
43
ILLocalVariable stackStateLocal = emitter.
NewLocal
(stackStateType);
45
ILLocalVariable refAwaitStateLocal = emitter.
NewLocal
(awaitStateType.MakeByRefType());
parent\parent\Common\TypeSystem\Interop\IL\Marshaller.cs (32)
651
_managedHome = new Home(emitter.
NewLocal
(ManagedType), ManagedType, false);
654
_nativeHome = new Home(emitter.
NewLocal
(NativeType), NativeType, isByRef: false);
658
_managedHome = new Home(emitter.
NewLocal
(ManagedType), ManagedType, isByRef: false);
660
_nativeHome = new Home(emitter.
NewLocal
(NativeType), NativeType, isByRef: false);
670
_managedHome = new Home(emitter.
NewLocal
(ManagedType), ManagedType, isByRef: false);
671
_nativeHome = new Home(emitter.
NewLocal
(NativeType), NativeType, isByRef: false);
681
_managedHome = new Home(emitter.
NewLocal
(ManagedType), ManagedType, isByRef: false);
682
_nativeHome = new Home(emitter.
NewLocal
(NativeType), NativeType, isByRef: false);
689
_managedHome = new Home(emitter.
NewLocal
(ManagedType), ManagedType, isByRef: false);
690
_nativeHome = new Home(emitter.
NewLocal
(NativeType), NativeType, isByRef: false);
1042
ILLocalVariable native = emitter.
NewLocal
(Context.GetPointerType(ManagedParameterType));
1044
ILLocalVariable vPinnedByRef = emitter.
NewLocal
(ManagedParameterType, true);
1253
var vAllocSize = emitter.
NewLocal
(Context.GetWellKnownType(WellKnownType.Int32));
1285
var vNativeTemp = emitter.
NewLocal
(NativeType);
1286
var vIndex = emitter.
NewLocal
(Context.GetWellKnownType(WellKnownType.Int32));
1287
var vSizeOf = emitter.
NewLocal
(Context.GetWellKnownType(WellKnownType.IntPtr));
1288
var vLength = emitter.
NewLocal
(Context.GetWellKnownType(WellKnownType.Int32));
1345
ILLocalVariable vSizeOf = emitter.
NewLocal
(Context.GetWellKnownType(WellKnownType.Int32));
1346
ILLocalVariable vLength = emitter.
NewLocal
(Context.GetWellKnownType(WellKnownType.IntPtr));
1374
var vIndex = emitter.
NewLocal
(Context.GetWellKnownType(WellKnownType.Int32));
1375
ILLocalVariable vNativeTemp = emitter.
NewLocal
(NativeType);
1444
var vIndex = emitter.
NewLocal
(Context.GetWellKnownType(WellKnownType.Int32));
1445
ILLocalVariable vLength = emitter.
NewLocal
(Context.GetWellKnownType(WellKnownType.IntPtr));
1449
ILLocalVariable vSizeOf = emitter.
NewLocal
(Context.GetWellKnownType(WellKnownType.IntPtr));
1463
ILLocalVariable vNativeTemp = emitter.
NewLocal
(NativeType);
1530
ILLocalVariable vPinnedFirstElement = emitter.
NewLocal
(ManagedElementType.MakeByRefType(), true);
1651
ILLocalVariable vPinnedCharRef = emitter.
NewLocal
(charRefType, true);
1825
_marshallerInstance ??= emitter.
NewLocal
(marshallerIn);
1827
var vBuffer = emitter.
NewLocal
(Context.GetWellKnownType(WellKnownType.IntPtr));
1947
var vAddRefed = emitter.
NewLocal
(Context.GetWellKnownType(WellKnownType.Boolean));
1980
var vSafeHandle = emitter.
NewLocal
(ManagedType);
1988
ILLocalVariable vOriginalValue = emitter.
NewLocal
(NativeType);
ILCompiler.TypeSystem (1)
parent\parent\Common\TypeSystem\IL\UnsafeAccessors.cs (1)
743
Stubs.ILLocalVariable local = emit.
NewLocal
(targetType);