mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:27:43 +00:00
LibJS: Shrink sizeof(LexicalEnvironment) by reorganizing members
This commit is contained in:
parent
4e8cb4558b
commit
07f76cd980
2 changed files with 4 additions and 4 deletions
|
@ -49,9 +49,9 @@ LexicalEnvironment::LexicalEnvironment(HashMap<FlyString, Variable> variables, L
|
||||||
}
|
}
|
||||||
|
|
||||||
LexicalEnvironment::LexicalEnvironment(HashMap<FlyString, Variable> variables, LexicalEnvironment* parent, EnvironmentRecordType environment_record_type)
|
LexicalEnvironment::LexicalEnvironment(HashMap<FlyString, Variable> variables, LexicalEnvironment* parent, EnvironmentRecordType environment_record_type)
|
||||||
: m_parent(parent)
|
: m_environment_record_type(environment_record_type)
|
||||||
|
, m_parent(parent)
|
||||||
, m_variables(move(variables))
|
, m_variables(move(variables))
|
||||||
, m_environment_record_type(environment_record_type)
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -93,10 +93,10 @@ private:
|
||||||
virtual const char* class_name() const override { return "LexicalEnvironment"; }
|
virtual const char* class_name() const override { return "LexicalEnvironment"; }
|
||||||
virtual void visit_children(Visitor&) override;
|
virtual void visit_children(Visitor&) override;
|
||||||
|
|
||||||
|
EnvironmentRecordType m_environment_record_type : 8 { EnvironmentRecordType::Declarative };
|
||||||
|
ThisBindingStatus m_this_binding_status : 8 { ThisBindingStatus::Uninitialized };
|
||||||
LexicalEnvironment* m_parent { nullptr };
|
LexicalEnvironment* m_parent { nullptr };
|
||||||
HashMap<FlyString, Variable> m_variables;
|
HashMap<FlyString, Variable> m_variables;
|
||||||
EnvironmentRecordType m_environment_record_type = EnvironmentRecordType::Declarative;
|
|
||||||
ThisBindingStatus m_this_binding_status = ThisBindingStatus::Uninitialized;
|
|
||||||
Value m_home_object;
|
Value m_home_object;
|
||||||
Value m_this_value;
|
Value m_this_value;
|
||||||
Value m_new_target;
|
Value m_new_target;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue