// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // // // File: stubs.cpp // // This file contains stub functions for unimplemented features need to // run on the ARM64 platform. #include "common.h" #include "dllimportcallback.h" #include "comdelegate.h" #include "tls.h" #include "asmconstants.h" #include "virtualcallstub.h" #ifndef DACCESS_COMPILE //----------------------------------------------------------------------- // InstructionFormat for B.cond //----------------------------------------------------------------------- class ConditionalBranchInstructionFormat : public InstructionFormat { public: ConditionalBranchInstructionFormat() : InstructionFormat(InstructionFormat::k32) { LIMITED_METHOD_CONTRACT; } virtual UINT GetSizeOfInstruction(UINT refsize, UINT variationCode) { LIMITED_METHOD_CONTRACT; _ASSERTE(refsize == InstructionFormat::k32); return 4; } virtual UINT GetHotSpotOffset(UINT refsize, UINT variationCode) { WRAPPER_NO_CONTRACT; return 0; } virtual BOOL CanReach(UINT refSize, UINT variationCode, BOOL fExternal, INT_PTR offset) { _ASSERTE(!fExternal || "ARM64:NYI - CompareAndBranchInstructionFormat::CanReach external"); if (fExternal) return false; if (offset < -1048576 || offset > 1048572) return false; return true; } // B.