Cross-bitness in instance fields placement and CORINFO structs (dotnet/coreclr#18366)
authorEgor Chesakov <Egor.Chesakov@microsoft.com>
Mon, 25 Jun 2018 16:17:00 +0000 (09:17 -0700)
committerJan Kotas <jkotas@microsoft.com>
Mon, 25 Jun 2018 16:17:00 +0000 (09:17 -0700)
commitab485a0886a71b0815624b6d9a4a292c4046b668
tree5d749116bce05c8b56b9c855f95a1d94534b4c06
parent7260d380b230188f02b9296850c9636064a6ee37
Cross-bitness in instance fields placement and CORINFO structs (dotnet/coreclr#18366)

* Replace sizeof(OBJECTREF*) with TARGET_POINTER_SIZE

* Define IN_TARGET_32BIT IN_TARGET_64BIT macros

* Replace IN_WIN32 IN_WIN64 with IN_TARGET_32BIT IN_TARGET_64BIT in src/vm/jitinterface.cpp src/vm/methodtablebuilder.cpp

* Define and use OFFSETOF__CORINFO_* constants in clrjit

* Define for all 64-bit targets

* Use unsigned __int32 to emphasize that this is 32-bit number

* Rename Array__u1Elems to Array__data

* Eliminate OFFSETOF__CORINFO_RefArray__length

* Rename OFFSETOF__CORINFO_RefAny__ to OFFSETOF__CORINFO_TypedReference__

* Fix OFFSETOF__CORINFO_TypedReference__dataPtr macro value

Commit migrated from https://github.com/dotnet/coreclr/commit/c77ef768fc969d6875426e76e51485f2d67ac51c
12 files changed:
src/coreclr/src/inc/corinfo.h
src/coreclr/src/inc/utilcode.h
src/coreclr/src/jit/ee_il_dll.cpp
src/coreclr/src/jit/flowgraph.cpp
src/coreclr/src/jit/importer.cpp
src/coreclr/src/jit/loopcloning.cpp
src/coreclr/src/jit/morph.cpp
src/coreclr/src/jit/rationalize.cpp
src/coreclr/src/jit/simd.cpp
src/coreclr/src/vm/ceeload.cpp
src/coreclr/src/vm/jitinterface.cpp
src/coreclr/src/vm/methodtablebuilder.cpp