mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:07:34 +00:00
AK+LibJS: Remove OFFSET_OF and its users
With the LibJS JIT removed, let's not expose pointers to internal members.
This commit is contained in:
parent
4646a87eba
commit
d878975f95
14 changed files with 0 additions and 53 deletions
|
@ -15,9 +15,6 @@ struct EnvironmentCoordinate {
|
|||
u32 hops { invalid_marker };
|
||||
u32 index { invalid_marker };
|
||||
|
||||
static FlatPtr hops_offset() { return OFFSET_OF(EnvironmentCoordinate, hops); }
|
||||
static FlatPtr index_offset() { return OFFSET_OF(EnvironmentCoordinate, index); }
|
||||
|
||||
bool is_valid() const { return hops != invalid_marker && index != invalid_marker; }
|
||||
|
||||
static constexpr u32 invalid_marker = 0xfffffffe;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue