We will skip the object access check for any occurrences of this value
| 10823 | |
| 10824 | // We will skip the object access check for any occurrences of this value |
| 10825 | void 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 | |
| 10839 | bool BfModule::WantsObjectAccessCheck(BfType* type) |
| 10840 | { |
no test coverage detected