Skip to content

Commit

Permalink
another merge
Browse files Browse the repository at this point in the history
  • Loading branch information
marek-safar committed Sep 8, 2022
1 parent 4a0d7df commit a2e2fd6
Show file tree
Hide file tree
Showing 14 changed files with 54 additions and 56 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,6 @@ public static Marshaller CreateMarshaller(TypeDesc parameterType,
/// <param name="parameterType">type of the parameter to marshal</param>
/// <returns>The created Marshaller</returns>
public static Marshaller CreateDisabledMarshaller(TypeDesc parameterType,
int? parameterIndex,
MarshallerType marshallerType,
MarshalDirection direction,
Marshaller[] marshallers,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ internal class TypeSystemMetadataEmitter
private BlobHandle _noArgsVoidReturnStaticMethodSigHandle;
protected TypeSystemContext _typeSystemContext;

public TypeSystemMetadataEmitter(AssemblyName assemblyName, TypeSystemContext context, AssemblyFlags flags = default(AssemblyFlags), byte[] publicKeyArray = null, AssemblyHashAlgorithm hashAlgorithm = AssemblyHashAlgorithm.None)
public TypeSystemMetadataEmitter(AssemblyName assemblyName, TypeSystemContext context, AssemblyFlags flags = default(AssemblyFlags), byte[] publicKeyArray = null)
{
_typeSystemContext = context;
_metadataBuilder = new MetadataBuilder();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ private static bool IsSuppressedOnElement(int id, TypeSystemEntity provider)
return false;
}

internal static bool IsWarningAsError(int code)
internal static bool IsWarningAsError(int _/*code*/)
{
// TODO: warnaserror
return false;
Expand Down
78 changes: 39 additions & 39 deletions src/coreclr/tools/aot/ILCompiler.Compiler/IL/ILImporter.Scanner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1128,22 +1128,22 @@ private void ImportNewArray(int token)
}
}

private void ImportLoadElement(int token)
private void ImportLoadElement(int _)
{
_dependencies.Add(GetHelperEntrypoint(ReadyToRunHelper.RngChkFail), "ldelem");
}

private void ImportLoadElement(TypeDesc elementType)
private void ImportLoadElement(TypeDesc _)
{
_dependencies.Add(GetHelperEntrypoint(ReadyToRunHelper.RngChkFail), "ldelem");
}

private void ImportStoreElement(int token)
private void ImportStoreElement(int _)
{
_dependencies.Add(GetHelperEntrypoint(ReadyToRunHelper.RngChkFail), "stelem");
}

private void ImportStoreElement(TypeDesc elementType)
private void ImportStoreElement(TypeDesc _)
{
_dependencies.Add(GetHelperEntrypoint(ReadyToRunHelper.RngChkFail), "stelem");
}
Expand Down Expand Up @@ -1340,40 +1340,40 @@ private TypeDesc GetWellKnownType(WellKnownType wellKnownType)
return _compilation.TypeSystemContext.GetWellKnownType(wellKnownType);
}

private static void ImportNop() { }
private static void ImportBreak() { }
private static void ImportLoadVar(int index, bool argument) { }
private static void ImportStoreVar(int index, bool argument) { }
private static void ImportAddressOfVar(int index, bool argument) { }
private static void ImportDup() { }
private static void ImportPop() { }
private static void ImportLoadNull() { }
private static void ImportReturn() { }
private static void ImportLoadInt(long value, StackValueKind kind) { }
private static void ImportLoadFloat(double value) { }
private static void ImportLoadIndirect(int token) { }
private static void ImportLoadIndirect(TypeDesc type) { }
private static void ImportStoreIndirect(int token) { }
private static void ImportStoreIndirect(TypeDesc type) { }
private static void ImportShiftOperation(ILOpcode opcode) { }
private static void ImportCompareOperation(ILOpcode opcode) { }
private static void ImportConvert(WellKnownType wellKnownType, bool checkOverflow, bool unsigned) { }
private static void ImportUnaryOperation(ILOpcode opCode) { }
private static void ImportCpOpj(int token) { }
private static void ImportCkFinite() { }
private static void ImportLocalAlloc() { }
private static void ImportEndFilter() { }
private static void ImportCpBlk() { }
private static void ImportInitBlk() { }
private static void ImportRethrow() { }
private static void ImportSizeOf(int token) { }
private static void ImportUnalignedPrefix(byte alignment) { }
private static void ImportVolatilePrefix() { }
private static void ImportTailPrefix() { }
private static void ImportNoPrefix(byte mask) { }
private static void ImportThrow() { }
private static void ImportInitObj(int token) { }
private static void ImportLoadLength() { }
private static void ImportEndFinally() { }
static partial void ImportNop();
static partial void ImportBreak();
static partial void ImportLoadVar(int index, bool argument);
static partial void ImportStoreVar(int index, bool argument);
static partial void ImportAddressOfVar(int index, bool argument);
static partial void ImportDup();
static partial void ImportPop();
static partial void ImportLoadNull();
static partial void ImportReturn();
static partial void ImportLoadInt(long value, StackValueKind kind);
static partial void ImportLoadFloat(double value);
static partial void ImportLoadIndirect(int token);
static partial void ImportLoadIndirect(TypeDesc type);
static partial void ImportStoreIndirect(int token);
static partial void ImportStoreIndirect(TypeDesc type);
static partial void ImportShiftOperation(ILOpcode opcode);
static partial void ImportCompareOperation(ILOpcode opcode);
static partial void ImportConvert(WellKnownType wellKnownType, bool checkOverflow, bool unsigned);
static partial void ImportUnaryOperation(ILOpcode opCode);
static partial void ImportCpOpj(int token);
static partial void ImportCkFinite();
static partial void ImportLocalAlloc();
static partial void ImportEndFilter();
static partial void ImportCpBlk();
static partial void ImportInitBlk();
static partial void ImportRethrow();
static partial void ImportSizeOf(int token);
static partial void ImportUnalignedPrefix(byte alignment);
static partial void ImportVolatilePrefix();
static partial void ImportTailPrefix();
static partial void ImportNoPrefix(byte mask);
static partial void ImportThrow();
static partial void ImportInitObj(int token);
static partial void ImportLoadLength();
static partial void ImportEndFinally();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ private static Marshaller[] GetMarshallers(
{
marshallers[i] = CreateDisabledMarshaller(
parameterType,
parameterIndex,
MarshallerType.Argument,
MarshalDirection.Forward,
marshallers,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public ManagedBinaryEmitterForInternalUse(AssemblyName assemblyName,
AssemblyHashAlgorithm hashAlgorithm,
Func<ModuleDesc, int> moduleToIndex,
MutableModule mutableModule)
: base(assemblyName, typeSystemContext, assemblyFlags, publicKeyArray, hashAlgorithm)
: base(assemblyName, typeSystemContext, assemblyFlags, publicKeyArray)
{
_moduleToIndex = moduleToIndex;
_mutableModule = mutableModule;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1013,7 +1013,7 @@ private unsafe byte[] CreateSpNegoNegotiateMessage(ReadOnlySpan<byte> ntlmNegoti
return null;
}

internal NegotiateAuthenticationStatusCode Wrap(ReadOnlySpan<byte> input, IBufferWriter<byte> outputWriter, bool requestEncryption, out bool isEncrypted)
internal NegotiateAuthenticationStatusCode Wrap(ReadOnlySpan<byte> input, IBufferWriter<byte> outputWriter, bool _/*requestEncryption*/, out bool isEncrypted)
{
if (_clientSeal == null)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace System.Net.NetworkInformation
{
internal static class InterfaceInfoPal
{
public static uint InterfaceNameToIndex(string interfaceName)
public static uint InterfaceNameToIndex(string _/*interfaceName*/)
{
// zero means "unknown"
return 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public override void Flush()

internal static partial class ConsolePal
{
#pragma warning disable IDE0060
#pragma warning disable IDE0060
[JSImport("globalThis.console.clear")]
public static partial void Clear();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public static void VerifyPackageInfo()
{
}

#pragma warning disable IDE0060
public static SecurityStatusPal AcceptSecurityContext(
ref SafeFreeCredentials? credential,
ref SafeDeleteSslContext? context,
Expand Down Expand Up @@ -216,7 +217,6 @@ private static SecurityStatusPal HandshakeInternal(ref SafeDeleteSslContext? con
}
}

#pragma warning disable IDE0060
public static SecurityStatusPal ApplyAlertToken(SafeDeleteContext? securityContext, TlsAlertType alertType, TlsAlertMessage alertMessage)
{
// There doesn't seem to be an exposed API for writing an alert,
Expand All @@ -226,7 +226,7 @@ public static SecurityStatusPal ApplyAlertToken(SafeDeleteContext? securityConte
}
#pragma warning restore IDE0060

public static SecurityStatusPal ApplyShutdownToken(ref SafeFreeCredentials? credentialsHandle, SafeDeleteSslContext context)
public static SecurityStatusPal ApplyShutdownToken(SafeDeleteSslContext context)
{
// Unset the quiet shutdown option initially configured.
Interop.Ssl.SslSetQuietShutdown((SafeSslHandle)context, 0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public void Abort()
WebSocket?.Abort();
}

public Task ConnectAsync(Uri uri, HttpMessageInvoker? invoker, CancellationToken cancellationToken, ClientWebSocketOptions options)
public Task ConnectAsync(Uri uri, HttpMessageInvoker? _ /*invoker*/, CancellationToken cancellationToken, ClientWebSocketOptions options)
{
cancellationToken.ThrowIfCancellationRequested();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ internal static void EnsureRunningSlow(PortableThreadPool threadPoolInstance)
}
else if ((numRunsMask & GateThreadRunningMask) == 0)
{
CreateGateThread(threadPoolInstance);
CreateGateThread();
}
}

Expand All @@ -229,7 +229,7 @@ private static int GetRunningStateForNumRuns(int numRuns)
return GateThreadRunningMask | numRuns;
}

private static void CreateGateThread(PortableThreadPool threadPoolInstance)
private static void CreateGateThread()
{
try
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ internal void ReleaseInFlight()
/// <inheritdoc />
public override string ToString() => $"(js-obj js '{JSHandle}')";

private void Dispose(bool disposing)
private void DisposeThis()
{
if (!_isDisposed)
{
Expand All @@ -75,15 +75,15 @@ private void Dispose(bool disposing)

~JSObject()
{
Dispose(disposing: false);
DisposeThis();
}

/// <summary>
/// Releases any resources used by the proxy and discards the reference to its target JavaScript object.
/// </summary>
public void Dispose()
{
Dispose(disposing: true);
DisposeThis();
GC.SuppressFinalize(this);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ internal partial class TimerQueue
private bool _isScheduled;
private long _scheduledDueTimeMs;

private TimerQueue(int id)
private TimerQueue(int _)
{
}

Expand Down

0 comments on commit a2e2fd6

Please sign in to comment.