Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/coreclr/tools/Common/JitInterface/WasmLowering.cs
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ public static unsafe WasmSignature GetSignature(MethodSignature signature, CORIN
public static LoweringFlags GetLoweringFlags(MethodDesc method)
{
LoweringFlags flags = 0;
if (method.RequiresInstMethodDescArg() || method.RequiresInstMethodTableArg())
if (method.RequiresInstMethodDescArg() || method.RequiresInstMethodTableArg() || method.IsArrayAddressMethod())
{
flags |= LoweringFlags.HasGenericContextArg;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,7 @@ internal static (ArgIterator<TypeHandle>, TransitionBlock) BuildArgIterator(Meth
parameterTypes[parameterIndex] = new TypeHandle(signature[parameterIndex]);
}
CallingConventions callingConventions = (hasThis ? CallingConventions.ManagedInstance : CallingConventions.ManagedStatic);
bool hasParamType = methodRequiresInstArg && !isUnboxingStub;

// On X86 the Array address method doesn't use IL stubs, and instead has a custom calling convention
if ((context.Target.Architecture == TargetArchitecture.X86) &&
methodIsArrayAddressMethod)
{
hasParamType = true;
}
bool hasParamType = (methodRequiresInstArg && !isUnboxingStub) || methodIsArrayAddressMethod;

bool hasAsyncContinuation = methodIsAsyncCall;
// We shouldn't be compiling unboxing stubs for async methods yet.
Expand Down
6 changes: 1 addition & 5 deletions src/tests/readytorun/crossgen2/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2272,11 +2272,7 @@ public static int Main()
RunTest("ExplicitlySizedClassTest", ExplicitlySizedClassTest());
RunTest("GenericLdtokenTest", GenericLdtokenTest());
RunTest("ArrayLdtokenTests", ArrayLdtokenTests());
// ActiveIssue https://github.com/dotnet/runtime/issues/133307
if (!PlatformDetection.IsWasm || !PlatformDetection.IsReadyToRunCompiled)
{
RunTest("TestGenericMDArrayBehavior", TestGenericMDArrayBehavior());
}
RunTest("TestGenericMDArrayBehavior", TestGenericMDArrayBehavior());
RunTest("TestWithStructureNonBlittableFieldDueToGenerics", TestWithStructureNonBlittableFieldDueToGenerics());
RunTest("TestSingleElementStructABI", TestSingleElementStructABI());
RunTest("TestEnumLayoutAlignments", TestEnumLayoutAlignments());
Expand Down
Loading