mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 17:37:34 +00:00
LibJS: Add JS_CELL macro and use it in all JS::Cell subclasses
This is similar to what we already had with JS_OBJECT (and also JS_ENVIRONMENT) but sits at the top of the Cell inheritance hierarchy.
This commit is contained in:
parent
94f016b363
commit
6e973ce69b
16 changed files with 37 additions and 23 deletions
|
@ -20,6 +20,8 @@ namespace JS {
|
|||
class Realm final
|
||||
: public Cell
|
||||
, public Weakable<Realm> {
|
||||
JS_CELL(Realm, Cell);
|
||||
|
||||
public:
|
||||
struct HostDefined {
|
||||
virtual ~HostDefined() = default;
|
||||
|
@ -47,7 +49,6 @@ public:
|
|||
void set_host_defined(OwnPtr<HostDefined> host_defined) { m_host_defined = move(host_defined); }
|
||||
|
||||
private:
|
||||
virtual StringView class_name() const override { return "Realm"sv; }
|
||||
virtual void visit_edges(Visitor&) override;
|
||||
|
||||
Intrinsics* m_intrinsics { nullptr }; // [[Intrinsics]]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue