Skip to content

Truly independent web browser

587 B
Raw Blame
/*
 * Copyright (c) 2020-2024, Andreas Kling <[email protected]>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#pragma once

#include <LibGC/Cell.h>
#include <LibGC/CellAllocator.h>
#include <LibJS/Export.h>
#include <LibJS/Forward.h>

namespace JS {

// The base of the embedder's own C++ cells. The engine's cells are named through EngineCell instead.
class JS_API Cell : public GC::Cell {
    GC_CELL(Cell, GC::Cell);

public:
    MUST_UPCALL virtual void initialize(Realm&);

    ALWAYS_INLINE VM& vm() const;

    template<typename T>
    bool fast_is() const = delete;
};

}