mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-16 05:51:55 +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
|
@ -12,12 +12,12 @@
|
|||
namespace Web::Platform {
|
||||
|
||||
class Timer : public JS::Cell {
|
||||
JS_CELL(Timer, JS::Cell);
|
||||
GC_CELL(Timer, JS::Cell);
|
||||
|
||||
public:
|
||||
static JS::NonnullGCPtr<Timer> create(JS::Heap&);
|
||||
static JS::NonnullGCPtr<Timer> create_repeating(JS::Heap&, int interval_ms, JS::GCPtr<JS::HeapFunction<void()>> timeout_handler);
|
||||
static JS::NonnullGCPtr<Timer> create_single_shot(JS::Heap&, int interval_ms, JS::GCPtr<JS::HeapFunction<void()>> timeout_handler);
|
||||
static GC::Ref<Timer> create(GC::Heap&);
|
||||
static GC::Ref<Timer> create_repeating(GC::Heap&, int interval_ms, GC::Ptr<GC::Function<void()>> timeout_handler);
|
||||
static GC::Ref<Timer> create_single_shot(GC::Heap&, int interval_ms, GC::Ptr<GC::Function<void()>> timeout_handler);
|
||||
|
||||
virtual ~Timer();
|
||||
|
||||
|
@ -36,7 +36,7 @@ public:
|
|||
virtual bool is_single_shot() const = 0;
|
||||
virtual void set_single_shot(bool) = 0;
|
||||
|
||||
JS::GCPtr<JS::HeapFunction<void()>> on_timeout;
|
||||
GC::Ptr<GC::Function<void()>> on_timeout;
|
||||
|
||||
protected:
|
||||
virtual void visit_edges(JS::Cell::Visitor&) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue