diff options
author | Jiyoung Yun <jy910.yun@samsung.com> | 2017-06-13 18:47:36 +0900 |
---|---|---|
committer | Jiyoung Yun <jy910.yun@samsung.com> | 2017-06-13 18:47:36 +0900 |
commit | 61d6a817e39d3bae0f47dbc09838d51db22a5d30 (patch) | |
tree | cb37caa1784bc738b976273335d6ed04a7cc80b0 /src/vm/method.hpp | |
parent | 5b975f8233e8c8d17b215372f89ca713b45d6a0b (diff) | |
download | coreclr-61d6a817e39d3bae0f47dbc09838d51db22a5d30.tar.gz coreclr-61d6a817e39d3bae0f47dbc09838d51db22a5d30.tar.bz2 coreclr-61d6a817e39d3bae0f47dbc09838d51db22a5d30.zip |
Imported Upstream version 2.0.0.11992upstream/2.0.0.11992
Diffstat (limited to 'src/vm/method.hpp')
-rw-r--r-- | src/vm/method.hpp | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/src/vm/method.hpp b/src/vm/method.hpp index 9545da2248..3354e5799a 100644 --- a/src/vm/method.hpp +++ b/src/vm/method.hpp @@ -2031,23 +2031,18 @@ public: // direct call to direct jump. // // We use (1) for x86 and (2) for 64-bit to get the best performance on each platform. - // + // For ARM (1) is used. TADDR AllocateCompactEntryPoints(LoaderAllocator *pLoaderAllocator, AllocMemTracker *pamTracker); static MethodDesc* GetMethodDescFromCompactEntryPoint(PCODE addr, BOOL fSpeculative = FALSE); static SIZE_T SizeOfCompactEntryPoints(int count); - static BOOL IsCompactEntryPointAtAddress(PCODE addr) - { -#if defined(_TARGET_X86_) || defined(_TARGET_AMD64_) - // Compact entrypoints start at odd addresses - LIMITED_METHOD_DAC_CONTRACT; - return (addr & 1) != 0; -#else - #error Unsupported platform -#endif - } + static BOOL IsCompactEntryPointAtAddress(PCODE addr); + +#ifdef _TARGET_ARM_ + static int GetCompactEntryPointMaxCount (); +#endif // _TARGET_ARM_ #endif // HAS_COMPACT_ENTRYPOINTS FORCEINLINE PTR_MethodTable GetMethodTable() |