[wasm] Add wasm stubs for object-offsets and sgen-archdep.
authorRodrigo Kumpera <kumpera@gmail.com>
Tue, 22 Aug 2017 18:42:33 +0000 (11:42 -0700)
committerRodrigo Kumpera <kumpera@gmail.com>
Wed, 23 Aug 2017 20:57:08 +0000 (13:57 -0700)
mono/metadata/object-offsets.h
mono/sgen/sgen-archdep.h

index dcf37e0015cf646f710a3c277e705980b25b6793..233f9528ed90ca0a34cdf5377989320fe0dc61c7 100644 (file)
@@ -178,7 +178,16 @@ DECL_OFFSET(MonoDelegateTrampInfo, method_ptr)
 // Architecture-specific offsets
 // -----------------------------
 
-#if defined(TARGET_X86)
+#if defined(TARGET_WASM)
+DECL_OFFSET(MonoContext, wasm_ip)
+DECL_OFFSET(MonoContext, wasm_bp)
+DECL_OFFSET(MonoContext, wasm_sp)
+DECL_OFFSET(MonoContext, llvm_exc_reg)
+
+DECL_OFFSET(MonoLMF, method)
+DECL_OFFSET(MonoLMF, lmf_addr)
+
+#elif defined(TARGET_X86)
 DECL_OFFSET(MonoContext, eax)
 DECL_OFFSET(MonoContext, ebx)
 DECL_OFFSET(MonoContext, ecx)
index 9fa6e2141c2e620e4a9d7d6b5671030019407e8a..9a3ad0157044ba79cbb6deb47a7b20a39ced03db 100644 (file)
 
 #define REDZONE_SIZE   0
 
+#elif defined (TARGET_WASM)
+
+#define REDZONE_SIZE   0
+
 #endif
 
 #endif /* __MONO_SGENARCHDEP_H__ */