33 references to CodeGenerator
Microsoft.CodeAnalysis.CSharp (33)
CodeGen\CodeGenerator_HasHome.cs (1)
94
return !((
CodeGenerator
.IsStackLocal(local, stackLocalsOpt) && local.RefKind == RefKind.None) ||
CodeGen\Optimizer.cs (5)
1210
if (
CodeGenerator
.IsRef(receiver) &&
1211
CodeGenerator
.IsPossibleReferenceTypeReceiverOfConstrainedCall(receiver) &&
1212
!
CodeGenerator
.IsSafeToDereferenceReceiverRefAfterEvaluatingArguments(call.Arguments))
1265
RefKind argRefKind =
CodeGenerator
.GetArgumentRefKind(arguments, parameters, argRefKindsOpt, i);
1360
CodeGenerator
.FieldLoadMustUseRef(receiver)))
Compiler\MethodCompiler.cs (1)
1517
var
codeGen = new CodeGen.CodeGenerator(method, block, builder, moduleBuilder, diagnosticsForThisMethod, optimizations, emittingPdb);
Lowering\LocalRewriter\LocalRewriter_Call.cs (9)
288
&& !
CodeGenerator
.HasHome(
290
thisRefKind == RefKind.Ref ?
CodeGenerator
.AddressKind.Writeable :
CodeGenerator
.AddressKind.ReadOnlyStrict,
704
CodeGenerator
.HasHome(rewrittenReceiver,
705
CodeGenerator
.AddressKind.Constrained,
786
CodeGenerator
.IsPossibleReferenceTypeReceiverOfConstrainedCall(receiverTemp) &&
787
!
CodeGenerator
.ReceiverIsKnownToReferToTempIfReferenceType(receiverTemp) &&
789
!
CodeGenerator
.IsSafeToDereferenceReceiverRefAfterEvaluatingArguments(rewrittenArguments)))
988
Debug.Assert(
CodeGenerator
.ReceiverIsKnownToReferToTempIfReferenceType(receiverTemp));
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (1)
529
CodeGenerator
.IsTypeAllowedInBlobWrapper(elementType.EnumUnderlyingTypeOrSelf().SpecialType) &&
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (2)
210
CodeGenerator
.IsPossibleReferenceTypeReceiverOfConstrainedCall(receiverTemp) &&
211
!
CodeGenerator
.ReceiverIsKnownToReferToTempIfReferenceType(receiverTemp))
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (6)
509
CodeGenerator
.IsPossibleReferenceTypeReceiverOfConstrainedCall(receiverLocal) &&
510
!
CodeGenerator
.ReceiverIsKnownToReferToTempIfReferenceType(receiverLocal) &&
512
!
CodeGenerator
.IsSafeToDereferenceReceiverRefAfterEvaluatingArguments(ImmutableArray.Create(makeOffsetInput))))
812
CodeGenerator
.IsPossibleReferenceTypeReceiverOfConstrainedCall(receiverLocal) &&
813
!
CodeGenerator
.ReceiverIsKnownToReferToTempIfReferenceType(receiverLocal))
832
if (!
CodeGenerator
.IsSafeToDereferenceReceiverRefAfterEvaluatingArguments(argumentsBuilder.ToImmutableAndFree()))
Lowering\LocalRewriter\LoweredDynamicOperationFactory.cs (2)
550
var hasHome =
CodeGenerator
.HasHome(loweredReceiver,
551
CodeGenerator
.AddressKind.Writeable,
Lowering\SpillSequenceSpiller.cs (3)
1039
CodeGenerator
.IsPossibleReferenceTypeReceiverOfConstrainedCall(receiver) &&
1040
!
CodeGenerator
.ReceiverIsKnownToReferToTempIfReferenceType(receiver) &&
1041
!
CodeGenerator
.IsSafeToDereferenceReceiverRefAfterEvaluatingArguments(node.Arguments))
Lowering\SyntheticBoundNodeFactory.cs (3)
1401
if (!method.ContainingType.IsValueType || !Microsoft.CodeAnalysis.CSharp.CodeGen.
CodeGenerator
.MayUseCallForStructMethod(method))
1655
if (!
CodeGenerator
.HasHome(argument,
1656
CodeGenerator
.AddressKind.ReadOnly,