2020-03-08 18:23:58 +00:00
|
|
|
/*
|
2024-10-04 11:19:50 +00:00
|
|
|
* Copyright (c) 2020-2024, Andreas Kling <andreas@ladybird.org>
|
2020-03-08 18:23:58 +00:00
|
|
|
*
|
2021-04-22 08:24:48 +00:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-03-08 18:23:58 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2024-11-14 15:01:23 +00:00
|
|
|
#include <LibGC/Cell.h>
|
|
|
|
#include <LibJS/Forward.h>
|
2020-03-08 18:23:58 +00:00
|
|
|
|
|
|
|
namespace JS {
|
|
|
|
|
2024-11-14 15:01:23 +00:00
|
|
|
class Cell : public GC::Cell {
|
|
|
|
GC_CELL(Cell, GC::Cell);
|
2020-04-02 12:55:29 +00:00
|
|
|
|
2020-03-08 18:23:58 +00:00
|
|
|
public:
|
2023-08-07 06:41:28 +00:00
|
|
|
virtual void initialize(Realm&);
|
2024-04-15 11:57:57 +00:00
|
|
|
|
2024-11-14 07:22:33 +00:00
|
|
|
ALWAYS_INLINE VM& vm() const { return *reinterpret_cast<VM*>(private_data()); }
|
2020-03-08 18:23:58 +00:00
|
|
|
};
|
|
|
|
|
2020-12-06 16:55:19 +00:00
|
|
|
}
|