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
5 changes: 1 addition & 4 deletions src/coreclr/vm/callhelpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@
#define __CALLHELPERS_H__

#ifdef TARGET_WASM
// A sentinel value to indicate to the stack walker that this frame is NOT R2R generated managed code,
// and it should look for the next Frame in the Frame chain to make further progress.
#define TERMINATE_R2R_STACK_WALK 1

#include "wasm/callhelpers.hpp"
#endif

struct CallDescrData
Expand Down
1 change: 1 addition & 0 deletions src/coreclr/vm/wasm/callhelpers-interp-to-managed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
//

#include <callhelpers.hpp>
#include <minipal/utils.h>

Comment thread
radekdoulik marked this conversation as resolved.
// Arguments are passed on the stack with each argument aligned to INTERP_STACK_SLOT_SIZE.
#define ARG_ADDR(i) (pArgs + (i * INTERP_STACK_SLOT_SIZE))
Expand Down
4 changes: 4 additions & 0 deletions src/coreclr/vm/wasm/callhelpers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
#ifndef __WASM_CALLHELPERS_HPP__
#define __WASM_CALLHELPERS_HPP__

// A sentinel value to indicate to the stack walker that this frame is NOT R2R generated managed code,
// and it should look for the next Frame in the Frame chain to make further progress.
#define TERMINATE_R2R_STACK_WALK 1

struct StringToWasmSigThunk
{
const char* key;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ private static void Emit(StreamWriter w, IEnumerable<string> cookies)
//

#include <callhelpers.hpp>
#include <minipal/utils.h>

// Arguments are passed on the stack with each argument aligned to INTERP_STACK_SLOT_SIZE.
#define ARG_ADDR(i) (pArgs + (i * INTERP_STACK_SLOT_SIZE))
Expand Down
Loading