diff options
Diffstat (limited to 'Libraries/LibJS/Runtime/Shape.cpp')
-rw-r--r-- | Libraries/LibJS/Runtime/Shape.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Libraries/LibJS/Runtime/Shape.cpp b/Libraries/LibJS/Runtime/Shape.cpp index fadb073281..8dbbd34a2e 100644 --- a/Libraries/LibJS/Runtime/Shape.cpp +++ b/Libraries/LibJS/Runtime/Shape.cpp @@ -29,12 +29,12 @@ namespace JS { -Shape* Shape::create_put_transition(const FlyString& property_name, u8 property_attributes) +Shape* Shape::create_put_transition(const FlyString& property_name, u8 attributes) { auto* new_shape = m_forward_transitions.get(property_name).value_or(nullptr); - if (new_shape && new_shape->m_property_attributes == property_attributes) + if (new_shape && new_shape->m_attributes == attributes) return new_shape; - new_shape = heap().allocate<Shape>(this, property_name, property_attributes); + new_shape = heap().allocate<Shape>(this, property_name, attributes); m_forward_transitions.set(property_name, new_shape); return new_shape; } @@ -48,10 +48,10 @@ Shape::Shape() { } -Shape::Shape(Shape* previous_shape, const FlyString& property_name, u8 property_attributes) +Shape::Shape(Shape* previous_shape, const FlyString& property_name, u8 attributes) : m_previous(previous_shape) , m_property_name(property_name) - , m_property_attributes(property_attributes) + , m_attributes(attributes) , m_prototype(previous_shape->m_prototype) { } @@ -114,7 +114,7 @@ void Shape::ensure_property_table() const // Ignore prototype transitions as they don't affect the key map. continue; } - m_property_table->set(shape->m_property_name, { next_offset++, shape->m_property_attributes }); + m_property_table->set(shape->m_property_name, { next_offset++, shape->m_attributes }); } } |