MCPcopy Create free account
hub / github.com/beefytech/Beef / SkipObjectAccessCheck

Method SkipObjectAccessCheck

IDEHelper/Compiler/BfModule.cpp:10825–10837  ·  view source on GitHub ↗

We will skip the object access check for any occurrences of this value

Source from the content-addressed store, hash-verified

10823
10824// We will skip the object access check for any occurrences of this value
10825void BfModule::SkipObjectAccessCheck(BfTypedValue typedVal)
10826{
10827 if ((mBfIRBuilder->mIgnoreWrites) || (!typedVal.mType->IsObjectOrInterface()) || (mCurMethodState == NULL) || (mCurMethodState->mIgnoreObjectAccessCheck))
10828 return;
10829
10830 if ((!mCompiler->mOptions.mObjectHasDebugFlags) || (mIsComptimeModule))
10831 return;
10832
10833 if ((typedVal.mValue.mFlags & BfIRValueFlags_Value) == 0)
10834 return;
10835
10836 mCurMethodState->mSkipObjectAccessChecks.Add(typedVal.mValue.mId);
10837}
10838
10839bool BfModule::WantsObjectAccessCheck(BfType* type)
10840{

Callers 1

CreateObjectMethod · 0.80

Calls 2

IsObjectOrInterfaceMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected