|
@@ -27,11 +27,15 @@
|
|
#pragma once
|
|
#pragma once
|
|
|
|
|
|
#include <AK/Forward.h>
|
|
#include <AK/Forward.h>
|
|
|
|
+#include <AK/Noncopyable.h>
|
|
#include <LibJS/Forward.h>
|
|
#include <LibJS/Forward.h>
|
|
|
|
|
|
namespace JS {
|
|
namespace JS {
|
|
|
|
|
|
class Cell {
|
|
class Cell {
|
|
|
|
+ AK_MAKE_NONCOPYABLE(Cell);
|
|
|
|
+ AK_MAKE_NONMOVABLE(Cell);
|
|
|
|
+
|
|
public:
|
|
public:
|
|
virtual ~Cell() {}
|
|
virtual ~Cell() {}
|
|
|
|
|
|
@@ -54,6 +58,9 @@ public:
|
|
Heap& heap() const;
|
|
Heap& heap() const;
|
|
Interpreter& interpreter();
|
|
Interpreter& interpreter();
|
|
|
|
|
|
|
|
+protected:
|
|
|
|
+ Cell() {}
|
|
|
|
+
|
|
private:
|
|
private:
|
|
bool m_mark { false };
|
|
bool m_mark { false };
|
|
bool m_live { true };
|
|
bool m_live { true };
|