mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:37:35 +00:00
LibJS: Make Register comparable
This commit is contained in:
parent
9a5ae8a92a
commit
f5e7fa4d0e
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; }
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue