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/wasm
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/wasm')
-rw-r--r--src/Native/Runtime/wasm/AsmOffsetsCpu.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/Native/Runtime/wasm/AsmOffsetsCpu.h b/src/Native/Runtime/wasm/AsmOffsetsCpu.h
new file mode 100644
index 000000000..b03fe8982
--- /dev/null
+++ b/src/Native/Runtime/wasm/AsmOffsetsCpu.h
@@ -0,0 +1,30 @@
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for more information.
+
+//
+// This file is used by AsmOffsets.h to validate that our
+// assembly-code offsets always match their C++ counterparts.
+//
+// NOTE: the offsets MUST be in hex notation WITHOUT the 0x prefix
+
+PLAT_ASM_SIZEOF(A0, ExInfo)
+PLAT_ASM_OFFSET(0, ExInfo, m_pPrevExInfo)
+PLAT_ASM_OFFSET(4, ExInfo, m_pExContext)
+PLAT_ASM_OFFSET(8, ExInfo, m_exception)
+PLAT_ASM_OFFSET(0c, ExInfo, m_kind)
+PLAT_ASM_OFFSET(0d, ExInfo, m_passNumber)
+PLAT_ASM_OFFSET(10, ExInfo, m_idxCurClause)
+PLAT_ASM_OFFSET(14, ExInfo, m_frameIter)
+PLAT_ASM_OFFSET(9C, ExInfo, m_notifyDebuggerSP)
+
+PLAT_ASM_SIZEOF(88, StackFrameIterator)
+PLAT_ASM_OFFSET(08, StackFrameIterator, m_FramePointer)
+PLAT_ASM_OFFSET(0c, StackFrameIterator, m_ControlPC)
+PLAT_ASM_OFFSET(10, StackFrameIterator, m_RegDisplay)
+
+PLAT_ASM_SIZEOF(4, PAL_LIMITED_CONTEXT)
+PLAT_ASM_OFFSET(0, PAL_LIMITED_CONTEXT, IP)
+
+PLAT_ASM_SIZEOF(0c, REGDISPLAY)
+PLAT_ASM_OFFSET(0, REGDISPLAY, SP)