Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMorgan Brown <morganbr@users.noreply.github.com>2017-12-05 09:45:38 +0300
committerGitHub <noreply@github.com>2017-12-05 09:45:38 +0300
commit3d25db5b1c010346bbc480a20646c80ea413492f (patch)
treee49e79d7ef6cd6861dd54d6db5262dfce216e695 /src/Native/Runtime/PalRedhawk.h
parentc900f3d03df888df2271cc7e207cdc645ae94aa2 (diff)
Build runtime and libraries for WebAssembly (#4876)
* Fix issues building the runtime, corelib and type loader for WebAssembly * Fix test infrastructure to allow running with the wasm flavor
Diffstat (limited to 'src/Native/Runtime/PalRedhawk.h')
-rw-r--r--src/Native/Runtime/PalRedhawk.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/Native/Runtime/PalRedhawk.h b/src/Native/Runtime/PalRedhawk.h
index 1d1b58166..553e42cf2 100644
--- a/src/Native/Runtime/PalRedhawk.h
+++ b/src/Native/Runtime/PalRedhawk.h
@@ -457,8 +457,16 @@ typedef struct DECLSPEC_ALIGN(16) _CONTEXT {
UIntNative GetLr() { return Lr; }
} CONTEXT, *PCONTEXT;
-#endif
+#elif defined(_WASM_)
+typedef struct DECLSPEC_ALIGN(8) _CONTEXT {
+ // TODO: Figure out if WebAssembly has a meaningful context available
+ void SetIp(UIntNative ip) { }
+ void SetArg0Reg(UIntNative val) { }
+ void SetArg1Reg(UIntNative val) { }
+ UIntNative GetIp() { return 0; }
+} CONTEXT, *PCONTEXT;
+#endif
#define EXCEPTION_MAXIMUM_PARAMETERS 15 // maximum number of exception parameters