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:
parent
656cd477c2
commit
82aea65bd3
4 changed files with 11 additions and 3 deletions
|
@ -82,4 +82,7 @@ private:
|
|||
String m_name;
|
||||
};
|
||||
|
||||
template<>
|
||||
inline bool Region::fast_is<MmapRegion>() const { return m_mmap; }
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue