Skip to content

Commit

Permalink
Add fast case for InlineObject's eq
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasWanke committed Apr 4, 2024
1 parent e1c3a0d commit 1769bdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/vm/src/heap/object_inline/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ impl_debug_display_via_debugdisplay!(InlineObject);
impl Eq for InlineObject {}
impl PartialEq for InlineObject {
fn eq(&self, other: &Self) -> bool {
InlineData::from(*self) == InlineData::from(*other)
self.raw_word() == other.raw_word() || InlineData::from(*self) == InlineData::from(*other)
}
}
impl Hash for InlineObject {
Expand Down

0 comments on commit 1769bdb

Please sign in to comment.