mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-15 20:33:10 +00:00
LibJS: Shrink FunctionNode by using bitfields
By making the boolean members be bitfields, we shrink FunctionNode by a total of 8 bytes.
This commit is contained in:
parent
0b2f86de71
commit
35ed82d5e6
|
@ -678,10 +678,10 @@ private:
|
||||||
Vector<FunctionParameter> const m_parameters;
|
Vector<FunctionParameter> const m_parameters;
|
||||||
const i32 m_function_length;
|
const i32 m_function_length;
|
||||||
FunctionKind m_kind;
|
FunctionKind m_kind;
|
||||||
bool m_is_strict_mode { false };
|
bool m_is_strict_mode : 1 { false };
|
||||||
bool m_might_need_arguments_object { false };
|
bool m_might_need_arguments_object : 1 { false };
|
||||||
bool m_contains_direct_call_to_eval { false };
|
bool m_contains_direct_call_to_eval : 1 { false };
|
||||||
bool m_is_arrow_function { false };
|
bool m_is_arrow_function : 1 { false };
|
||||||
};
|
};
|
||||||
|
|
||||||
class FunctionDeclaration final
|
class FunctionDeclaration final
|
||||||
|
|
Loading…
Reference in a new issue