mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-24 18:02:20 +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
|
@ -17,19 +17,19 @@ namespace Web::Streams {
|
|||
// https://streams.spec.whatwg.org/#readablestreambyobrequest
|
||||
class ReadableStreamBYOBRequest : public Bindings::PlatformObject {
|
||||
WEB_PLATFORM_OBJECT(ReadableStreamBYOBRequest, Bindings::PlatformObject);
|
||||
JS_DECLARE_ALLOCATOR(ReadableStreamBYOBRequest);
|
||||
GC_DECLARE_ALLOCATOR(ReadableStreamBYOBRequest);
|
||||
|
||||
public:
|
||||
virtual ~ReadableStreamBYOBRequest() override = default;
|
||||
|
||||
JS::GCPtr<WebIDL::ArrayBufferView> view();
|
||||
GC::Ptr<WebIDL::ArrayBufferView> view();
|
||||
|
||||
void set_controller(JS::GCPtr<ReadableByteStreamController> value) { m_controller = value; }
|
||||
void set_controller(GC::Ptr<ReadableByteStreamController> value) { m_controller = value; }
|
||||
|
||||
void set_view(JS::GCPtr<WebIDL::ArrayBufferView> value) { m_view = value; }
|
||||
void set_view(GC::Ptr<WebIDL::ArrayBufferView> value) { m_view = value; }
|
||||
|
||||
WebIDL::ExceptionOr<void> respond(WebIDL::UnsignedLongLong bytes_written);
|
||||
WebIDL::ExceptionOr<void> respond_with_new_view(JS::Handle<WebIDL::ArrayBufferView> const& view);
|
||||
WebIDL::ExceptionOr<void> respond_with_new_view(GC::Root<WebIDL::ArrayBufferView> const& view);
|
||||
|
||||
private:
|
||||
explicit ReadableStreamBYOBRequest(JS::Realm&);
|
||||
|
@ -40,11 +40,11 @@ private:
|
|||
|
||||
// https://streams.spec.whatwg.org/#readablestreambyobrequest-controller
|
||||
// The parent ReadableByteStreamController instance
|
||||
JS::GCPtr<ReadableByteStreamController> m_controller;
|
||||
GC::Ptr<ReadableByteStreamController> m_controller;
|
||||
|
||||
// https://streams.spec.whatwg.org/#readablestreambyobrequest-view
|
||||
// A typed array representing the destination region to which the controller can write generated data, or null after the BYOB request has been invalidated.
|
||||
JS::GCPtr<WebIDL::ArrayBufferView> m_view;
|
||||
GC::Ptr<WebIDL::ArrayBufferView> m_view;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue