mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:48:10 +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
|
@ -22,16 +22,11 @@
|
|||
namespace JS::Bytecode {
|
||||
|
||||
struct PropertyLookupCache {
|
||||
static FlatPtr shape_offset() { return OFFSET_OF(PropertyLookupCache, shape); }
|
||||
static FlatPtr property_offset_offset() { return OFFSET_OF(PropertyLookupCache, property_offset); }
|
||||
|
||||
WeakPtr<Shape> shape;
|
||||
Optional<u32> property_offset;
|
||||
};
|
||||
|
||||
struct GlobalVariableCache : public PropertyLookupCache {
|
||||
static FlatPtr environment_serial_number_offset() { return OFFSET_OF(GlobalVariableCache, environment_serial_number); }
|
||||
|
||||
u64 environment_serial_number { 0 };
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue