mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 18:19:03 +00:00
LibGC: Avoid excessive bitfield use in GC::Cell
We didn't actually save any space by making the Cell flags bitfields. In fact, it just forced us to do bit twiddling when accessing them.
This commit is contained in:
parent
a80408fea6
commit
be70f8d345
Notes:
github-actions[bot]
2025-04-08 10:10:40 +00:00
Author: https://github.com/awesomekling
Commit: be70f8d345
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4280
1 changed files with 3 additions and 3 deletions
|
@ -188,9 +188,9 @@ protected:
|
|||
void set_overrides_must_survive_garbage_collection(bool b) { m_overrides_must_survive_garbage_collection = b; }
|
||||
|
||||
private:
|
||||
bool m_mark : 1 { false };
|
||||
bool m_overrides_must_survive_garbage_collection : 1 { false };
|
||||
State m_state : 1 { State::Live };
|
||||
bool m_mark { false };
|
||||
bool m_overrides_must_survive_garbage_collection { false };
|
||||
State m_state { State::Live };
|
||||
} SWIFT_UNSAFE_REFERENCE;
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue