mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-22 02:09:24 +00:00
LibGC+LibWeb+LibJS: Remove workaround for Swift boolean bitfield issue
We're using a main snapshot everywhere, so we can yeet the workaround.
This commit is contained in:
parent
e73438e82c
commit
8fd81c3338
Notes:
github-actions[bot]
2025-04-04 19:07:56 +00:00
Author: https://github.com/ADKaster
Commit: 8fd81c3338
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4223
9 changed files with 39 additions and 51 deletions
|
@ -28,13 +28,6 @@ namespace GC {
|
|||
# define IGNORE_GC
|
||||
#endif
|
||||
|
||||
// https://github.com/swiftlang/swift/issues/80182
|
||||
#if defined(LIBGC_WORKAROUND_BOOL_BITFIELD)
|
||||
# define BOOL_BITFIELD
|
||||
#else
|
||||
# define BOOL_BITFIELD : 1
|
||||
#endif
|
||||
|
||||
#define GC_CELL(class_, base_class) \
|
||||
public: \
|
||||
using Base = base_class; \
|
||||
|
@ -195,9 +188,9 @@ protected:
|
|||
void set_overrides_must_survive_garbage_collection(bool b) { m_overrides_must_survive_garbage_collection = b; }
|
||||
|
||||
private:
|
||||
bool m_mark BOOL_BITFIELD { false };
|
||||
bool m_overrides_must_survive_garbage_collection BOOL_BITFIELD { false };
|
||||
State m_state BOOL_BITFIELD { State::Live };
|
||||
bool m_mark : 1 { false };
|
||||
bool m_overrides_must_survive_garbage_collection : 1 { false };
|
||||
State m_state : 1 { State::Live };
|
||||
} SWIFT_UNSAFE_REFERENCE;
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue