Skip to content

Commit

Permalink
[NativeAOT] Fix cut & paste errors (#98686)
Browse files Browse the repository at this point in the history
* Fix cut & paste errors

* Add EBP versions too.
  • Loading branch information
filipnavara authored Feb 20, 2024
1 parent 2e5d409 commit 2df640c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ bool CoffNativeCodeManager::UnwindStackFrame(MethodInfo * pMethodInfo,
return true;
}
#else
PORTABILITY_ASSERT("GetConservativeUpperBoundForOutgoingArgs");
PORTABILITY_ASSERT("UnwindStackFrame");
RhFailFast();
#endif
}
Expand Down
17 changes: 11 additions & 6 deletions src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/JitHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,27 +80,32 @@ public static void GetEntryPoint(TypeSystemContext context, ReadyToRunHelper id,
mangledName = "RhpAssignRefECX";
break;
case ReadyToRunHelper.WriteBarrier_EDI:
mangledName = "RhpAssignRefECX";
mangledName = "RhpAssignRefEDI";
break;
case ReadyToRunHelper.WriteBarrier_ESI:
mangledName = "RhpAssignRefECX";
mangledName = "RhpAssignRefESI";
break;
case ReadyToRunHelper.WriteBarrier_EBP:
mangledName = "RhpAssignRefEBP";
break;
case ReadyToRunHelper.CheckedWriteBarrier_EAX:
mangledName = "RhpCheckedAssignRefEAX";
break;
case ReadyToRunHelper.CheckedWriteBarrier_EBX:
mangledName = "RhpCheckedAssignRefEAX";
mangledName = "RhpCheckedAssignRefEBX";
break;
case ReadyToRunHelper.CheckedWriteBarrier_ECX:
mangledName = "RhpCheckedAssignRefECX";
break;
case ReadyToRunHelper.CheckedWriteBarrier_EDI:
mangledName = "RhpCheckedAssignRefECX";
mangledName = "RhpCheckedAssignRefEDI";
break;
case ReadyToRunHelper.CheckedWriteBarrier_ESI:
mangledName = "RhpCheckedAssignRefECX";
mangledName = "RhpCheckedAssignRefESI";
break;
case ReadyToRunHelper.CheckedWriteBarrier_EBP:
mangledName = "RhpCheckedAssignRefEBP";
break;

case ReadyToRunHelper.Box:
case ReadyToRunHelper.Box_Nullable:
mangledName = "RhBox";
Expand Down

0 comments on commit 2df640c

Please sign in to comment.