1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:17:44 +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

@ -29,9 +29,10 @@
namespace UserspaceEmulator {
Region::Region(u32 base, u32 size)
Region::Region(u32 base, u32 size, bool mmap)
: m_emulator(Emulator::the())
, m_range(Range { VirtualAddress { base }, size })
, m_mmap(mmap)
{
}