mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 12:07:14 +02:00
LibJS+LibWeb: Use GC::Weak instead of AK::WeakPtr for GC-allocated types
This makes some common types like JS::Object smaller (by 8 bytes) and yields a minor speed improvement on many benchmarks.
This commit is contained in:
committed by
Andreas Kling
parent
25a5ed94d6
commit
dfa796a4e4
Notes:
github-actions[bot]
2025-10-17 15:25:08 +00:00
Author: https://github.com/awesomekling Commit: https://github.com/LadybirdBrowser/ladybird/commit/dfa796a4e45 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6496
@@ -51,8 +51,7 @@ struct PaintConfig {
|
||||
};
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/document-sequences.html#navigable
|
||||
class WEB_API Navigable : public JS::Cell
|
||||
, public Weakable<Navigable> {
|
||||
class WEB_API Navigable : public JS::Cell {
|
||||
GC_CELL(Navigable, JS::Cell);
|
||||
GC_DECLARE_ALLOCATOR(Navigable);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user