|
@@ -65,7 +65,7 @@ public:
|
|
enum class ShapeWithoutGlobalObjectTag { Tag };
|
|
enum class ShapeWithoutGlobalObjectTag { Tag };
|
|
|
|
|
|
explicit Shape(ShapeWithoutGlobalObjectTag);
|
|
explicit Shape(ShapeWithoutGlobalObjectTag);
|
|
- explicit Shape(GlobalObject&);
|
|
|
|
|
|
+ explicit Shape(Object& global_object);
|
|
Shape(Shape& previous_shape, const StringOrSymbol& property_name, PropertyAttributes attributes, TransitionType);
|
|
Shape(Shape& previous_shape, const StringOrSymbol& property_name, PropertyAttributes attributes, TransitionType);
|
|
Shape(Shape& previous_shape, Object* new_prototype);
|
|
Shape(Shape& previous_shape, Object* new_prototype);
|
|
|
|
|
|
@@ -78,7 +78,7 @@ public:
|
|
bool is_unique() const { return m_unique; }
|
|
bool is_unique() const { return m_unique; }
|
|
Shape* create_unique_clone() const;
|
|
Shape* create_unique_clone() const;
|
|
|
|
|
|
- GlobalObject* global_object() const { return m_global_object; }
|
|
|
|
|
|
+ GlobalObject* global_object() const;
|
|
|
|
|
|
Object* prototype() { return m_prototype; }
|
|
Object* prototype() { return m_prototype; }
|
|
const Object* prototype() const { return m_prototype; }
|
|
const Object* prototype() const { return m_prototype; }
|
|
@@ -110,7 +110,7 @@ private:
|
|
TransitionType m_transition_type : 6 { TransitionType::Invalid };
|
|
TransitionType m_transition_type : 6 { TransitionType::Invalid };
|
|
bool m_unique : 1 { false };
|
|
bool m_unique : 1 { false };
|
|
|
|
|
|
- GlobalObject* m_global_object { nullptr };
|
|
|
|
|
|
+ Object* m_global_object { nullptr };
|
|
|
|
|
|
mutable OwnPtr<HashMap<StringOrSymbol, PropertyMetadata>> m_property_table;
|
|
mutable OwnPtr<HashMap<StringOrSymbol, PropertyMetadata>> m_property_table;
|
|
|
|
|