mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibJS: Allow JS::Value to store a non-object Cell
This will allow us to refer to non-object Cells more readily in bytecode and opens up for some nice optimizations.
This commit is contained in:
parent
f0abf5a43b
commit
1d88c4529c
|
|
@ -214,6 +214,11 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
Value(Cell const* cell)
|
||||
: Value(GC::IS_CELL_BIT << GC::TAG_SHIFT, reinterpret_cast<void const*>(cell))
|
||||
{
|
||||
}
|
||||
|
||||
Value(Object const* object)
|
||||
: Value(OBJECT_TAG << GC::TAG_SHIFT, reinterpret_cast<void const*>(object))
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user