mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-07 00:56:14 +00:00
LibJS: Reorganize Shape members to reduce sizeof(Shape) a bit
This commit is contained in:
@@ -73,21 +73,21 @@ Shape::Shape(GlobalObject& global_object)
|
||||
}
|
||||
|
||||
Shape::Shape(Shape& previous_shape, const StringOrSymbol& property_name, PropertyAttributes attributes, TransitionType transition_type)
|
||||
: m_global_object(previous_shape.m_global_object)
|
||||
: m_attributes(attributes)
|
||||
, m_transition_type(transition_type)
|
||||
, m_global_object(previous_shape.m_global_object)
|
||||
, m_previous(&previous_shape)
|
||||
, m_property_name(property_name)
|
||||
, m_attributes(attributes)
|
||||
, m_prototype(previous_shape.m_prototype)
|
||||
, m_transition_type(transition_type)
|
||||
, m_property_count(transition_type == TransitionType::Put ? previous_shape.m_property_count + 1 : previous_shape.m_property_count)
|
||||
{
|
||||
}
|
||||
|
||||
Shape::Shape(Shape& previous_shape, Object* new_prototype)
|
||||
: m_global_object(previous_shape.m_global_object)
|
||||
: m_transition_type(TransitionType::Prototype)
|
||||
, m_global_object(previous_shape.m_global_object)
|
||||
, m_previous(&previous_shape)
|
||||
, m_prototype(new_prototype)
|
||||
, m_transition_type(TransitionType::Prototype)
|
||||
, m_property_count(previous_shape.m_property_count)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user