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

@ -66,7 +66,7 @@ NonnullOwnPtr<MmapRegion> MmapRegion::create_file_backed(u32 base, u32 size, u32
}
MmapRegion::MmapRegion(u32 base, u32 size, int prot, u8* data, u8* shadow_data)
: Region(base, size)
: Region(base, size, true)
, m_data(data)
, m_shadow_data(shadow_data)
{