if ((call->gtFlags & GTF_CALL_NULLCHECK) == 0)
aflags = (CORINFO_ACCESS_FLAGS)(aflags | CORINFO_ACCESS_NONNULL);
- CORINFO_CONST_LOOKUP addrInfo;
- compiler->info.compCompHnd->getFunctionEntryPoint(methHnd, &addrInfo, aflags);
+#ifdef FEATURE_READYTORUN_COMPILER
+ if (call->gtEntryPoint.addr != NULL)
+ {
+ accessType = call->gtEntryPoint.accessType;
+ addr = call->gtEntryPoint.addr;
+ }
+ else
+#endif // FEATURE_READYTORUN_COMPILER
+ {
+ CORINFO_CONST_LOOKUP addrInfo;
+ compiler->info.compCompHnd->getFunctionEntryPoint(methHnd, &addrInfo, aflags);
- accessType = addrInfo.accessType;
- addr = addrInfo.addr;
+ accessType = addrInfo.accessType;
+ addr = addrInfo.addr;
+ }
}
if (fTailCall)
// if there are PInvoke calls and compLvFrameListRoot is enregistered,
// it must not be in a register trashed by the callee
- if (info.compCallUnmanaged != 0)
+ if (info.compLvFrameListRoot != BAD_VAR_NUM)
{
assert(!opts.ShouldUsePInvokeHelpers());
noway_assert(info.compLvFrameListRoot < lvaCount);