mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
LibJS: Make Register comparable
This commit is contained in:
parent
9a5ae8a92a
commit
f5e7fa4d0e
Notes:
sideshowbarker
2024-07-17 21:26:19 +09:00
Author: https://github.com/Hendiadyoin1 Commit: https://github.com/SerenityOS/serenity/commit/f5e7fa4d0e Pull-request: https://github.com/SerenityOS/serenity/pull/15754 Reviewed-by: https://github.com/alimpfard ✅ Reviewed-by: https://github.com/davidot Reviewed-by: https://github.com/kleinesfilmroellchen ✅ Reviewed-by: https://github.com/linusg
1 changed files with 2 additions and 0 deletions
|
@ -25,6 +25,8 @@ public:
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool operator==(Register reg) const { return m_index == reg.index(); }
|
||||||
|
|
||||||
u32 index() const { return m_index; }
|
u32 index() const { return m_index; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
Loading…
Reference in a new issue