public override void AppendMangledName(NameMangler nameMangler, Utf8StringBuilder sb) { switch (_id) { case ReadyToRunHelperId.VirtualCall: sb.Append("__VirtualCall_").Append(nameMangler.GetMangledMethodName((MethodDesc)_target)); break; case ReadyToRunHelperId.GetNonGCStaticBase: sb.Append("__GetNonGCStaticBase_").Append(nameMangler.GetMangledTypeName((TypeDesc)_target)); break; case ReadyToRunHelperId.GetGCStaticBase: sb.Append("__GetGCStaticBase_").Append(nameMangler.GetMangledTypeName((TypeDesc)_target)); break; case ReadyToRunHelperId.GetThreadStaticBase: sb.Append("__GetThreadStaticBase_").Append(nameMangler.GetMangledTypeName((TypeDesc)_target)); break; case ReadyToRunHelperId.DelegateCtor: ((DelegateCreationInfo)_target).AppendMangledName(nameMangler, sb); break; case ReadyToRunHelperId.ResolveVirtualFunction: sb.Append("__ResolveVirtualFunction_"); sb.Append(nameMangler.GetMangledMethodName((MethodDesc)_target)); break; default: throw new NotImplementedException(); } }
public override void AppendMangledName(NameMangler nameMangler, Utf8StringBuilder sb) { switch (_id) { case ReadyToRunHelperId.NewHelper: sb.Append("__NewHelper_").Append(nameMangler.GetMangledTypeName((TypeDesc)_target)); break; case ReadyToRunHelperId.NewArr1: sb.Append("__NewArr1_").Append(nameMangler.GetMangledTypeName((TypeDesc)_target)); break; case ReadyToRunHelperId.VirtualCall: sb.Append("__VirtualCall_").Append(nameMangler.GetMangledMethodName((MethodDesc)_target)); break; case ReadyToRunHelperId.IsInstanceOf: sb.Append("__IsInstanceOf_").Append(nameMangler.GetMangledTypeName((TypeDesc)_target)); break; case ReadyToRunHelperId.CastClass: sb.Append("__CastClass_").Append(nameMangler.GetMangledTypeName((TypeDesc)_target)); break; case ReadyToRunHelperId.GetNonGCStaticBase: sb.Append("__GetNonGCStaticBase_").Append(nameMangler.GetMangledTypeName((TypeDesc)_target)); break; case ReadyToRunHelperId.GetGCStaticBase: sb.Append("__GetGCStaticBase_").Append(nameMangler.GetMangledTypeName((TypeDesc)_target)); break; case ReadyToRunHelperId.GetThreadStaticBase: sb.Append("__GetThreadStaticBase_").Append(nameMangler.GetMangledTypeName((TypeDesc)_target)); break; case ReadyToRunHelperId.DelegateCtor: { var createInfo = (DelegateCreationInfo)_target; sb.Append("__DelegateCtor_"); createInfo.Constructor.AppendMangledName(nameMangler, sb); sb.Append("__"); createInfo.Target.AppendMangledName(nameMangler, sb); if (createInfo.Thunk != null) { sb.Append("__"); createInfo.Thunk.AppendMangledName(nameMangler, sb); } } break; case ReadyToRunHelperId.ResolveVirtualFunction: sb.Append("__ResolveVirtualFunction_"); sb.Append(nameMangler.GetMangledMethodName((MethodDesc)_target)); break; default: throw new NotImplementedException(); } }
public override void AppendMangledName(NameMangler nameMangler, Utf8StringBuilder sb) { sb.Append(nameMangler.CompilationUnitPrefix); sb.Append($@"MethodFixupSignature("); sb.Append(_fixupKind.ToString()); if (_isUnboxingStub) { sb.Append(" [UNBOX]"); } if (_isInstantiatingStub) { sb.Append(" [INST]"); } sb.Append(": "); sb.Append(nameMangler.GetMangledMethodName(_methodDesc)); if (_constrainedType != null) { sb.Append(" @ "); sb.Append(nameMangler.GetMangledTypeName(_constrainedType)); } if (!_methodToken.IsNull) { sb.Append(" ["); sb.Append(_methodToken.MetadataReader.GetString(_methodToken.MetadataReader.GetAssemblyDefinition().Name)); sb.Append(":"); sb.Append(((uint)_methodToken.Token).ToString("X8")); sb.Append("]"); } }
public override void AppendMangledName(NameMangler nameMangler, Utf8StringBuilder sb) { sb.Append(nameMangler.CompilationUnitPrefix); sb.Append("GenericLookupSignature("); sb.Append(_runtimeLookupKind.ToString()); sb.Append(" / "); sb.Append(_fixupKind.ToString()); sb.Append(": "); if (_methodArgument != null) { sb.Append(nameMangler.GetMangledMethodName(_methodArgument.Method)); if (!_methodArgument.Token.IsNull) { sb.Append(" ["); sb.Append(_methodArgument.Token.MetadataReader.GetString(_methodArgument.Token.MetadataReader.GetAssemblyDefinition().Name)); sb.Append(":");; sb.Append(((uint)_methodArgument.Token.Token).ToString("X8")); sb.Append("]"); } } if (_typeArgument != null) { sb.Append(nameMangler.GetMangledTypeName(_typeArgument)); } if (_fieldArgument != null) { sb.Append(nameMangler.GetMangledFieldName(_fieldArgument)); } sb.Append(" ("); _methodContext.AppendMangledName(nameMangler, sb); sb.Append(")"); }
public override void AppendMangledName(NameMangler nameMangler, Utf8StringBuilder sb) { sb.Append("ConstrainedMethodUseLookupResult_"); sb.Append(nameMangler.GetMangledTypeName(_constraintType)); sb.Append(nameMangler.GetMangledMethodName(_constrainedMethod)); if (_directCall) { sb.Append("Direct"); } }
public override void AppendMangledName(NameMangler nameMangler, Utf8StringBuilder sb) { sb.Append("SignaturePointer_"); Target.AppendMangledName(nameMangler, sb); if (_import.CallingMethod != null) { sb.Append(" @ "); sb.Append(nameMangler.GetMangledMethodName(_import.CallingMethod)); } }
public override void AppendMangledName(NameMangler nameMangler, Utf8StringBuilder sb) { sb.Append(nameMangler.CompilationUnitPrefix); sb.Append($@"DelegateCtor("); sb.Append(nameMangler.GetMangledTypeName(_delegateType)); sb.Append(" -> "); sb.Append(nameMangler.GetMangledMethodName(_targetMethod.Method)); sb.Append("; "); sb.Append(_methodToken.ToString()); sb.Append(")"); }
public override void AppendMangledName(NameMangler nameMangler, Utf8StringBuilder sb) { if (!_isUnboxingThunk) { sb.Append("MethodEntry_"); } else { sb.Append("UnboxMethodEntry_"); } sb.Append(nameMangler.GetMangledMethodName(_method)); }
public override void AppendMangledName(NameMangler nameMangler, Utf8StringBuilder sb) { sb.Append("DelayLoadHelperImport("); if (_useVirtualCall) { sb.Append("[VSD] "); } sb.Append(_helper.ToString()); sb.Append(") -> "); ImportSignature.AppendMangledName(nameMangler, sb); if (CallingMethod != null) { sb.Append(" @ "); sb.Append(nameMangler.GetMangledMethodName(CallingMethod)); } }
public override void AppendMangledName(NameMangler nameMangler, Utf8StringBuilder sb) { Utf8String mangledContextName; if (_dictionaryOwner is MethodDesc) { mangledContextName = nameMangler.GetMangledMethodName((MethodDesc)_dictionaryOwner); } else { mangledContextName = nameMangler.GetMangledTypeName((TypeDesc)_dictionaryOwner); } sb.Append("__GenericLookupFromType_").Append(mangledContextName).Append("_"); AppendLookupSignatureMangledName(nameMangler, sb); }
public void AppendMangledName(NameMangler nameMangler, Utf8StringBuilder sb) { Utf8String identityString; if (_identity is MethodDesc) { identityString = nameMangler.GetMangledMethodName((MethodDesc)_identity); } else if (_identity is TypeDesc) { identityString = nameMangler.GetMangledTypeName((TypeDesc)_identity); } else if (_identity is FieldDesc) { identityString = nameMangler.GetMangledFieldName((FieldDesc)_identity); } else { Debug.Assert(false); identityString = new Utf8String("unknown"); } sb.Append(nameMangler.CompilationUnitPrefix).Append(_identityPrefix).Append(identityString); }
public virtual void AppendMangledName(NameMangler nameMangler, Utf8StringBuilder sb) { sb.Append(nameMangler.GetMangledMethodName(_method)); }
public static string GetMangledName(NameMangler nameMangler, MethodDesc method, string callSiteIdentifier) { string name = nameMangler.CompilationUnitPrefix + "__InterfaceDispatchCell_" + nameMangler.GetMangledMethodName(method); if (!string.IsNullOrEmpty(callSiteIdentifier)) { name += "_" + callSiteIdentifier; } return(name); }
public override string GetMangledName(NameMangler nameMangler) { return $"MethodHandle_{nameMangler.GetMangledMethodName(_method)}"; }
public static string GetMangledName(NameMangler nameMangler, MethodDesc owningMethod) { return(MangledNamePrefix + nameMangler.GetMangledMethodName(owningMethod)); }
public override void AppendMangledName(NameMangler nameMangler, Utf8StringBuilder sb) { sb.Append(MangledNamePrefix).Append(nameMangler.GetMangledMethodName(_owningMethod)); }
public override string GetMangledName(NameMangler nameMangler) { return($"VirtualCall_{nameMangler.GetMangledMethodName(_method)}"); }
public static string GetMangledName(NameMangler nameMangler, MethodDesc method) { return("unbox_" + nameMangler.GetMangledMethodName(method)); }
public void AppendMangledName(NameMangler nameMangler, Utf8StringBuilder sb) { sb.Append(nameMangler.CompilationUnitPrefix) .Append("__RuntimeMethodHandle_") .Append(nameMangler.GetMangledMethodName(_targetMethod)); }
public override void AppendMangledName(NameMangler nameMangler, Utf8StringBuilder sb) { sb.Append("MethodHandle_"); sb.Append(nameMangler.GetMangledMethodName(_method)); }
public override string GetMangledName(NameMangler nameMangler) { return $"VirtualCall_{nameMangler.GetMangledMethodName(_method)}"; }
public override void AppendMangledName(NameMangler nameMangler, Utf8StringBuilder sb) { sb.Append("__unbox_").Append(nameMangler.GetMangledMethodName(_targetMethod)); }
public override string GetMangledName(NameMangler nameMangler) { return($"MethodHandle_{nameMangler.GetMangledMethodName(_method)}"); }
public override void AppendMangledName(NameMangler nameMangler, Utf8StringBuilder sb) { sb.Append(nameMangler.CompilationUnitPrefix); sb.Append($@"ILBodyFixupSignature({_fixupKind.ToString()}): "); sb.Append(nameMangler.GetMangledMethodName(_method)); }
public void AppendMangledName(NameMangler nameMangler, Utf8StringBuilder sb) { sb.Append("unbox_").Append(nameMangler.GetMangledMethodName(Method)); }
public void AppendMangledName(NameMangler nameMangler, Utf8StringBuilder sb) { sb.Append(nameMangler.GetMangledMethodName(_allocationMethod)); }
protected override sealed string GetNonImportedName(NameMangler nameMangler) => nameMangler.GetMangledMethodName(Method).ToString();
public static string GetMangledName(NameMangler nameMangler, MethodDesc method) { return("__getslot__" + nameMangler.GetMangledMethodName(method)); }
public virtual void AppendMangledName(NameMangler nameMangler, Utf8StringBuilder sb) { sb.Append("_associatedData_").Append(nameMangler.GetMangledMethodName(_methodNode.Method)); }
public override void AppendMangledName(NameMangler nameMangler, Utf8StringBuilder sb) { sb.Append("MethodHandle_"); sb.Append(nameMangler.GetMangledMethodName(_method)); }
public void AppendMangledName(NameMangler nameMangler, Utf8StringBuilder sb) { string prefix = _isUnboxingStub ? "__fatunboxpointer_" : "__fatpointer_"; sb.Append(prefix).Append(nameMangler.GetMangledMethodName(Method)); }
public void AppendMangledName(NameMangler nameMangler, Utf8StringBuilder sb) { sb.Append("__ehinfo_" + nameMangler.GetMangledMethodName(_owningMethod)); }