1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:57:45 +00:00

UserspaceEmulator: Add fast-path for is<MmapRegion>()

Don't use default RTTI for these since they are performance-sensitive.
This commit is contained in:
Andreas Kling 2021-03-09 15:17:15 +01:00
parent 656cd477c2
commit 82aea65bd3
4 changed files with 11 additions and 3 deletions

View file

@ -82,4 +82,7 @@ private:
String m_name;
};
template<>
inline bool Region::fast_is<MmapRegion>() const { return m_mmap; }
}