diff options
author | Michal Strehovský <michals@microsoft.com> | 2015-10-21 22:27:59 +0300 |
---|---|---|
committer | Michal Strehovský <michals@microsoft.com> | 2015-10-21 22:27:59 +0300 |
commit | 217a12db6242d21b3b2044c8c0598899ea211c27 (patch) | |
tree | f127c176a5121e9e7fef13e39a622a6449da4df3 /src/Native/Runtime/ObjectLayout.h | |
parent | ba9c060dba1dbfe83b1ddd4abf3490d1ff45e4a0 (diff) |
Move MDArray creation to the runtime
The rest are some small fixes:
* Fix a bug where during EEType generation we assumed everything will be
castable to MetadataType
* Compute proper baseSize for Array and MDArray types
Diffstat (limited to 'src/Native/Runtime/ObjectLayout.h')
-rw-r--r-- | src/Native/Runtime/ObjectLayout.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/Native/Runtime/ObjectLayout.h b/src/Native/Runtime/ObjectLayout.h index 1502abdfd..b16ebfdf9 100644 --- a/src/Native/Runtime/ObjectLayout.h +++ b/src/Native/Runtime/ObjectLayout.h @@ -102,3 +102,15 @@ public: }; typedef DPTR(Array) PTR_Array; +//------------------------------------------------------------------------------------------------- +class MDArray : public Object +{ + UInt32 m_Length; +#if defined(_WIN64) + UInt32 m_uAlignpad; +#endif // _WIN64 + UInt32 m_Dimensions[1]; +public: + void InitMDArrayLength(UInt32 length); + void InitMDArrayDimension(UInt32 dimension, UInt32 value); +}; |