mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
LibGC+Everywhere: Factor out a LibGC from LibJS
Resulting in a massive rename across almost everywhere! Alongside the namespace change, we now have the following names: * JS::NonnullGCPtr -> GC::Ref * JS::GCPtr -> GC::Ptr * JS::HeapFunction -> GC::Function * JS::CellImpl -> GC::Cell * JS::Handle -> GC::Root
This commit is contained in:
parent
ce23efc5f6
commit
f87041bf3a
Notes:
github-actions[bot]
2024-11-15 13:50:17 +00:00
Author: https://github.com/shannonbooth
Commit: f87041bf3a
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2345
1722 changed files with 9939 additions and 9906 deletions
|
@ -9,9 +9,9 @@
|
|||
#include <AK/FlyString.h>
|
||||
#include <AK/Forward.h>
|
||||
#include <AK/HashMap.h>
|
||||
#include <LibGC/Heap.h>
|
||||
#include <LibJS/Forward.h>
|
||||
#include <LibJS/Heap/Cell.h>
|
||||
#include <LibJS/Heap/Heap.h>
|
||||
#include <LibJS/Runtime/VM.h>
|
||||
|
||||
#define WEB_SET_PROTOTYPE_FOR_INTERFACE_WITH_CUSTOM_NAME(interface_class, interface_name) \
|
||||
|
@ -25,8 +25,8 @@
|
|||
namespace Web::Bindings {
|
||||
|
||||
class Intrinsics final : public JS::Cell {
|
||||
JS_CELL(Intrinsics, JS::Cell);
|
||||
JS_DECLARE_ALLOCATOR(Intrinsics);
|
||||
GC_CELL(Intrinsics, JS::Cell);
|
||||
GC_DECLARE_ALLOCATOR(Intrinsics);
|
||||
|
||||
public:
|
||||
Intrinsics(JS::Realm& realm)
|
||||
|
@ -75,10 +75,10 @@ private:
|
|||
template<typename PrototypeType>
|
||||
void create_web_prototype_and_constructor(JS::Realm& realm);
|
||||
|
||||
HashMap<FlyString, JS::NonnullGCPtr<JS::Object>> m_namespaces;
|
||||
HashMap<FlyString, JS::NonnullGCPtr<JS::Object>> m_prototypes;
|
||||
HashMap<FlyString, JS::GCPtr<JS::NativeFunction>> m_constructors;
|
||||
JS::NonnullGCPtr<JS::Realm> m_realm;
|
||||
HashMap<FlyString, GC::Ref<JS::Object>> m_namespaces;
|
||||
HashMap<FlyString, GC::Ref<JS::Object>> m_prototypes;
|
||||
HashMap<FlyString, GC::Ptr<JS::NativeFunction>> m_constructors;
|
||||
GC::Ref<JS::Realm> m_realm;
|
||||
};
|
||||
|
||||
Intrinsics& host_defined_intrinsics(JS::Realm& realm);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue