mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-08 01:51:57 +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
|
@ -13,7 +13,7 @@ namespace Web::Streams {
|
|||
|
||||
class TransformStreamDefaultController : public Bindings::PlatformObject {
|
||||
WEB_PLATFORM_OBJECT(TransformStreamDefaultController, Bindings::PlatformObject);
|
||||
JS_DECLARE_ALLOCATOR(TransformStreamDefaultController);
|
||||
GC_DECLARE_ALLOCATOR(TransformStreamDefaultController);
|
||||
|
||||
public:
|
||||
explicit TransformStreamDefaultController(JS::Realm&);
|
||||
|
@ -24,20 +24,20 @@ public:
|
|||
void error(Optional<JS::Value> reason = {});
|
||||
void terminate();
|
||||
|
||||
JS::GCPtr<CancelAlgorithm> cancel_algorithm() { return m_cancel_algorithm; }
|
||||
void set_cancel_algorithm(JS::GCPtr<CancelAlgorithm> value) { m_cancel_algorithm = value; }
|
||||
GC::Ptr<CancelAlgorithm> cancel_algorithm() { return m_cancel_algorithm; }
|
||||
void set_cancel_algorithm(GC::Ptr<CancelAlgorithm> value) { m_cancel_algorithm = value; }
|
||||
|
||||
JS::GCPtr<JS::PromiseCapability> finish_promise() { return m_finish_promise; }
|
||||
void set_finish_promise(JS::GCPtr<JS::PromiseCapability> value) { m_finish_promise = value; }
|
||||
GC::Ptr<JS::PromiseCapability> finish_promise() { return m_finish_promise; }
|
||||
void set_finish_promise(GC::Ptr<JS::PromiseCapability> value) { m_finish_promise = value; }
|
||||
|
||||
JS::GCPtr<FlushAlgorithm> flush_algorithm() { return m_flush_algorithm; }
|
||||
void set_flush_algorithm(JS::GCPtr<FlushAlgorithm>&& value) { m_flush_algorithm = move(value); }
|
||||
GC::Ptr<FlushAlgorithm> flush_algorithm() { return m_flush_algorithm; }
|
||||
void set_flush_algorithm(GC::Ptr<FlushAlgorithm>&& value) { m_flush_algorithm = move(value); }
|
||||
|
||||
JS::GCPtr<TransformAlgorithm> transform_algorithm() { return m_transform_algorithm; }
|
||||
void set_transform_algorithm(JS::GCPtr<TransformAlgorithm>&& value) { m_transform_algorithm = move(value); }
|
||||
GC::Ptr<TransformAlgorithm> transform_algorithm() { return m_transform_algorithm; }
|
||||
void set_transform_algorithm(GC::Ptr<TransformAlgorithm>&& value) { m_transform_algorithm = move(value); }
|
||||
|
||||
JS::GCPtr<TransformStream> stream() { return m_stream; }
|
||||
void set_stream(JS::GCPtr<TransformStream> stream) { m_stream = stream; }
|
||||
GC::Ptr<TransformStream> stream() { return m_stream; }
|
||||
void set_stream(GC::Ptr<TransformStream> stream) { m_stream = stream; }
|
||||
|
||||
private:
|
||||
virtual void initialize(JS::Realm&) override;
|
||||
|
@ -45,19 +45,19 @@ private:
|
|||
virtual void visit_edges(Cell::Visitor&) override;
|
||||
|
||||
// https://streams.spec.whatwg.org/#transformstreamdefaultcontroller-cancelalgorithm
|
||||
JS::GCPtr<CancelAlgorithm> m_cancel_algorithm;
|
||||
GC::Ptr<CancelAlgorithm> m_cancel_algorithm;
|
||||
|
||||
// https://streams.spec.whatwg.org/#transformstreamdefaultcontroller-finishpromise
|
||||
JS::GCPtr<JS::PromiseCapability> m_finish_promise;
|
||||
GC::Ptr<JS::PromiseCapability> m_finish_promise;
|
||||
|
||||
// https://streams.spec.whatwg.org/#transformstreamdefaultcontroller-flushalgorithm
|
||||
JS::GCPtr<FlushAlgorithm> m_flush_algorithm;
|
||||
GC::Ptr<FlushAlgorithm> m_flush_algorithm;
|
||||
|
||||
// https://streams.spec.whatwg.org/#transformstreamdefaultcontroller-transformalgorithm
|
||||
JS::GCPtr<TransformAlgorithm> m_transform_algorithm;
|
||||
GC::Ptr<TransformAlgorithm> m_transform_algorithm;
|
||||
|
||||
// https://streams.spec.whatwg.org/#transformstreamdefaultcontroller-stream
|
||||
JS::GCPtr<TransformStream> m_stream;
|
||||
GC::Ptr<TransformStream> m_stream;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue