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:
parent
656cd477c2
commit
82aea65bd3
4 changed files with 11 additions and 3 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue