Work in VM towards cross-bitness crossgen (dotnet/coreclr#18245)
authorEgor Chesakov <Egor.Chesakov@microsoft.com>
Mon, 4 Jun 2018 17:08:22 +0000 (10:08 -0700)
committerGitHub <noreply@github.com>
Mon, 4 Jun 2018 17:08:22 +0000 (10:08 -0700)
commitb7f7256775496b7cc51b9a1e877eb82324c72907
treebc298a3e9de961d5acc2d44adac6c5426367ab01
parent832e9cb938f2fc32987524d3f8f1015c7cd9737d
Work in VM towards cross-bitness crossgen (dotnet/coreclr#18245)

* Replace sizeof expressions with target-specific constants:

* sizeof(ObjHeader) -> OBJHEADER_SIZE
* sizeof(Object) -> OBJECT_SIZE
* ObjSizeOf(Object) -> OBJECT_BASESIZE
* sizeof(ArrayBase) -> ARRAYBASE_SIZE
* ObjSizeOf(ArrayBase) -> ARRAYBASE_BASESIZE

* Remove ObjSizeOf macro

* Use OBJECT_SIZE in ArrayBase::GetBoundsOffset

* Cast ppObj to CORCOMPILE_GCREFMAP_TOKENS* before dereferencing in FakePromote

* LOG2_PTRSIZE should depend on _TARGET_64BIT_

Commit migrated from https://github.com/dotnet/coreclr/commit/de586767f51432e5d89f6fcffee07c488fdeeb7b
15 files changed:
src/coreclr/src/inc/stdmacros.h
src/coreclr/src/vm/array.cpp
src/coreclr/src/vm/ceeload.cpp
src/coreclr/src/vm/ceemain.cpp
src/coreclr/src/vm/class.cpp
src/coreclr/src/vm/compile.cpp
src/coreclr/src/vm/jitinterface.cpp
src/coreclr/src/vm/methodtable.cpp
src/coreclr/src/vm/methodtablebuilder.cpp
src/coreclr/src/vm/nativeoverlapped.cpp
src/coreclr/src/vm/object.h
src/coreclr/src/vm/object.inl
src/coreclr/src/vm/readytoruninfo.cpp
src/coreclr/src/vm/siginfo.cpp
src/coreclr/src/vm/syncblk.h