// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more 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 "asmconstants.h" #include "virtualcallstub.h" #include "jitinterface.h" #include "ecall.h" EXTERN_C void JIT_UpdateWriteBarrierState(bool skipEphemeralCheck); #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.