mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 17:19:13 +00:00
LibJS: Use FlyString in PropertyKey instead of DeprecatedFlyString
This required dealing with *substantial* fallout.
This commit is contained in:
parent
fc744e3f3f
commit
46a5710238
Notes:
github-actions[bot]
2025-03-24 22:28:26 +00:00
Author: https://github.com/awesomekling
Commit: 46a5710238
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4067
Reviewed-by: https://github.com/trflynn89
110 changed files with 985 additions and 987 deletions
|
@ -6,7 +6,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/DeprecatedFlyString.h>
|
||||
#include <AK/FlyString.h>
|
||||
#include <AK/StringView.h>
|
||||
#include <AK/Vector.h>
|
||||
#include <LibGC/CellAllocator.h>
|
||||
|
@ -16,14 +16,14 @@ namespace JS {
|
|||
|
||||
struct PrivateName {
|
||||
PrivateName() = default;
|
||||
PrivateName(u64 unique_id, DeprecatedFlyString description)
|
||||
PrivateName(u64 unique_id, FlyString description)
|
||||
: unique_id(unique_id)
|
||||
, description(move(description))
|
||||
{
|
||||
}
|
||||
|
||||
u64 unique_id { 0 };
|
||||
DeprecatedFlyString description;
|
||||
FlyString description;
|
||||
|
||||
bool operator==(PrivateName const& rhs) const;
|
||||
};
|
||||
|
@ -33,9 +33,9 @@ class PrivateEnvironment : public Cell {
|
|||
GC_DECLARE_ALLOCATOR(PrivateEnvironment);
|
||||
|
||||
public:
|
||||
PrivateName resolve_private_identifier(DeprecatedFlyString const& identifier) const;
|
||||
PrivateName resolve_private_identifier(FlyString const& identifier) const;
|
||||
|
||||
void add_private_name(DeprecatedFlyString description);
|
||||
void add_private_name(FlyString description);
|
||||
|
||||
PrivateEnvironment* outer_environment() { return m_outer_environment; }
|
||||
PrivateEnvironment const* outer_environment() const { return m_outer_environment; }
|
||||
|
@ -45,7 +45,7 @@ private:
|
|||
|
||||
virtual void visit_edges(Visitor&) override;
|
||||
|
||||
auto find_private_name(DeprecatedFlyString const& description) const
|
||||
auto find_private_name(FlyString const& description) const
|
||||
{
|
||||
return m_private_names.find_if([&](PrivateName const& private_name) {
|
||||
return private_name.description == description;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue