mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-28 05:52:53 +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
|
@ -19,15 +19,15 @@ class ReadableStreamGenericReaderMixin {
|
|||
public:
|
||||
virtual ~ReadableStreamGenericReaderMixin() = default;
|
||||
|
||||
JS::GCPtr<WebIDL::Promise> closed();
|
||||
GC::Ptr<WebIDL::Promise> closed();
|
||||
|
||||
JS::NonnullGCPtr<WebIDL::Promise> cancel(JS::Value reason);
|
||||
GC::Ref<WebIDL::Promise> cancel(JS::Value reason);
|
||||
|
||||
JS::GCPtr<ReadableStream> stream() const { return m_stream; }
|
||||
void set_stream(JS::GCPtr<ReadableStream> stream) { m_stream = stream; }
|
||||
GC::Ptr<ReadableStream> stream() const { return m_stream; }
|
||||
void set_stream(GC::Ptr<ReadableStream> stream) { m_stream = stream; }
|
||||
|
||||
JS::GCPtr<WebIDL::Promise> closed_promise_capability() { return m_closed_promise; }
|
||||
void set_closed_promise_capability(JS::GCPtr<WebIDL::Promise> promise) { m_closed_promise = promise; }
|
||||
GC::Ptr<WebIDL::Promise> closed_promise_capability() { return m_closed_promise; }
|
||||
void set_closed_promise_capability(GC::Ptr<WebIDL::Promise> promise) { m_closed_promise = promise; }
|
||||
|
||||
protected:
|
||||
explicit ReadableStreamGenericReaderMixin(JS::Realm&);
|
||||
|
@ -36,13 +36,13 @@ protected:
|
|||
|
||||
// https://streams.spec.whatwg.org/#readablestreamgenericreader-closedpromise
|
||||
// A promise returned by the reader's closed getter
|
||||
JS::GCPtr<WebIDL::Promise> m_closed_promise;
|
||||
GC::Ptr<WebIDL::Promise> m_closed_promise;
|
||||
|
||||
// https://streams.spec.whatwg.org/#readablestreamgenericreader-stream
|
||||
// A ReadableStream instance that owns this reader
|
||||
JS::GCPtr<ReadableStream> m_stream;
|
||||
GC::Ptr<ReadableStream> m_stream;
|
||||
|
||||
JS::NonnullGCPtr<JS::Realm> m_realm;
|
||||
GC::Ref<JS::Realm> m_realm;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue