Files
browser/src
Karl Seguin 315c9a2d92 Add RC support to NodeList
Most importantly, this allows the Selector.List to be self-contained with
an arena from the ArenaPool. Selector.List can be both relatively large
and relatively common, so moving it off the page.arena is a nice win.

Also applied this to ChildNodes, which is much smaller but could also be
called often.

I was initially going to hook into the v8::Object's internal fields to store
the referencing v8::Object. So the v8::Object representing the Iterator
would store the v8::Object representing the NodeList inside of its internal
field - which the GC would trace/detect/respect. And that is probably the
fastest and most v8-ish solution, but I couldn't come up with an elegant
solution. The best I had was having a "afterCreate" callback which passed
the v8 object (this is similar to the old postAttach callback we had, but
used for a different purpose). However, since "acquireRef" was recently
added to events, re-using that was much simpler and worked well.
2026-02-27 10:29:46 +08:00
..
2026-02-27 10:29:46 +08:00
2026-02-27 10:29:46 +08:00
2026-01-29 21:00:06 +08:00
2026-02-25 23:29:54 +00:00
2026-02-25 23:29:54 +00:00
2026-02-25 05:31:28 +00:00
2026-02-04 12:23:42 -08:00
2026-02-16 15:48:18 +00:00
2026-02-19 23:47:33 +08:00
2026-02-25 15:29:27 +08:00
2026-02-25 23:29:54 +00:00
2026-01-24 07:59:41 +08:00
2026-01-29 19:44:10 +08:00
2026-02-19 23:47:33 +08:00