Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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/vm/callhelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ void MethodDescCallSite::CallTargetWorker(const ARG_SLOT *pArguments, ARG_SLOT *
callDescrData.fpReturnSize = fpReturnSize;
callDescrData.pTarget = m_pCallTarget;
#ifdef TARGET_WASM
callDescrData.nArgsSize = m_argIt.GetArgSize();
callDescrData.nArgsSize = nStackBytes;
#endif // TARGET_WASM

CallDescrWorkerWithHandler(&callDescrData);
Expand Down
4 changes: 2 additions & 2 deletions src/coreclr/vm/wasm/cgencpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@

inline unsigned StackElemSize(unsigned parmSize, bool isValueType = false /* unused */, bool isFloatHfa = false /* unused */)
{
_ASSERTE("The function is not implemented on wasm");
return 0;
const unsigned stackSlotSize = 4;
return ALIGN_UP(parmSize, stackSlotSize);
}

inline TADDR GetSP(const T_CONTEXT * context)
Expand Down
Loading