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